From 0fefe7fe3651f815781ad311df69090a674ca39f Mon Sep 17 00:00:00 2001
From: haveachin
Date: Sun, 9 Jul 2023 13:02:24 +0200
Subject: [PATCH 01/13] revise: codebase
---
.vscode/launch.json | 16 +
Dockerfile | 12 -
LICENSE | 862 ++++++++++++++----
Makefile | 15 +
README.md | 313 +------
api/api.go | 115 ---
assets/agplv3_logo.svg | 28 +
assets/logo.svg | 48 +
callback/callback.go | 86 --
callback/callback_test.go | 159 ----
callback/event.go | 60 --
callback/event_test.go | 37 -
cmd/infrared/.goreleaser.yml | 48 -
cmd/infrared/main.go | 141 +--
config.go | 476 ----------
configs/haproxy.cfg | 37 +
conn.go | 122 ---
deployments/docker-compose.dev.yml | 45 +
docker-compose.yml | 17 -
gateway.go | 219 -----
gateway_test.go | 635 -------------
go.mod | 28 +-
go.sum | 504 +---------
grafana/README.md | 38 -
grafana/dashboard.json | 741 ---------------
grafana/dashboard.png | Bin 345785 -> 0 bytes
pkg/infrared/conn.go | 86 ++
pkg/infrared/infrared.go | 243 +++++
pkg/infrared/infrared_test.go | 104 +++
pkg/infrared/listener.go | 194 ++++
{protocol => pkg/infrared/protocol}/errors.go | 0
.../handshaking/serverbound_handshake.go | 140 +++
.../handshaking/serverbound_handshake_test.go | 66 +-
.../protocol/login/clientbound_disconnect.go | 16 +
.../login/clientbound_disconnect_test.go | 8 +-
.../login/clientbound_encryptionrequest.go | 34 +
.../login/serverbound_encryptionresponse.go | 32 +
.../protocol/login/serverbound_loginstart.go | 91 ++
.../login/serverbound_loginstart_test.go | 16 +-
pkg/infrared/protocol/packet.go | 114 +++
{protocol => pkg/infrared/protocol}/peeker.go | 0
.../infrared/protocol}/peeker_test.go | 0
.../protocol/play/clientbound_disconnect.go | 16 +
.../protocol/status/clientbound_response.go | 99 ++
.../status/clientbound_response_test.go | 12 +-
.../status/serverbound_ping_request.go | 4 +
.../protocol/status/serverbound_request.go | 13 +
.../status/serverbound_request_test.go | 8 +-
pkg/infrared/protocol/types.go | 270 ++++++
pkg/infrared/protocol/types_test.go | 172 ++++
pkg/infrared/protocol/versions.go | 28 +
pkg/infrared/server.go | 310 +++++++
process/docker.go | 90 --
process/portainer.go | 148 ---
process/process.go | 14 -
protocol/handshaking/serverbound_handshake.go | 99 --
protocol/login/clientbound_disconnect.go | 18 -
protocol/login/serverbound_loginstart.go | 25 -
protocol/packet.go | 93 --
protocol/packet_test.go | 237 -----
protocol/status/clientbound_response.go | 61 --
protocol/status/serverbound_request.go | 15 -
protocol/types.go | 256 ------
protocol/types_test.go | 415 ---------
proxy.go | 448 ---------
tools/dos/main.go | 131 +++
66 files changed, 3068 insertions(+), 5860 deletions(-)
create mode 100644 .vscode/launch.json
delete mode 100644 Dockerfile
create mode 100644 Makefile
delete mode 100644 api/api.go
create mode 100644 assets/agplv3_logo.svg
create mode 100644 assets/logo.svg
delete mode 100644 callback/callback.go
delete mode 100644 callback/callback_test.go
delete mode 100644 callback/event.go
delete mode 100644 callback/event_test.go
delete mode 100644 cmd/infrared/.goreleaser.yml
delete mode 100644 config.go
create mode 100644 configs/haproxy.cfg
delete mode 100644 conn.go
create mode 100644 deployments/docker-compose.dev.yml
delete mode 100644 docker-compose.yml
delete mode 100644 gateway.go
delete mode 100644 gateway_test.go
delete mode 100644 grafana/README.md
delete mode 100644 grafana/dashboard.json
delete mode 100644 grafana/dashboard.png
create mode 100644 pkg/infrared/conn.go
create mode 100644 pkg/infrared/infrared.go
create mode 100644 pkg/infrared/infrared_test.go
create mode 100644 pkg/infrared/listener.go
rename {protocol => pkg/infrared/protocol}/errors.go (100%)
create mode 100644 pkg/infrared/protocol/handshaking/serverbound_handshake.go
rename {protocol => pkg/infrared/protocol}/handshaking/serverbound_handshake_test.go (80%)
create mode 100644 pkg/infrared/protocol/login/clientbound_disconnect.go
rename {protocol => pkg/infrared/protocol}/login/clientbound_disconnect_test.go (84%)
create mode 100644 pkg/infrared/protocol/login/clientbound_encryptionrequest.go
create mode 100644 pkg/infrared/protocol/login/serverbound_encryptionresponse.go
create mode 100644 pkg/infrared/protocol/login/serverbound_loginstart.go
rename {protocol => pkg/infrared/protocol}/login/serverbound_loginstart_test.go (62%)
create mode 100644 pkg/infrared/protocol/packet.go
rename {protocol => pkg/infrared/protocol}/peeker.go (100%)
rename {protocol => pkg/infrared/protocol}/peeker_test.go (100%)
create mode 100644 pkg/infrared/protocol/play/clientbound_disconnect.go
create mode 100644 pkg/infrared/protocol/status/clientbound_response.go
rename {protocol => pkg/infrared/protocol}/status/clientbound_response_test.go (87%)
create mode 100644 pkg/infrared/protocol/status/serverbound_ping_request.go
create mode 100644 pkg/infrared/protocol/status/serverbound_request.go
rename {protocol => pkg/infrared/protocol}/status/serverbound_request_test.go (72%)
create mode 100644 pkg/infrared/protocol/types.go
create mode 100644 pkg/infrared/protocol/types_test.go
create mode 100644 pkg/infrared/protocol/versions.go
create mode 100644 pkg/infrared/server.go
delete mode 100644 process/docker.go
delete mode 100644 process/portainer.go
delete mode 100644 process/process.go
delete mode 100644 protocol/handshaking/serverbound_handshake.go
delete mode 100644 protocol/login/clientbound_disconnect.go
delete mode 100644 protocol/login/serverbound_loginstart.go
delete mode 100644 protocol/packet.go
delete mode 100644 protocol/packet_test.go
delete mode 100644 protocol/status/clientbound_response.go
delete mode 100644 protocol/status/serverbound_request.go
delete mode 100644 protocol/types.go
delete mode 100644 protocol/types_test.go
delete mode 100644 proxy.go
create mode 100644 tools/dos/main.go
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 00000000..f5be55a9
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,16 @@
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "Launch Package",
+ "type": "go",
+ "request": "launch",
+ "mode": "auto",
+ "program": "${workspaceFolder}",
+ "args": ["-e", "dev", "-w", "dev"]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index e4387afc..00000000
--- a/Dockerfile
+++ /dev/null
@@ -1,12 +0,0 @@
-FROM golang:1.16.0-buster AS builder
-LABEL stage=intermediate
-COPY . /infrared
-WORKDIR /infrared/cmd/infrared
-ENV GO111MODULE=on
-RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -a --installsuffix cgo -v -tags netgo -ldflags '-extldflags "-static"' -o /main .
-
-FROM scratch
-LABEL maintainer="Hendrik Jonas Schlehlein "
-WORKDIR /
-COPY --from=builder /main ./
-ENTRYPOINT [ "./main" ]
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
index 261eeb9e..be3f7b28 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,201 +1,661 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+ GNU AFFERO GENERAL PUBLIC LICENSE
+ Version 3, 19 November 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU Affero General Public License is a free, copyleft license for
+software and other kinds of works, specifically designed to ensure
+cooperation with the community in the case of network server software.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+our General Public Licenses are intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ Developers that use our General Public Licenses protect your rights
+with two steps: (1) assert copyright on the software, and (2) offer
+you this License which gives you legal permission to copy, distribute
+and/or modify the software.
+
+ A secondary benefit of defending all users' freedom is that
+improvements made in alternate versions of the program, if they
+receive widespread use, become available for other developers to
+incorporate. Many developers of free software are heartened and
+encouraged by the resulting cooperation. However, in the case of
+software used on network servers, this result may fail to come about.
+The GNU General Public License permits making a modified version and
+letting the public access it on a server without ever releasing its
+source code to the public.
+
+ The GNU Affero General Public License is designed specifically to
+ensure that, in such cases, the modified source code becomes available
+to the community. It requires the operator of a network server to
+provide the source code of the modified version running there to the
+users of that server. Therefore, public use of a modified version, on
+a publicly accessible server, gives the public access to the source
+code of the modified version.
+
+ An older license, called the Affero General Public License and
+published by Affero, was designed to accomplish similar goals. This is
+a different license, not a version of the Affero GPL, but Affero has
+released a new version of the Affero GPL which permits relicensing under
+this license.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU Affero General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Remote Network Interaction; Use with the GNU General Public License.
+
+ Notwithstanding any other provision of this License, if you modify the
+Program, your modified version must prominently offer all users
+interacting with it remotely through a computer network (if your version
+supports such interaction) an opportunity to receive the Corresponding
+Source of your version by providing access to the Corresponding Source
+from a network server at no charge, through some standard or customary
+means of facilitating copying of software. This Corresponding Source
+shall include the Corresponding Source for any work covered by version 3
+of the GNU General Public License that is incorporated pursuant to the
+following paragraph.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the work with which it is combined will remain governed by version
+3 of the GNU General Public License.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU Affero General Public License from time to time. Such new versions
+will be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU Affero General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU Affero General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU Affero General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source. For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code. There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU AGPL, see
+ .
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..7a62c7c3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+test:
+ go test -race -timeout 10s ./...
+
+all: test
+ CGO_ENABLED=0 go build -ldflags "-s -w" -o ./out/infrared ./cmd/infrared
+
+run: all
+ ./out/infrared
+
+bench:
+ go test -bench=. -run=x -benchmem -memprofile mem.prof -cpuprofile cpu.prof -benchtime=10s > 0.bench
+ go tool pprof cpu.prof
+
+dev:
+ docker compose -f deployments/docker-compose.dev.yml -p infrared up --force-recreate --remove-orphans
\ No newline at end of file
diff --git a/README.md b/README.md
index fcf4a3ac..0463dfff 100644
--- a/README.md
+++ b/README.md
@@ -1,310 +1,53 @@
-
-
+
+
+
+
[](https://discord.gg/r98YPRsZAx)
[](https://hub.docker.com/r/haveachin/infrared)
-
-[](https://raw.githubusercontent.com/haveachin/infrared/master/LICENSE)
+
+
+
-# Infrared - a Minecraft Proxy
+
+
+
+
-An ultra lightweight Minecraft reverse proxy and idle placeholder:
+# Infrared - A Minecraft Reverse Proxy
+
+An ultra lightweight Minecraft reverse proxy and status placeholder:
Ever wanted to have only one exposed port on your server for multiple Minecraft servers?
Then Infrared is the tool you need!
-Infrared works as a reverse proxy using a subdomain to connect clients to a specific Minecraft server.
-It works similar to Nginx for those of you who are familiar.
+Infrared works as a reverse proxy using a sub-/domains to connect clients to a specific Minecraft server.
## Features
-- [x] Reverse Proxy
-- [x] Display Placeholder Server
-- [x] Autostart Server when pinged
-- [x] Logger Callback URLs
-- [x] HAProxy Protocol Support
-- [x] TCPShield/RealIP Protocol Support
-- [X] Prometheus Support
-- [X] REST API
-
-## Deploy
-
-```shell script
-$ docker build --no-cache -t haveachin/infrared:latest https://github.com/haveachin/infrared.git &&
- docker image prune -f --filter label=stage=intermediate &&
- docker run -d --name infrared --restart=unless-stopped -it -v /usr/local/infrared/configs/:/configs -p 25565:25565/tcp --expose 25565 haveachin/infrared:latest
-```
-
-## Update
-
-```shell script
-$ docker build --no-cache -t haveachin/infrared:latest https://github.com/haveachin/infrared.git &&
- docker image prune -f --filter label=stage=intermediate &&
- docker stop infrared &&
- docker rm infrared &&
- docker run -d --name infrared --restart=unless-stopped -it -v /usr/local/infrared/configs/:/configs -p 25565:25565/tcp --expose 25565 haveachin/infrared:latest
-```
-
-## Environment Variables
-
-**Info**: Command-line flags override environment variables.
-
-`INFRARED_CONFIG_PATH` is the path to all your server configs [default: `"./configs/"`]
-`INFRARED_RECEIVE_PROXY_PROTOCOL` if Infrared should be able to receive proxy protocol [default: `"false"`]
-
-`INFRARED_API_ENABLED` if the api should be enabled [default: `"false"`]\
-`INFRARED_API_BIND` change the http bind option [default: `"127.0.0.1:8080"`]
-
-`INFRARED_PROMETHEUS_ENABLED` enables the Prometheus stats exporter [default: `"false"`]\
-`INFRARED_PROMETHEUS_BIND` specifies what the Prometheus HTTP server should bind to [default: `":9100"`]
-
-## Command-Line Flags
-
-`-config-path` specifies the path to all your server configs [default: `"./configs/"`]
-
-`-receive-proxy-protocol` if Infrared should be able to receive proxy protocol [default: `false`]
-
-`-enable-prometheus` enables the Prometheus stats exporter [default: `false`]
-
-`-prometheus-bind` specifies what the Prometheus HTTP server should bind to [default: `:9100`]
-
-### Example Usage
-
-`./infrared -config-path="." -receive-proxy-protocol=true -enable-prometheus -prometheus-bind="localhost:9123"`
-
-## Proxy Config
-| Field Name | Type | Required | Default | Description |
-|-------------------|---------|----------|------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| domainName | String | true | localhost | Should be [fully qualified domain name](https://en.wikipedia.org/wiki/Domain_name). Note: Every string is accepted. So `localhost` is also valid. |
-| listenTo | String | true | :25565 | The address (usually just the port; so short term `:port`) that the proxy should listen to for incoming connections. Accepts basically every address format you throw at it. Valid examples: `:25565`, `localhost:25565`, `0.0.0.0:25565`, `127.0.0.1:25565`, `example.de:25565` |
-| proxyTo | String | true | | The address that the proxy should send incoming connections to. Accepts Same formats as the `listenTo` field. |
-| proxyBind | String | false | | The local IP that is being used to dail to the server on `proxyTo`. (Same as Nginx `proxy-bind`) |
-| disconnectMessage | String | false | Sorry {{username}}, but the server is offline. | The message a client sees when he gets disconnected from Infrared due to the server on `proxyTo` won't respond. Currently available placeholders: - `username` the username of player that tries to connect - `now` the current server time - `remoteAddress` the address of the client that tries to connect - `localAddress` the local address of the server - `domain` the domain of the proxy (same as `domainName`) - `proxyTo` the address that the proxy proxies to (same as `proxyTo`) - `listenTo` the address that Infrared listens on (same as `listenTo`) |
-| timeout | Integer | true | 1000 | The time in milliseconds for the proxy to wait for a ping response before the host (the address you proxyTo) will be declared as offline. This "online check" will be resend for every new connection. |
-| spoofForcedHost | String | false | | If Infrared should modify the handshake packet to spoof BungeeCords forced_hosts option. |
-| proxyProtocol | Boolean | false | false | If Infrared should use HAProxy's Proxy Protocol for IP **forwarding**. Warning: You should only ever set this to true if you now that the server you `proxyTo` is compatible. |
-| realIp | Boolean | false | false | If Infrared should use TCPShield/RealIP Protocol for IP **forwarding**. Warning: You should only ever set this to true if you now that the server you `proxyTo` is compatible. |
-| docker | Object | false | See [Docker](#Docker) | Optional Docker configuration to automatically start a container and stop it again if unused. Note: Infrared will not take direct connections into account. Be sure to route all traffic that connects to the container through Infrared. |
-| onlineStatus | Object | false | | This is the response that Infrared will give when a client asks for the server status and the server is online. |
-| offlineStatus | Object | false | See [Response Status](#response-status) | This is the response that Infrared will give when a client asks for the server status and the server is offline. |
-| callbackServer | Object | false | See [Callback Server](#callback-server) | Optional callback server configuration to send events as a POST request to a specified URL. |
-
-### Docker
-
-| Field Name | Type | Required | Default | Description |
-|---------------|--------|----------|------------|-----------------------------------------------------------------------------|
-| dnsServer | String | false | 127.0.0.11 | The address of the DNS that resolves the container names. |
-| containerName | String | true | | The name of the container that should be automatically started/stopped. |
-| portainer | Object | false | | Optional [Portainer](#Portainer) configuration for authorization management.|
-
-#### Portainer
-
-More info on [Portainer](https://www.portainer.io/).
-
-| Field Name | Type | Required | Default | Description |
-|------------|--------|----------|---------|-------------------------------------------------------------------------------|
-| address | String | true | | URL of the Portainer instance. |
-| endpointId | String | true | | The ID typically an integer of the docker endpoint in the portainer instance. |
-| username | String | true | | Username for the Portainer user. |
-| password | String | true | | Password for the Portainer user. |
-
-### Response Status
-
-| Field Name | Type | Required | Default | Description |
-|----------------|---------|----------|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
-| versionName | String | false | Infrared 1.18 | The version name of the Minecraft Server. |
-| protocolNumber | Integer | true | 757 | The protocol version number. |
-| maxPlayers | Integer | false | 20 | The maximum number of players that can join the server. Note: Infrared will not limit more players from joining. This number is just for display. |
-| playersOnline | Integer | false | 0 | The number of online players. Note: Infrared will not that this number is also just for display. |
-| playerSamples | Array | false | | An array of player samples. See [Player Sample](#Player Sample). |
-| iconPath | String | false | | The path to the server icon. |
-| motd | String | false | | The motto of the day, short MOTD. |
-
-#### Player Sample
-
-| Field Name | Type | Required | Default | Description |
-|------------|--------|----------|---------|-------------------------|
-| Name | String | true | | Username of the player. |
-| uuid | String | false | | UUID of the player. |
+- [X] Reverse Proxy
+ - [X] Wildcards Support
+ - [X] Multi-Domain Support
-### Callback Server
+## Contributing
-| Field Name | Type | Required | Default | Description |
-|------------|--------|----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| url | String | true | | URL of the callback server URL. |
-| events | Array | true | | A string array of event names. Currently available event names are: - `Error` will send error logs - `PlayerJoin` will send player joins - `PlayerLeave` will send player leaves - `ContainerStart` will send container starts - `ContainerStop` will send container stops |
+Feel free to add or modify the source code. On GitHub the best way of doing this is by forking this repository, then cloning your fork with Git to your local system. After adding or modifying the source code, push it back to your fork and open a pull request in this repository.
-### Examples
+If you can't contribute by adding or modifying the source code, then you might be able to reach out to someone who can.
+You can also contribute indirectly by donation.
-#### Minimal Config
-
-
-min.example.com
-
-```json
-{
- "domainName": "mc.example.com",
- "proxyTo": ":8080"
-}
-```
-
-
-
-#### Full Config
-
-
-full.example.com
-
-```json
-{
- "domainName": "mc.example.com",
- "listenTo": ":25565",
- "proxyTo": ":8080",
- "proxyBind": "0.0.0.0",
- "proxyProtocol": false,
- "realIp": false,
- "timeout": 1000,
- "disconnectMessage": "Username: {{username}}\nNow: {{now}}\nRemoteAddress: {{remoteAddress}}\nLocalAddress: {{localAddress}}\nDomain: {{domain}}\nProxyTo: {{proxyTo}}\nListenTo: {{listenTo}}",
- "docker": {
- "dnsServer": "127.0.0.11",
- "containerName": "mc",
- "timeout": 30000,
- "portainer": {
- "address": "localhost:9000",
- "endpointId": "1",
- "username": "admin",
- "password": "foobar"
- }
- },
- "onlineStatus": {
- "versionName": "1.18",
- "protocolNumber": 757,
- "maxPlayers": 20,
- "playersOnline": 2,
- "playerSamples": [
- {
- "name": "Steve",
- "uuid": "8667ba71-b85a-4004-af54-457a9734eed7"
- },
- {
- "name": "Alex",
- "uuid": "ec561538-f3fd-461d-aff5-086b22154bce"
- }
- ],
- "motd": "Join us!"
- },
- "offlineStatus": {
- "versionName": "1.18",
- "protocolNumber": 757,
- "maxPlayers": 20,
- "playersOnline": 0,
- "motd": "Server is currently offline"
- },
- "callbackServer": {
- "url": "https://mc.example.com/callback",
- "events": [
- "Error",
- "PlayerJoin",
- "PlayerLeave",
- "ContainerStart",
- "ContainerStop"
- ]
- }
-}
-```
-
-
-
-## Rest API
-
-**The API should not be accessible from the internet!**
-
-### Enabling API
-
-To enable the API the environment variable `INFRARED_API_ENABLED` must be set to `"true"`. To change the http bind, set
-the env variable `INFRARED_API_BIND` to something like `"0.0.0.0:3000"` the default value is `"127.0.0.1:8080"`
-
-### API Methods
-
-#### Create new config
-
-POST `/proxies`\
-Body must contain:
-```json
-{
-"domainName": "mc.example.com",
-"proxyTo": ":8080"
-}
-```
-But all values (like in a normal config file) can be set.
-
-The API then will create a file with the name of the domain (if the file exists it will be overwritten) and write the body to it. The proxy can now be visited.
-
------
-POST `/proxies/{fileName}`\
-Body must contain:
-```json
-{
-"domainName": "mc.example.com",
-"proxyTo": ":8080"
-}
-```
-But all values (like in a normal config file) can be set.
-
-The server will create a file with the given filename (if the file exists it will be overwritten) and store the config in it.
-
-
-### Remove config
-DELETE `/proxies/{fileName}`\
-Replace `:file` with the name of the proxy configuration file.
-
-If the file was found it will be unloaded and deleted. Open connections do not close, but no new player can connect anymore.
-
-## Prometheus exporter
-The built-in prometheus exporter can be used to view metrics about infrareds operation.
-When the command line flag `-enable-prometheus` is enabled it will bind to `:9100` by default, if you would like to use another port or use an application like [node_exporter](https://github.com/prometheus/node_exporter) that also uses port 9100 on the same machine you can change the port with the `-prometheus-bind` command line flag, example: `-prometheus-bind=":9070"`.
-It is recommended to firewall the prometheus exporter with an application like *ufw* or *iptables* to make it only accessible by your own Prometheus instance.
-### Prometheus configuration:
-Example prometheus.yml configuration:
-```yaml
-scrape_configs:
- - job_name: infrared
- static_configs:
- - targets: ['infrared-exporter-hostname:port']
-```
+## Coding Guidelines
-### Metrics:
-* infrared_connected: show the amount of connected players per instance and proxy:
- * **Example response:** `infrared_connected{host="proxy.example.com",instance="vps1.example.com:9070",job="infrared"} 10`
- * **host:** listenTo domain as specified in the infrared configuration.
- * **instance:** what infrared instance the amount of players are connected to.
- * **job:** what job was specified in the prometheus configuration.
-* infrared_proxies: show the amount of active infrared proxies:
- * **Example response:** `infrared_proxies{instance="vps1.example.com:9070",job="infrared"} 5`
- * **instance:** what infrared instance has that amount of active proxies.
- * **job:** what job was specified in the prometheus configuration.
+## Project Layout
-## Coding Guidelines
+We try to use [golang-standards/project-layout](https://github.com/golang-standards/project-layout) as a reference. This should give Infrared a good foundation to grow on.
### Commit Messages
When contributing to this project please follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
specification for writing commit messages, so that changelogs and release versions can be generated automatically.
-**Example commit message**
-
-```
-fix: prevent racing of requests
-
-Introduce a request id and a reference to latest request. Dismiss
-incoming responses other than from latest request.
-
-Remove timeouts which were used to mitigate the racing issue but are
-obsolete now.
-
-Reviewed-by: Z
-Refs: #123
-```
+Examples can be found here: https://www.conventionalcommits.org/en/v1.0.0/#examples
Some tooling that can help you author those commit messages are the following plugins:
@@ -317,3 +60,7 @@ Some tooling that can help you author those commit messages are the following pl
## Similar Projects
* https://github.com/itzg/mc-router
+
+## Attributions
+
+* Free Software Foundation , Public domain, via Wikimedia Commons
\ No newline at end of file
diff --git a/api/api.go b/api/api.go
deleted file mode 100644
index bffef8bf..00000000
--- a/api/api.go
+++ /dev/null
@@ -1,115 +0,0 @@
-package api
-
-import (
- "encoding/json"
- "fmt"
- "github.com/go-chi/chi/v5"
- "github.com/go-chi/chi/v5/middleware"
- "github.com/haveachin/infrared"
- "io/ioutil"
- "log"
- "net/http"
- "os"
-)
-
-// ListenAndServe StartWebserver Start Webserver if environment variable "api-enable" is set to true
-func ListenAndServe(configPath string, apiBind string) {
- fmt.Println("Starting WebAPI on " + apiBind)
- router := chi.NewRouter()
- router.Use(middleware.Logger)
-
- router.Post("/proxies", addProxy(configPath))
- router.Post("/proxies/{fileName}", addProxyWithName(configPath))
- router.Delete("/proxies/{fileName}", removeProxy(configPath))
-
- err := http.ListenAndServe(apiBind, router)
- if err != nil {
- log.Fatal(err)
- return
- }
-}
-
-func addProxy(configPath string) http.HandlerFunc {
- return func(w http.ResponseWriter, r *http.Request) {
- rawData, err := ioutil.ReadAll(r.Body)
- if err != nil || string(rawData) == "" {
- w.WriteHeader(http.StatusBadRequest)
- return
- }
-
- jsonIsValid := checkJSONAndRegister(rawData, "", configPath)
- if jsonIsValid {
- w.WriteHeader(http.StatusOK)
- return
- } else {
- w.WriteHeader(http.StatusBadRequest)
- w.Write([]byte("{'error': 'domainName and proxyTo could not be found'}"))
- return
- }
- }
-}
-
-func addProxyWithName(configPath string) http.HandlerFunc {
- return func(w http.ResponseWriter, r *http.Request) {
- fileName := chi.URLParam(r, "fileName")
-
- rawData, err := ioutil.ReadAll(r.Body)
- if err != nil || string(rawData) == "" {
- w.WriteHeader(http.StatusBadRequest)
- return
- }
-
- jsonIsValid := checkJSONAndRegister(rawData, fileName, configPath)
- if jsonIsValid {
- w.WriteHeader(http.StatusOK)
- return
- } else {
- w.WriteHeader(http.StatusBadRequest)
- w.Write([]byte("{'error': 'domainName and proxyTo could not be found'}"))
- return
- }
- }
-}
-
-func removeProxy(configPath string) http.HandlerFunc {
- return func(w http.ResponseWriter, r *http.Request) {
- file := chi.URLParam(r, "fileName")
- fmt.Println(file)
-
- err := os.Remove(configPath + "/" + file)
- if err != nil {
- w.WriteHeader(http.StatusNoContent)
- w.Write([]byte(err.Error()))
- return
- }
- }
-}
-
-// Helper method to check for domainName and proxyTo in a given JSON array
-// If the filename is empty the domain will be used as the filename - files with the same name will be overwritten
-func checkJSONAndRegister(rawData []byte, filename string, configPath string) (successful bool) {
- var cfg infrared.ProxyConfig
- err := json.Unmarshal(rawData, &cfg)
- if err != nil {
- fmt.Println(err)
- return false
- }
-
- if cfg.DomainName == "" || cfg.ProxyTo == "" {
- return false
- }
-
- path := configPath + "/" + filename
- // If fileName is empty use domainName as filename
- if filename == "" {
- path = configPath + "/" + cfg.DomainName
- }
-
- err = os.WriteFile(path, rawData, 0644)
- if err != nil {
- fmt.Println(err)
- return false
- }
-
- return true
-}
diff --git a/assets/agplv3_logo.svg b/assets/agplv3_logo.svg
new file mode 100644
index 00000000..75e5c4c6
--- /dev/null
+++ b/assets/agplv3_logo.svg
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/assets/logo.svg b/assets/logo.svg
new file mode 100644
index 00000000..a0f6fbb6
--- /dev/null
+++ b/assets/logo.svg
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/callback/callback.go b/callback/callback.go
deleted file mode 100644
index 2b14684e..00000000
--- a/callback/callback.go
+++ /dev/null
@@ -1,86 +0,0 @@
-package callback
-
-import (
- "bytes"
- "encoding/json"
- "net/http"
- "time"
-)
-
-// HTTPClient represents an interface for the Logger to log events with.
-type HTTPClient interface {
- Do(req *http.Request) (*http.Response, error)
-}
-
-// EventLog
-type EventLog struct {
- Event string `json:"event"`
- Timestamp time.Time `json:"timestamp"`
- Payload interface{} `json:"payload"`
-}
-
-func newEventLog(event Event) EventLog {
- return EventLog{
- Event: event.EventType(),
- Timestamp: time.Now(),
- Payload: event,
- }
-}
-
-// Logger can post events to an http endpoint
-type Logger struct {
- client HTTPClient
-
- URL string
- Events []string
-}
-
-func (logger Logger) isValid() bool {
- return logger.URL != "" && len(logger.Events) > 0
-}
-
-// hasEvent checks if Logger.Events contain the given event's type.
-func (logger Logger) hasEvent(event Event) bool {
- hasEvent := false
- for _, e := range logger.Events {
- if e == event.EventType() {
- hasEvent = true
- break
- }
- }
- return hasEvent
-}
-
-// LogEvent posts the given event to an http endpoint if the Logger
-// holds a valid URL and the Logger.Events contains given event's type.
-func (logger Logger) LogEvent(event Event) (*EventLog, error) {
- if logger.client == nil {
- logger.client = http.DefaultClient
- }
-
- if !logger.isValid() {
- return nil, nil
- }
-
- if !logger.hasEvent(event) {
- return nil, nil
- }
-
- eventLog := newEventLog(event)
- bb, err := json.Marshal(eventLog)
- if err != nil {
- return nil, err
- }
-
- request, err := http.NewRequest(http.MethodPost, logger.URL, bytes.NewReader(bb))
- if err != nil {
- return nil, err
- }
-
- _, err = logger.client.Do(request)
- if err != nil {
- return nil, err
- }
-
- return &eventLog, nil
-}
diff --git a/callback/callback_test.go b/callback/callback_test.go
deleted file mode 100644
index ea76f578..00000000
--- a/callback/callback_test.go
+++ /dev/null
@@ -1,159 +0,0 @@
-package callback
-
-import (
- "bytes"
- "encoding/json"
- "net/http"
- "testing"
-)
-
-func TestLogger_IsValid(t *testing.T) {
- tt := []struct {
- logger Logger
- result bool
- }{
- {
- logger: Logger{
- URL: "something",
- Events: []string{EventTypeError, EventTypePlayerJoin, EventTypeContainerStart},
- },
- result: true,
- },
- {
- logger: Logger{
- URL: "something",
- Events: []string{EventTypeError},
- },
- result: true,
- },
- {
- logger: Logger{
- URL: "something",
- },
- result: false,
- },
- {
- logger: Logger{
- Events: []string{EventTypeError},
- },
- result: false,
- },
- {
- logger: Logger{},
- result: false,
- },
- }
-
- for _, tc := range tt {
- if tc.logger.isValid() != tc.result {
- t.Fail()
- }
- }
-}
-
-func TestLogger_HasEvent(t *testing.T) {
- tt := []struct {
- logger Logger
- event Event
- result bool
- }{
- {
- logger: Logger{
- Events: []string{EventTypeError, EventTypePlayerJoin, EventTypeContainerStart},
- },
- event: PlayerJoinEvent{},
- result: true,
- },
- {
- logger: Logger{
- Events: []string{EventTypeError},
- },
- event: PlayerJoinEvent{},
- result: false,
- },
- }
-
- for _, tc := range tt {
- if tc.logger.hasEvent(tc.event) != tc.result {
- t.Fail()
- }
- }
-}
-
-type mockHTTPClient struct {
- *testing.T
- method string
- url string
- body *bytes.Buffer
-}
-
-func (mock *mockHTTPClient) Do(req *http.Request) (*http.Response, error) {
- if req.Method != mock.method {
- mock.Fail()
- }
-
- if req.URL.String() != mock.url {
- mock.Fail()
- }
-
- _, err := mock.body.ReadFrom(req.Body)
- if err != nil {
- mock.Error(err)
- }
-
- return nil, nil
-}
-
-func TestLogger_LogEvent(t *testing.T) {
- tt := []struct {
- logger Logger
- event Event
- }{
- {
- logger: Logger{
- URL: "https://example.com",
- Events: []string{EventTypeError},
- },
- event: ErrorEvent{
- Error: "my error message",
- ProxyUID: "example.com@1.2.3.4:25565",
- },
- },
- {
- logger: Logger{
- URL: "https://example.com",
- Events: []string{EventTypePlayerJoin, EventTypePlayerLeave},
- },
- event: PlayerJoinEvent{
- Username: "notch",
- RemoteAddress: "1.2.3.4",
- TargetAddress: "1.2.3.4",
- ProxyUID: "example.com@1.2.3.4:25565",
- },
- },
- }
-
- for _, tc := range tt {
- body := bytes.Buffer{}
- tc.logger.client = &mockHTTPClient{
- T: t,
- method: http.MethodPost,
- url: tc.logger.URL,
- body: &body,
- }
-
- eventLog, err := tc.logger.LogEvent(tc.event)
- if err != nil {
- t.Error(err)
- }
-
- bb, err := json.Marshal(eventLog)
- if err != nil {
- t.Error(err)
- }
-
- if !bytes.Equal(body.Bytes(), bb) {
- t.Fail()
- }
- }
-}
diff --git a/callback/event.go b/callback/event.go
deleted file mode 100644
index e5d6373c..00000000
--- a/callback/event.go
+++ /dev/null
@@ -1,60 +0,0 @@
-package callback
-
-const (
- EventTypeError string = "Error"
- EventTypePlayerJoin string = "PlayerJoin"
- EventTypePlayerLeave string = "PlayerLeave"
- EventTypeContainerStart string = "ContainerStart"
- EventTypeContainerStop string = "ContainerStop"
-)
-
-type Event interface {
- EventType() string
-}
-
-type ErrorEvent struct {
- Error string `json:"error"`
- ProxyUID string `json:"proxyUid"`
-}
-
-func (event ErrorEvent) EventType() string {
- return EventTypeError
-}
-
-type PlayerJoinEvent struct {
- Username string `json:"username"`
- RemoteAddress string `json:"remoteAddress"`
- TargetAddress string `json:"targetAddress"`
- ProxyUID string `json:"proxyUid"`
-}
-
-func (event PlayerJoinEvent) EventType() string {
- return EventTypePlayerJoin
-}
-
-type PlayerLeaveEvent struct {
- Username string `json:"username"`
- RemoteAddress string `json:"remoteAddress"`
- TargetAddress string `json:"targetAddress"`
- ProxyUID string `json:"proxyUid"`
-}
-
-func (event PlayerLeaveEvent) EventType() string {
- return EventTypePlayerLeave
-}
-
-type ContainerStartEvent struct {
- ProxyUID string `json:"proxyUid"`
-}
-
-func (event ContainerStartEvent) EventType() string {
- return EventTypeContainerStart
-}
-
-type ContainerStopEvent struct {
- ProxyUID string `json:"proxyUid"`
-}
-
-func (event ContainerStopEvent) EventType() string {
- return EventTypeContainerStop
-}
diff --git a/callback/event_test.go b/callback/event_test.go
deleted file mode 100644
index 4c93e19c..00000000
--- a/callback/event_test.go
+++ /dev/null
@@ -1,37 +0,0 @@
-package callback
-
-import "testing"
-
-func TestErrorEvent_EventType(t *testing.T) {
- tt := []struct {
- event Event
- eventType string
- }{
- {
- event: ErrorEvent{},
- eventType: EventTypeError,
- },
- {
- event: PlayerJoinEvent{},
- eventType: EventTypePlayerJoin,
- },
- {
- event: PlayerLeaveEvent{},
- eventType: EventTypePlayerLeave,
- },
- {
- event: ContainerStartEvent{},
- eventType: EventTypeContainerStart,
- },
- {
- event: ContainerStopEvent{},
- eventType: EventTypeContainerStop,
- },
- }
-
- for _, tc := range tt {
- if tc.event.EventType() != tc.eventType {
- t.Fail()
- }
- }
-}
diff --git a/cmd/infrared/.goreleaser.yml b/cmd/infrared/.goreleaser.yml
deleted file mode 100644
index 9913b707..00000000
--- a/cmd/infrared/.goreleaser.yml
+++ /dev/null
@@ -1,48 +0,0 @@
-env:
- - GO111MODULE=on
- - GOPROXY=https://proxy.golang.org
-before:
- hooks:
- - go mod download
-builds:
- - env:
- - CGO_ENABLED=0
- goos:
- - linux
- - darwin
- - windows
- goarch:
- - 386
- - amd64
- - arm
- - arm64
- ignore:
- - goos: darwin
- goarch: 386
- mod_timestamp: '{{ .CommitTimestamp }}'
- flags:
- - -trimpath
- ldflags:
- - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
-checksum:
- name_template: '{{ .ProjectName }}_checksums.txt'
-changelog:
- sort: asc
- filters:
- exclude:
- - '^docs:'
- - '^test:'
- - Merge pull request
- - Merge branch
- - go mod tidy
-archives:
- - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
- replacements:
- darwin: Darwin
- linux: Linux
- windows: Windows
- 386: i386
- amd64: x86_64
- format_overrides:
- - goos: windows
- format: zip
\ No newline at end of file
diff --git a/cmd/infrared/main.go b/cmd/infrared/main.go
index 3501aae7..5bd3fddf 100644
--- a/cmd/infrared/main.go
+++ b/cmd/infrared/main.go
@@ -1,138 +1,21 @@
package main
import (
- "flag"
"log"
- "os"
- "strconv"
- "github.com/haveachin/infrared/api"
-
- "github.com/haveachin/infrared"
-)
-
-const (
- envPrefix = "INFRARED_"
- envConfigPath = envPrefix + "CONFIG_PATH"
- envReceiveProxyProtocol = envPrefix + "RECEIVE_PROXY_PROTOCOL"
- envApiEnabled = envPrefix + "API_ENABLED"
- envApiBind = envPrefix + "API_BIND"
- envPrometheusEnabled = envPrefix + "PROMETHEUS_ENABLED"
- envPrometheusBind = envPrefix + "PROMETHEUS_BIND"
-)
-
-const (
- clfConfigPath = "config-path"
- clfReceiveProxyProtocol = "receive-proxy-protocol"
- clfPrometheusEnabled = "enable-prometheus"
- clfPrometheusBind = "prometheus-bind"
-)
-
-var (
- configPath = "./configs"
- receiveProxyProtocol = false
- prometheusEnabled = false
- prometheusBind = ":9100"
- apiEnabled = false
- apiBind = "127.0.0.1:8080"
+ ir "github.com/haveachin/infrared/pkg/infrared"
)
-func envBool(name string, value bool) bool {
- envString := os.Getenv(name)
- if envString == "" {
- return value
- }
-
- envBool, err := strconv.ParseBool(envString)
- if err != nil {
- return value
- }
-
- return envBool
-}
-
-func envString(name string, value string) string {
- envString := os.Getenv(name)
- if envString == "" {
- return value
- }
-
- return envString
-}
-
-func initEnv() {
- configPath = envString(envConfigPath, configPath)
- receiveProxyProtocol = envBool(envReceiveProxyProtocol, receiveProxyProtocol)
- apiEnabled = envBool(envApiEnabled, apiEnabled)
- apiBind = envString(envApiBind, apiBind)
- prometheusEnabled = envBool(envPrometheusEnabled, prometheusEnabled)
- prometheusBind = envString(envPrometheusBind, prometheusBind)
-}
-
-func initFlags() {
- flag.StringVar(&configPath, clfConfigPath, configPath, "path of all proxy configs")
- flag.BoolVar(&receiveProxyProtocol, clfReceiveProxyProtocol, receiveProxyProtocol, "should accept proxy protocol")
- flag.BoolVar(&prometheusEnabled, clfPrometheusEnabled, prometheusEnabled, "should run prometheus client exposing metrics")
- flag.StringVar(&prometheusBind, clfPrometheusBind, prometheusBind, "bind address and/or port for prometheus")
- flag.Parse()
-}
-
-func init() {
- initEnv()
- initFlags()
-}
-
func main() {
- log.Println("Loading proxy configs")
-
- cfgs, err := infrared.LoadProxyConfigsFromPath(configPath, false)
- if err != nil {
- log.Printf("Failed loading proxy configs from %s; error: %s", configPath, err)
- return
- }
-
- var proxies []*infrared.Proxy
- for _, cfg := range cfgs {
- proxies = append(proxies, &infrared.Proxy{
- Config: cfg,
- })
- }
-
- outCfgs := make(chan *infrared.ProxyConfig)
- go func() {
- if err := infrared.WatchProxyConfigFolder(configPath, outCfgs); err != nil {
- log.Println("Failed watching config folder; error:", err)
- log.Println("SYSTEM FAILURE: CONFIG WATCHER FAILED")
- }
- }()
-
- gateway := infrared.Gateway{ReceiveProxyProtocol: receiveProxyProtocol}
- go func() {
- for {
- cfg, ok := <-outCfgs
- if !ok {
- return
- }
-
- proxy := &infrared.Proxy{Config: cfg}
- if err := gateway.RegisterProxy(proxy); err != nil {
- log.Println("Failed registering proxy; error:", err)
- }
- }
- }()
-
- if apiEnabled {
- go api.ListenAndServe(configPath, apiBind)
- }
-
- if prometheusEnabled {
- gateway.EnablePrometheus(prometheusBind)
- }
-
- log.Println("Starting Infrared")
- if err := gateway.ListenAndServe(proxies); err != nil {
- log.Fatal("Gateway exited; error: ", err)
- }
-
- gateway.KeepProcessActive()
+ srv := ir.New(
+ ir.AddListenerConfig(
+ ir.WithListenerBind(":25565"),
+ ),
+ ir.AddServerConfig(
+ ir.WithServerDomains("*"),
+ ir.WithServerAddress(":25566"),
+ ),
+ )
+
+ log.Println(srv.ListenAndServe())
}
diff --git a/config.go b/config.go
deleted file mode 100644
index 07728085..00000000
--- a/config.go
+++ /dev/null
@@ -1,476 +0,0 @@
-package infrared
-
-import (
- "bufio"
- "encoding/base64"
- "encoding/json"
- "fmt"
- "io/fs"
- "io/ioutil"
- "log"
- "net"
- "os"
- "path/filepath"
- "sync"
- "time"
-
- "github.com/fsnotify/fsnotify"
- "github.com/haveachin/infrared/process"
- "github.com/haveachin/infrared/protocol"
- "github.com/haveachin/infrared/protocol/status"
-)
-
-// ProxyConfig is a data representation of a Proxy configuration
-type ProxyConfig struct {
- sync.RWMutex
- watcher *fsnotify.Watcher
-
- removeCallback func()
- changeCallback func()
- dialer *Dialer
- process process.Process
-
- DomainName string `json:"domainName"`
- ListenTo string `json:"listenTo"`
- ProxyTo string `json:"proxyTo"`
- ProxyBind string `json:"proxyBind"`
- SpoofForcedHost string `json:"spoofForcedHost"`
- ProxyProtocol bool `json:"proxyProtocol"`
- RealIP bool `json:"realIp"`
- Timeout int `json:"timeout"`
- DisconnectMessage string `json:"disconnectMessage"`
- Docker DockerConfig `json:"docker"`
- OnlineStatus StatusConfig `json:"onlineStatus"`
- OfflineStatus StatusConfig `json:"offlineStatus"`
- CallbackServer CallbackServerConfig `json:"callbackServer"`
-}
-
-func (cfg *ProxyConfig) Dialer() (*Dialer, error) {
- if cfg.dialer != nil {
- return cfg.dialer, nil
- }
-
- cfg.dialer = &Dialer{
- Dialer: net.Dialer{
- Timeout: time.Millisecond * time.Duration(cfg.Timeout),
- LocalAddr: &net.TCPAddr{
- IP: net.ParseIP(cfg.ProxyBind),
- },
- },
- }
- return cfg.dialer, nil
-}
-
-type DockerConfig struct {
- DNSServer string `json:"dnsServer"`
- ContainerName string `json:"containerName"`
- Timeout int `json:"timeout"`
- Portainer struct {
- Address string `json:"address"`
- EndpointID string `json:"endpointId"`
- Username string `json:"username"`
- Password string `json:"password"`
- } `json:"portainer"`
-}
-
-func (docker DockerConfig) IsDocker() bool {
- return docker.ContainerName != ""
-}
-
-func (docker DockerConfig) IsPortainer() bool {
- return docker.ContainerName != "" &&
- docker.Portainer.Address != "" &&
- docker.Portainer.EndpointID != ""
-}
-
-type PlayerSample struct {
- Name string `json:"name"`
- UUID string `json:"uuid"`
-}
-
-type StatusConfig struct {
- cachedPacket *protocol.Packet
-
- VersionName string `json:"versionName"`
- ProtocolNumber int `json:"protocolNumber"`
- MaxPlayers int `json:"maxPlayers"`
- PlayersOnline int `json:"playersOnline"`
- PlayerSamples []PlayerSample `json:"playerSamples"`
- IconPath string `json:"iconPath"`
- MOTD string `json:"motd"`
-}
-
-func (cfg StatusConfig) StatusResponsePacket() (protocol.Packet, error) {
- if cfg.cachedPacket != nil {
- return *cfg.cachedPacket, nil
- }
-
- var samples []status.PlayerSampleJSON
- for _, sample := range cfg.PlayerSamples {
- samples = append(samples, status.PlayerSampleJSON{
- Name: sample.Name,
- ID: sample.UUID,
- })
- }
-
- responseJSON := status.ResponseJSON{
- Version: status.VersionJSON{
- Name: cfg.VersionName,
- Protocol: cfg.ProtocolNumber,
- },
- Players: status.PlayersJSON{
- Max: cfg.MaxPlayers,
- Online: cfg.PlayersOnline,
- Sample: samples,
- },
- Description: status.DescriptionJSON{
- Text: cfg.MOTD,
- },
- }
-
- if cfg.IconPath != "" {
- img64, err := loadImageAndEncodeToBase64String(cfg.IconPath)
- if err != nil {
- return protocol.Packet{}, err
- }
- responseJSON.Favicon = fmt.Sprintf("data:image/png;base64,%s", img64)
- }
-
- bb, err := json.Marshal(responseJSON)
- if err != nil {
- return protocol.Packet{}, err
- }
-
- packet := status.ClientBoundResponse{
- JSONResponse: protocol.String(bb),
- }.Marshal()
-
- cfg.cachedPacket = &packet
- return packet, nil
-}
-
-func loadImageAndEncodeToBase64String(path string) (string, error) {
- if path == "" {
- return "", nil
- }
-
- imgFile, err := os.Open(path)
- if err != nil {
- return "", err
- }
- defer imgFile.Close()
-
- fileInfo, err := imgFile.Stat()
- if err != nil {
- return "", err
- }
-
- buffer := make([]byte, fileInfo.Size())
- fileReader := bufio.NewReader(imgFile)
- _, err = fileReader.Read(buffer)
- if err != nil {
- return "", nil
- }
-
- return base64.StdEncoding.EncodeToString(buffer), nil
-}
-
-type CallbackServerConfig struct {
- URL string `json:"url"`
- Events []string `json:"events"`
-}
-
-func DefaultProxyConfig() ProxyConfig {
- return ProxyConfig{
- DomainName: "localhost",
- ListenTo: ":25565",
- Timeout: 1000,
- DisconnectMessage: "Sorry {{username}}, but the server is offline.",
- Docker: DockerConfig{
- DNSServer: "127.0.0.11",
- Timeout: 300000,
- },
- OfflineStatus: StatusConfig{
- VersionName: "Infrared 1.18",
- ProtocolNumber: 757,
- MaxPlayers: 20,
- MOTD: "Powered by Infrared",
- },
- }
-}
-
-func ReadFilePaths(path string, recursive bool) ([]string, error) {
- if recursive {
- return readFilePathsRecursively(path)
- }
-
- return readFilePaths(path)
-}
-
-func readFilePathsRecursively(path string) ([]string, error) {
- var filePaths []string
-
- err := filepath.WalkDir(path, func(path string, dir fs.DirEntry, err error) error {
- if err != nil {
- return err
- }
-
- if dir.IsDir() {
- return nil
- }
-
- // check the type of file that is behind symlinks link
- if dir.Type()&os.ModeSymlink == os.ModeSymlink {
- linkedToDir, err := isLinkedToDir(path)
- if err != nil {
- return err
- }
-
- if linkedToDir {
- return nil
- }
- }
-
- filePaths = append(filePaths, path)
- return nil
- })
-
- return filePaths, err
-}
-
-func readFilePaths(path string) ([]string, error) {
- var filePaths []string
- files, err := ioutil.ReadDir(path)
- if err != nil {
- return nil, err
- }
-
- for _, file := range files {
- if file.IsDir() {
- continue
- }
-
- fullPathFile := filepath.Join(path, file.Name())
-
- // check the type of file that is behind symlinks link
- if file.Mode()&os.ModeSymlink == os.ModeSymlink {
- linkedToDir, err := isLinkedToDir(fullPathFile)
- if err != nil {
- return nil, err
- }
-
- if linkedToDir {
- continue
- }
- }
-
- filePaths = append(filePaths, fullPathFile)
- }
-
- return filePaths, err
-}
-
-func isLinkedToDir(path string) (bool, error) {
- linkedFile, err := filepath.EvalSymlinks(path)
- if err != nil {
- return false, err
- }
-
- linkedFileInfo, err := os.Lstat(linkedFile)
- if err != nil {
- return false, err
- }
-
- return linkedFileInfo.IsDir(), nil
-}
-
-func LoadProxyConfigsFromPath(path string, recursive bool) ([]*ProxyConfig, error) {
- filePaths, err := ReadFilePaths(path, recursive)
- if err != nil {
- return nil, err
- }
-
- var cfgs []*ProxyConfig
-
- for _, filePath := range filePaths {
- cfg, err := NewProxyConfigFromPath(filePath)
- if err != nil {
- return nil, err
- }
- cfgs = append(cfgs, cfg)
- }
-
- return cfgs, nil
-}
-
-// NewProxyConfigFromPath loads a ProxyConfig from a file path and then starts watching
-// it for changes. On change the ProxyConfig will automatically LoadFromPath itself
-func NewProxyConfigFromPath(path string) (*ProxyConfig, error) {
- log.Println("Loading", path)
-
- var cfg ProxyConfig
- if err := cfg.LoadFromPath(path); err != nil {
- return nil, err
- }
-
- watcher, err := fsnotify.NewWatcher()
- if err != nil {
- return nil, err
- }
- cfg.watcher = watcher
-
- go func() {
- defer watcher.Close()
- log.Printf("Starting to watch %s", path)
- cfg.watch(path, time.Millisecond*50)
- log.Printf("Stopping to watch %s", path)
- }()
-
- if err := watcher.Add(path); err != nil {
- return nil, err
- }
-
- return &cfg, err
-}
-
-func (cfg *ProxyConfig) watch(path string, interval time.Duration) {
- // The interval protects the watcher from write event spams
- // This is necessary due to how some text editors handle file safes
- tick := time.Tick(interval)
- var lastEvent *fsnotify.Event
-
- for {
- select {
- case <-tick:
- if lastEvent == nil {
- continue
- }
- cfg.onConfigWrite(*lastEvent)
- lastEvent = nil
- case event, ok := <-cfg.watcher.Events:
- if !ok {
- return
- }
- if event.Op&fsnotify.Remove == fsnotify.Remove {
- cfg.removeCallback()
- return
- }
- if event.Op&fsnotify.Write == fsnotify.Write {
- lastEvent = &event
- }
- case err, ok := <-cfg.watcher.Errors:
- if !ok {
- return
- }
- log.Printf("Failed watching %s; error %s", path, err)
- }
- }
-}
-
-func (cfg *ProxyConfig) onConfigWrite(event fsnotify.Event) {
- log.Println("Updating", event.Name)
- if err := cfg.LoadFromPath(event.Name); err != nil {
- log.Printf("Failed update on %s; error %s", event.Name, err)
- return
- }
- cfg.OnlineStatus.cachedPacket = nil
- cfg.OfflineStatus.cachedPacket = nil
- cfg.dialer = nil
- cfg.process = nil
- cfg.changeCallback()
-}
-
-// LoadFromPath loads the ProxyConfig from a file
-func (cfg *ProxyConfig) LoadFromPath(path string) error {
- cfg.Lock()
- defer cfg.Unlock()
-
- var defaultCfg map[string]interface{}
- bb, err := json.Marshal(DefaultProxyConfig())
- if err != nil {
- return err
- }
-
- if err := json.Unmarshal(bb, &defaultCfg); err != nil {
- return err
- }
-
- bb, err = ioutil.ReadFile(path)
- if err != nil {
- return err
- }
-
- var loadedCfg map[string]interface{}
- if err := json.Unmarshal(bb, &loadedCfg); err != nil {
- log.Println(string(bb))
- return err
- }
-
- for k, v := range loadedCfg {
- defaultCfg[k] = v
- }
-
- bb, err = json.Marshal(defaultCfg)
- if err != nil {
- return err
- }
-
- return json.Unmarshal(bb, cfg)
-}
-
-func WatchProxyConfigFolder(path string, out chan *ProxyConfig) error {
- watcher, err := fsnotify.NewWatcher()
- if err != nil {
- return err
- }
- defer watcher.Close()
-
- if err := watcher.Add(path); err != nil {
- return err
- }
-
- defer close(out)
- for {
- select {
- case event, ok := <-watcher.Events:
- if !ok {
- return nil
- }
- if event.Op&fsnotify.Create == fsnotify.Create {
- fileInfo, err := os.Lstat(event.Name)
- if err != nil {
- log.Printf("%s was created, but we failed to stat it: %v", event.Name, err)
- continue
- }
-
- if fileInfo.IsDir() {
- continue
- }
-
- // check the type of file that is behind symlinks link
- if fileInfo.Mode()&os.ModeSymlink == os.ModeSymlink {
- linkedToDir, err := isLinkedToDir(event.Name)
- if err != nil {
- return err
- }
-
- if linkedToDir {
- continue
- }
- }
-
- proxyCfg, err := NewProxyConfigFromPath(event.Name)
- if err != nil {
- log.Printf("Failed loading %s; error %s", event.Name, err)
- continue
- }
- out <- proxyCfg
- }
- case err, ok := <-watcher.Errors:
- if !ok {
- return nil
- }
- log.Printf("Failed watching %s; error %s", path, err)
- }
- }
-}
diff --git a/configs/haproxy.cfg b/configs/haproxy.cfg
new file mode 100644
index 00000000..b5cefef7
--- /dev/null
+++ b/configs/haproxy.cfg
@@ -0,0 +1,37 @@
+#---------------------------------------------------------------------
+# Example configuration. See the full configuration manual online.
+#
+# http://www.haproxy.org/download/2.5/doc/configuration.txt
+#
+#---------------------------------------------------------------------
+
+global
+ maxconn 20000
+ log stdout local0 debug
+ user haproxy
+ chroot /usr/share/haproxy
+ pidfile /run/haproxy.pid
+ daemon
+
+defaults
+ log global
+
+resolvers nameserver
+ nameserver ns1 1.1.1.1:53
+ nameserver ns2 8.8.8.8:53
+
+#listen minecraft
+# bind :25500
+# mode tcp
+# server s1 127.0.0.1:25565 send-proxy-v2 resolvers nameserver
+
+frontend minecraft_fe
+ maxconn 2000
+ mode tcp
+ bind :25500
+ default_backend minecraft_be
+
+backend minecraft_be
+ mode tcp
+# server s1 185.232.71.248:25565 send-proxy-v2 resolvers nameserver
+ server s1 127.0.0.1:25565 send-proxy-v2 resolvers nameserver
\ No newline at end of file
diff --git a/conn.go b/conn.go
deleted file mode 100644
index ed8a5d22..00000000
--- a/conn.go
+++ /dev/null
@@ -1,122 +0,0 @@
-package infrared
-
-import (
- "bufio"
- "crypto/cipher"
- "github.com/haveachin/infrared/protocol"
- "io"
- "net"
-)
-
-type PacketWriter interface {
- WritePacket(p protocol.Packet) error
-}
-
-type PacketReader interface {
- ReadPacket() (protocol.Packet, error)
-}
-
-type PacketPeeker interface {
- PeekPacket() (protocol.Packet, error)
-}
-
-type conn struct {
- net.Conn
-
- r *bufio.Reader
- w io.Writer
-}
-
-type Listener struct {
- net.Listener
-}
-
-func Listen(addr string) (Listener, error) {
- l, err := net.Listen("tcp", addr)
- return Listener{Listener: l}, err
-}
-
-func (l Listener) Accept() (Conn, error) {
- conn, err := l.Listener.Accept()
- if err != nil {
- return nil, err
- }
- return wrapConn(conn), nil
-}
-
-// Conn is a minecraft Connection
-type Conn interface {
- net.Conn
- PacketWriter
- PacketReader
- PacketPeeker
-
- Reader() *bufio.Reader
-}
-
-// wrapConn warp an net.Conn to infared.conn
-func wrapConn(c net.Conn) *conn {
- return &conn{
- Conn: c,
- r: bufio.NewReader(c),
- w: c,
- }
-}
-
-type Dialer struct {
- net.Dialer
-}
-
-// Dial create a Minecraft connection
-func (d Dialer) Dial(addr string) (Conn, error) {
- conn, err := d.Dialer.Dial("tcp", addr)
- if err != nil {
- return nil, err
- }
-
- return wrapConn(conn), nil
-}
-
-func (c *conn) Read(b []byte) (int, error) {
- return c.r.Read(b)
-}
-
-func (c *conn) Write(b []byte) (int, error) {
- return c.w.Write(b)
-}
-
-// ReadPacket read a Packet from Conn.
-func (c *conn) ReadPacket() (protocol.Packet, error) {
- return protocol.ReadPacket(c.r)
-}
-
-// PeekPacket peeks a Packet from Conn.
-func (c *conn) PeekPacket() (protocol.Packet, error) {
- return protocol.PeekPacket(c.r)
-}
-
-//WritePacket write a Packet to Conn.
-func (c *conn) WritePacket(p protocol.Packet) error {
- pk, err := p.Marshal()
- if err != nil {
- return err
- }
- _, err = c.w.Write(pk)
- return err
-}
-
-// SetCipher sets the decode/encode stream for this Conn
-func (c *conn) SetCipher(ecoStream, decoStream cipher.Stream) {
- c.r = bufio.NewReader(cipher.StreamReader{
- S: decoStream,
- R: c.Conn,
- })
- c.w = cipher.StreamWriter{
- S: ecoStream,
- W: c.Conn,
- }
-}
-
-func (c *conn) Reader() *bufio.Reader {
- return c.r
-}
diff --git a/deployments/docker-compose.dev.yml b/deployments/docker-compose.dev.yml
new file mode 100644
index 00000000..2377da30
--- /dev/null
+++ b/deployments/docker-compose.dev.yml
@@ -0,0 +1,45 @@
+version: "3"
+
+services:
+ minecraft-java-server:
+ image: itzg/minecraft-server:java17
+ container_name: infrared-dev-paper-server
+ restart: "no"
+ volumes:
+ - ../.dev/paper:/data
+ ports:
+ - 25566:25565/tcp
+ environment:
+ EULA: "TRUE"
+ VERSION: "1.20.1"
+ TYPE: PAPER
+ networks:
+ - infrared
+ labels:
+ - infrared.java.servers.devserver.gateways=[default]
+ - infrared.java.servers.devserver.domains=[*]
+ - infrared.java.servers.devserver.address=:25566
+
+ haproxy:
+ image: haproxy
+ container_name: infrared-dev-haproxy
+ networks:
+ - infrared
+ volumes:
+ - ../.dev/haproxy:/usr/local/etc/haproxy:ro
+ sysctls:
+ - net.ipv4.ip_unprivileged_port_start=0
+ ports:
+ - 25567:25565/tcp
+
+ redis:
+ image: redis
+ container_name: infrared-dev-redis
+ ports:
+ - 6379:6379/tcp
+ networks:
+ - infrared
+
+networks:
+ infrared:
+ name: infrared
diff --git a/docker-compose.yml b/docker-compose.yml
deleted file mode 100644
index e29e4b11..00000000
--- a/docker-compose.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-version: "3"
-
-services:
- infrared:
- build: "."
- container_name: "infrared"
- restart: "unless-stopped"
- stdin_open: true
- tty: true
- ports:
- - "25565:25565/tcp"
- volumes:
- - "/usr/local/infrared/configs:/configs"
- expose:
- - "25565"
- environment:
- INFRARED_CONFIG_PATH: "/configs"
diff --git a/gateway.go b/gateway.go
deleted file mode 100644
index 8ab933ea..00000000
--- a/gateway.go
+++ /dev/null
@@ -1,219 +0,0 @@
-package infrared
-
-import (
- "errors"
- "log"
- "net/http"
- "sync"
-
- "github.com/haveachin/infrared/callback"
- "github.com/haveachin/infrared/protocol/handshaking"
- "github.com/pires/go-proxyproto"
-
- "github.com/prometheus/client_golang/prometheus"
- "github.com/prometheus/client_golang/prometheus/promauto"
- "github.com/prometheus/client_golang/prometheus/promhttp"
-)
-
-var (
- proxiesActive = promauto.NewGauge(prometheus.GaugeOpts{
- Name: "infrared_proxies",
- Help: "The total number of proxies running",
- })
-)
-
-type Gateway struct {
- ReceiveProxyProtocol bool
- listeners sync.Map
- Proxies sync.Map
- closed chan bool
- wg sync.WaitGroup
-}
-
-func (gateway *Gateway) ListenAndServe(proxies []*Proxy) error {
- if len(proxies) <= 0 {
- return errors.New("no proxies in gateway")
- }
-
- gateway.closed = make(chan bool, len(proxies))
-
- for _, proxy := range proxies {
- if err := gateway.RegisterProxy(proxy); err != nil {
- gateway.Close()
- return err
- }
- }
-
- log.Println("All proxies are online")
- return nil
-}
-
-func (gateway *Gateway) EnablePrometheus(bind string) error {
- gateway.wg.Add(1)
-
- go func() {
- defer gateway.wg.Done()
-
- http.Handle("/metrics", promhttp.Handler())
- http.ListenAndServe(bind, nil)
- }()
-
- log.Println("Enabling Prometheus metrics endpoint on", bind)
- return nil
-}
-
-func (gateway *Gateway) KeepProcessActive() {
- gateway.wg.Wait()
-}
-
-// Close closes all listeners
-func (gateway *Gateway) Close() {
- gateway.listeners.Range(func(k, v interface{}) bool {
- gateway.closed <- true
- _ = v.(Listener).Close()
- return false
- })
-}
-
-func (gateway *Gateway) CloseProxy(proxyUID string) {
- log.Println("Closing proxy with UID", proxyUID)
- v, ok := gateway.Proxies.LoadAndDelete(proxyUID)
- if !ok {
- return
- }
- proxiesActive.Dec()
- proxy := v.(*Proxy)
-
- closeListener := true
- gateway.Proxies.Range(func(k, v interface{}) bool {
- otherProxy := v.(*Proxy)
- if proxy.ListenTo() == otherProxy.ListenTo() {
- closeListener = false
- return false
- }
- return true
- })
-
- if !closeListener {
- return
- }
-
- v, ok = gateway.listeners.Load(proxy.ListenTo())
- if !ok {
- return
- }
- v.(Listener).Close()
-}
-
-func (gateway *Gateway) RegisterProxy(proxy *Proxy) error {
- // Register new Proxy
- proxyUID := proxy.UID()
- log.Println("Registering proxy with UID", proxyUID)
- gateway.Proxies.Store(proxyUID, proxy)
- proxiesActive.Inc()
-
- proxy.Config.removeCallback = func() {
- gateway.CloseProxy(proxyUID)
- }
-
- proxy.Config.changeCallback = func() {
- if proxyUID == proxy.UID() {
- return
- }
- gateway.CloseProxy(proxyUID)
- if err := gateway.RegisterProxy(proxy); err != nil {
- log.Println(err)
- }
- }
-
- playersConnected.WithLabelValues(proxy.DomainName())
-
- // Check if a gate is already listening to the Proxy address
- addr := proxy.ListenTo()
- if _, ok := gateway.listeners.Load(addr); ok {
- return nil
- }
-
- log.Println("Creating listener on", addr)
- listener, err := Listen(addr)
- if err != nil {
- return err
- }
- gateway.listeners.Store(addr, listener)
-
- gateway.wg.Add(1)
- go func() {
- if err := gateway.listenAndServe(listener, addr); err != nil {
- log.Printf("Failed to listen on %s; error: %s", proxy.ListenTo(), err)
- }
- }()
- return nil
-}
-
-func (gateway *Gateway) listenAndServe(listener Listener, addr string) error {
- defer gateway.wg.Done()
-
- for {
- conn, err := listener.Accept()
- if err != nil {
- // TODO: Refactor this; it feels hacky
- if err.Error() == "use of closed network connection" {
- log.Println("Closing listener on", addr)
- gateway.listeners.Delete(addr)
- return nil
- }
-
- continue
- }
-
- go func() {
- log.Printf("[>] Incoming %s on listener %s", conn.RemoteAddr(), addr)
- defer conn.Close()
- if err := gateway.serve(conn, addr); err != nil {
- log.Printf("[x] %s closed connection with %s; error: %s", conn.RemoteAddr(), addr, err)
- return
- }
- log.Printf("[x] %s closed connection with %s", conn.RemoteAddr(), addr)
- }()
- }
-}
-
-func (gateway *Gateway) serve(conn Conn, addr string) error {
- connRemoteAddr := conn.RemoteAddr()
- if gateway.ReceiveProxyProtocol {
- header, err := proxyproto.Read(conn.Reader())
- if err != nil {
- return err
- }
- connRemoteAddr = header.SourceAddr
- }
-
- pk, err := conn.PeekPacket()
- if err != nil {
- return err
- }
-
- hs, err := handshaking.UnmarshalServerBoundHandshake(pk)
- if err != nil {
- return err
- }
-
- proxyUID := proxyUID(hs.ParseServerAddress(), addr)
-
- log.Printf("[i] %s requests proxy with UID %s", connRemoteAddr, proxyUID)
- v, ok := gateway.Proxies.Load(proxyUID)
- if !ok {
- // Client send an invalid address/port; we don't have a v for that address
- return errors.New("no proxy with uid " + proxyUID)
- }
- proxy := v.(*Proxy)
-
- if err := proxy.handleConn(conn, connRemoteAddr); err != nil {
- proxy.CallbackLogger().LogEvent(callback.ErrorEvent{
- Error: err.Error(),
- ProxyUID: proxyUID,
- })
- return err
- }
- return nil
-}
diff --git a/gateway_test.go b/gateway_test.go
deleted file mode 100644
index 99818de0..00000000
--- a/gateway_test.go
+++ /dev/null
@@ -1,635 +0,0 @@
-package infrared
-
-import (
- "encoding/json"
- "fmt"
- "net"
- "strings"
- "sync"
- "testing"
-
- "github.com/haveachin/infrared/protocol"
- "github.com/haveachin/infrared/protocol/handshaking"
- "github.com/haveachin/infrared/protocol/status"
- "github.com/pires/go-proxyproto"
-)
-
-var serverDomain string = "infrared.gateway"
-
-type testError struct {
- Error error
- Message string
-}
-
-func gatewayPort(portEnd int) int {
- return 30000 + portEnd
-}
-
-func gatewayAddr(portEnd int) string {
- return portToAddr(gatewayPort(portEnd))
-}
-
-func serverPort(portEnd int) int {
- return 20000 + portEnd
-}
-
-func serverAddr(portEnd int) string {
- return portToAddr(serverPort(portEnd))
-}
-
-func dialerPort(portEnd int) int {
- return 10000 + portEnd
-}
-
-func portToAddr(port int) string {
- return fmt.Sprintf(":%d", port)
-}
-
-func routeVersionName(index int) string {
- return fmt.Sprintf("infrared.gateway-%d", index)
-}
-
-func getIpFromAddr(addr net.Addr) string {
- return strings.Split(addr.String(), ":")[0]
-}
-
-func proxyConfigWithPortEnd(portEnd int) *ProxyConfig {
- serverAddr := serverAddr(portEnd)
- gatewayAddr := gatewayAddr(portEnd)
- return createBasicProxyConfig(serverDomain, gatewayAddr, serverAddr)
-}
-
-func createBasicProxyConfig(serverDomain, gatewayAddr, serverAddr string) *ProxyConfig {
- return &ProxyConfig{
- DomainName: serverDomain,
- ListenTo: gatewayAddr,
- ProxyTo: serverAddr,
- }
-}
-
-func createProxyProtocolConfig(portEnd int, proxyproto bool) *ProxyConfig {
- config := proxyConfigWithPortEnd(portEnd)
- config.ProxyProtocol = proxyproto
- return config
-}
-
-func statusHandshakePort(portEnd int) protocol.Packet {
- gatewayPort := gatewayPort(portEnd)
- return serverHandshake(serverDomain, gatewayPort)
-}
-
-func serverHandshake(domain string, port int) protocol.Packet {
- hs := handshaking.ServerBoundHandshake{
- ProtocolVersion: 574,
- ServerAddress: protocol.String(domain),
- ServerPort: protocol.UnsignedShort(port),
- NextState: 1,
- }
- return hs.Marshal()
-}
-
-func configToProxies(config *ProxyConfig) []*Proxy {
- proxyConfigs := make([]*ProxyConfig, 0)
- proxyConfigs = append(proxyConfigs, config)
- return configsToProxies(proxyConfigs)
-}
-
-func configsToProxies(config []*ProxyConfig) []*Proxy {
- var proxies []*Proxy
- for _, c := range config {
- proxy := &Proxy{Config: c}
- proxies = append(proxies, proxy)
- }
- return proxies
-}
-
-func sendHandshake(conn Conn, pk protocol.Packet) *testError {
- if err := conn.WritePacket(pk); err != nil {
- return &testError{err, "Can't write handshake"}
- }
- return nil
-}
-
-func statusPKWithVersion(name string) StatusConfig {
- samples := make([]PlayerSample, 0)
- return StatusConfig{VersionName: name, ProtocolNumber: 754,
- MaxPlayers: 20, PlayersOnline: 0, PlayerSamples: samples, MOTD: "Server MOTD"}
-}
-
-func sendProxyProtocolHeader(rconn Conn) *testError {
- header := createProxyProtocolHeader()
- if _, err := header.WriteTo(rconn); err != nil {
- return &testError{err, "Can't write proxy protocol header"}
- }
- return nil
-}
-
-var serverVersionName = "Infrared-test-online"
-
-var onlineStatus = StatusConfig{
- VersionName: "Infrared 1.16.5 Online",
- ProtocolNumber: 754,
- MaxPlayers: 20,
- MOTD: "Powered by Infrared",
-}
-
-var offlineStatus = StatusConfig{
- VersionName: "Infrared 1.16.5 Offline",
- ProtocolNumber: 754,
- MaxPlayers: 20,
- MOTD: "Powered by Infrared",
-}
-
-type statusListenerConfig struct {
- id int
- addr string
- status StatusConfig
-}
-
-func statusListen(c statusListenerConfig, errorCh chan *testError) {
- listener, err := Listen(c.addr)
- if err != nil {
- errorCh <- &testError{err, fmt.Sprintf("Can't listen to %v", c.addr)}
- }
-
- go func() {
- defer listener.Close()
- for {
- conn, err := listener.Accept()
- if err != nil {
- errorCh <- &testError{err, "Can't accept connection on listener"}
- }
- pk, err := c.status.StatusResponsePacket()
- if err != nil {
- errorCh <- &testError{err, "Can't create status response packet"}
- }
- go func() {
- if err := conn.WritePacket(pk); err != nil {
- errorCh <- &testError{err, "Can't write status response packet on connection"}
- }
- }()
- }
- }()
-}
-
-type statusDialConfig struct {
- pk protocol.Packet
- gatewayAddr string
- dialerPort int
- sendProxyProtocolHeader bool
- useProxyProtocol bool
-}
-
-func statusDial(c statusDialConfig) (string, *testError) {
- var conn Conn
- var err error
- if c.useProxyProtocol {
- conn, err = createConnWithFakeIP(c.dialerPort, c.gatewayAddr)
- } else {
- conn, err = Dialer{}.Dial(c.gatewayAddr)
- }
-
- if err != nil {
- return "", &testError{err, "Can't make a connection with gateway"}
- }
- defer conn.Close()
-
- if c.sendProxyProtocolHeader {
- if err := sendProxyProtocolHeader(conn); err != nil {
- return "", err
- }
- }
-
- if err := sendHandshake(conn, c.pk); err != nil {
- return "", err
- }
-
- statusPk := status.ServerBoundRequest{}.Marshal()
- if err := conn.WritePacket(statusPk); err != nil {
- return "", &testError{err, "Can't write status request packet"}
- }
-
- receivedPk, err := conn.ReadPacket()
- if err != nil {
- return "", &testError{err, "Can't read status reponse packet"}
- }
-
- response, err := status.UnmarshalClientBoundResponse(receivedPk)
- if err != nil {
- return "", &testError{err, "Can't unmarshal status reponse packet"}
- }
-
- res := &status.ResponseJSON{}
- json.Unmarshal([]byte(response.JSONResponse), &res)
- return res.Version.Name, nil
-}
-
-func createConnWithFakeIP(dialerPort int, gatewayAddr string) (Conn, error) {
- dialer := &net.Dialer{
- LocalAddr: &net.TCPAddr{
- IP: net.ParseIP("127.0.0.1"),
- Port: dialerPort,
- },
- }
- netConn, err := dialer.Dial("tcp", gatewayAddr)
- if err != nil {
- return nil, err
- }
- return wrapConn(netConn), nil
-}
-
-func createProxyProtocolHeader() proxyproto.Header {
- return proxyproto.Header{
- Version: 2,
- Command: proxyproto.PROXY,
- TransportProtocol: proxyproto.TCPv4,
- SourceAddr: &net.TCPAddr{
- IP: net.ParseIP("109.226.143.210"),
- Port: 0,
- },
- DestinationAddr: &net.TCPAddr{
- IP: net.ParseIP("210.223.216.109"),
- Port: 0,
- },
- }
-}
-
-func proxyProtoListen(portEnd int) (string, *testError) {
- listenAddr := serverAddr(portEnd)
- listener, err := Listen(listenAddr)
- if err != nil {
- return "", &testError{err, fmt.Sprintf("Can't listen to %v", listenAddr)}
- }
- defer listener.Close()
-
- proxyListener := &proxyproto.Listener{Listener: listener.Listener}
- defer proxyListener.Close()
-
- conn, err := proxyListener.Accept()
- if err != nil {
- return "", &testError{err, "Can't accept connection on listener"}
- }
- defer conn.Close()
- return getIpFromAddr(conn.RemoteAddr()), nil
-}
-
-func TestStatusRequest(t *testing.T) {
- tt := []struct {
- name string
- portEnd int
- onlineStatus StatusConfig
- offlineStatus StatusConfig
- activeServer bool
- expectedVersion string
- }{
- {
- name: "ServerOnlineWithoutConfig",
- portEnd: 570,
- activeServer: true,
- expectedVersion: serverVersionName,
- },
- {
- name: "ServerOfflineWithoutConfig",
- portEnd: 571,
- activeServer: false,
- expectedVersion: "",
- },
- {
- name: "ServerOnlineWithConfig",
- portEnd: 572,
- onlineStatus: onlineStatus,
- offlineStatus: offlineStatus,
- activeServer: true,
- expectedVersion: onlineStatus.VersionName,
- },
- {
- name: "ServerOfflineWithConfig",
- portEnd: 573,
- onlineStatus: onlineStatus,
- offlineStatus: offlineStatus,
- activeServer: false,
- expectedVersion: offlineStatus.VersionName,
- },
- }
-
- for _, tc := range tt {
- t.Run(tc.name, func(t *testing.T) {
- wg := &sync.WaitGroup{}
- errorCh := make(chan *testError)
- resultCh := make(chan bool)
- wg.Add(1)
- go func(wg *sync.WaitGroup) {
- config := proxyConfigWithPortEnd(tc.portEnd)
- config.OnlineStatus = tc.onlineStatus
- config.OfflineStatus = tc.offlineStatus
-
- gateway := Gateway{}
- proxies := configToProxies(config)
- if err := gateway.ListenAndServe(proxies); err != nil {
- errorCh <- &testError{err, "Can't start gateway"}
- }
- wg.Done()
- gateway.KeepProcessActive()
- }(wg)
-
- if tc.activeServer {
- wg.Add(1)
- serverCfg := statusListenerConfig{}
- serverCfg.status = statusPKWithVersion(serverVersionName)
- serverCfg.addr = serverAddr(tc.portEnd)
- go func() {
- statusListen(serverCfg, errorCh)
- wg.Done()
- }()
- }
-
- wg.Wait()
- go func() {
- pk := statusHandshakePort(tc.portEnd)
- config := statusDialConfig{
- pk: pk,
- gatewayAddr: gatewayAddr(tc.portEnd),
- dialerPort: dialerPort(tc.portEnd),
- }
- receivedVersion, err := statusDial(config)
- if err != nil {
- errorCh <- err
- return
- }
-
- resultCh <- receivedVersion == tc.expectedVersion
- }()
-
- select {
- case err := <-errorCh:
- t.Fatalf("Unexpected Error in test: %s\n%v", err.Message, err.Error)
- case r := <-resultCh:
- if !r {
- t.Fail()
- }
- }
- })
- }
-}
-
-func TestProxyProtocol(t *testing.T) {
- tt := []struct {
- name string
- proxyproto bool
- receiveProxyproto bool
- portEnd int
- shouldMatch bool
- expectingIp string
- }{
- {
- name: "ProxyProtocolOn",
- proxyproto: true,
- receiveProxyproto: false,
- portEnd: 581,
- shouldMatch: true,
- expectingIp: "127.0.0.1",
- },
- {
- name: "ProxyProtocolOff",
- proxyproto: false,
- receiveProxyproto: false,
- portEnd: 582,
- shouldMatch: true,
- expectingIp: "127.0.0.1",
- },
- {
- name: "ProxyProtocol Receive",
- proxyproto: true,
- receiveProxyproto: true,
- portEnd: 583,
- shouldMatch: true,
- expectingIp: "109.226.143.210",
- },
- }
-
- for _, tc := range tt {
- t.Run(tc.name, func(t *testing.T) {
- errorCh := make(chan *testError)
- resultCh := make(chan bool)
- wg := &sync.WaitGroup{}
-
- wg.Add(1)
- go func(wg *sync.WaitGroup) {
- config := createProxyProtocolConfig(tc.portEnd, tc.proxyproto)
- gateway := Gateway{
- ReceiveProxyProtocol: tc.receiveProxyproto,
- }
- proxies := configToProxies(config)
- if err := gateway.ListenAndServe(proxies); err != nil {
- errorCh <- &testError{err, "Can't start gateway"}
- }
- wg.Done()
- gateway.KeepProcessActive()
- }(wg)
-
- go func() {
- ip, err := proxyProtoListen(tc.portEnd)
- if err != nil {
- errorCh <- err
- return
- }
- resultCh <- ip == tc.expectingIp
- }()
- wg.Wait()
- go func() {
-
- pk := statusHandshakePort(tc.portEnd)
- config := statusDialConfig{
- pk: pk,
- gatewayAddr: gatewayAddr(tc.portEnd),
- dialerPort: dialerPort(tc.portEnd),
- useProxyProtocol: tc.proxyproto,
- sendProxyProtocolHeader: tc.receiveProxyproto,
- }
-
- _, err := statusDial(config)
- if err != nil {
- errorCh <- err
- }
- }()
-
- select {
- case err := <-errorCh:
- t.Fatalf("Unexpected Error in test: %s\n%v", err.Message, err.Error)
- case r := <-resultCh:
- if r != tc.shouldMatch {
- t.Errorf("got: %v; want: %v", r, tc.shouldMatch)
- }
- }
-
- })
- }
-}
-
-func TestRouting(t *testing.T) {
- wg := &sync.WaitGroup{}
- errorCh := make(chan *testError)
-
- basePort := 540
- routingConfig := make([]*ProxyConfig, 0)
- serverConfigs := make([]statusListenerConfig, 0)
-
- servers := []struct {
- id int
- domain string
- portEnd int
- }{
- {
- id: 0,
- domain: "infrared",
- portEnd: 530,
- },
- {
- id: 9,
- domain: "infrared",
- portEnd: 531,
- },
- {
- id: 1,
- domain: "infrared-dash",
- portEnd: 530,
- },
- {
- id: 2,
- domain: ".dottedInfrared.",
- portEnd: 530,
- },
- }
-
- tt := []struct {
- name string
- expectedId int
- requestDomain string
- portEnd int
- expectError bool
- shouldMatch bool
- }{
- {
- name: "Single word domain",
- expectedId: 0,
- requestDomain: "infrared",
- portEnd: 530,
- expectError: false,
- shouldMatch: true,
- },
- {
- name: "Single word domain but wrong id",
- expectedId: 1,
- requestDomain: "infrared",
- portEnd: 530,
- expectError: false,
- shouldMatch: false,
- },
- {
- name: "duplicated domain but other port",
- expectedId: 9,
- requestDomain: "infrared",
- portEnd: 531,
- expectError: false,
- shouldMatch: true,
- },
- {
- name: "Domain with a dash",
- expectedId: 1,
- requestDomain: "infrared-dash",
- portEnd: 530,
- expectError: false,
- shouldMatch: true,
- },
- {
- name: "Domain with points at both ends",
- expectedId: 2,
- requestDomain: ".dottedInfrared.",
- portEnd: 530,
- expectError: true,
- shouldMatch: false,
- },
- }
-
- for i, server := range servers {
- port := basePort + i
- proxyC := &ProxyConfig{}
- serverC := statusListenerConfig{}
-
- serverAddr := serverAddr(port)
- proxyC.ListenTo = gatewayAddr(server.portEnd)
- proxyC.ProxyTo = serverAddr
- proxyC.DomainName = server.domain
- routingConfig = append(routingConfig, proxyC)
-
- serverC.id = server.id
- serverC.addr = serverAddr
- serverC.status = statusPKWithVersion(routeVersionName(server.id))
- serverConfigs = append(serverConfigs, serverC)
- }
-
- wg.Add(1)
- go func() {
- gateway := Gateway{}
- proxies := configsToProxies(routingConfig)
- if err := gateway.ListenAndServe(proxies); err != nil {
- errorCh <- &testError{err, "Can't start gateway"}
- }
- wg.Done()
- gateway.KeepProcessActive()
- }()
-
- for _, c := range serverConfigs {
- wg.Add(1)
- go func(config statusListenerConfig) {
- statusListen(config, errorCh)
- wg.Done()
- }(c)
- }
-
- wg.Wait()
-
- select {
- case err := <-errorCh:
- t.Fatalf("Unexpected Error before tests: %s\n%v", err.Message, err.Error)
- default:
- }
-
- for _, tc := range tt {
- t.Run(tc.name, func(t *testing.T) {
- resultCh := make(chan bool)
-
- go func() {
- expectedName := routeVersionName(tc.expectedId)
- pk := serverHandshake(tc.requestDomain, tc.portEnd)
- config := statusDialConfig{
- pk: pk,
- gatewayAddr: gatewayAddr(tc.portEnd),
- dialerPort: dialerPort(tc.portEnd),
- }
-
- receivedVersion, err := statusDial(config)
- if err != nil {
- errorCh <- err
- return
- }
- resultCh <- receivedVersion == expectedName
- }()
-
- select {
- case err := <-errorCh:
- if !tc.expectError {
- t.Fatalf("Unexpected Error in test: %s\n%v", err.Message, err.Error)
- }
- case r := <-resultCh:
- if r != tc.shouldMatch {
- t.Fail()
- }
- }
- })
- }
-}
-
-func TestProxyBind(t *testing.T) {
- // TODO: Figure out a way to test this
-}
diff --git a/go.mod b/go.mod
index 24e9af24..a6c9410e 100644
--- a/go.mod
+++ b/go.mod
@@ -1,28 +1,10 @@
module github.com/haveachin/infrared
-go 1.16
+go 1.20
require (
- github.com/Microsoft/go-winio v0.4.16 // indirect
- github.com/containerd/containerd v1.4.3 // indirect
- github.com/docker/distribution v2.7.1+incompatible // indirect
- github.com/docker/docker v20.10.3+incompatible
- github.com/docker/go-connections v0.4.0 // indirect
- github.com/docker/go-units v0.4.0 // indirect
- github.com/fsnotify/fsnotify v1.4.9
- github.com/go-chi/chi/v5 v5.0.6
- github.com/gofrs/uuid v4.0.0+incompatible
- github.com/gogo/protobuf v1.3.2 // indirect
- github.com/gorilla/mux v1.8.0 // indirect
- github.com/moby/term v0.0.0-20201216013528-df9cb8a40635 // indirect
- github.com/morikuni/aec v1.0.0 // indirect
- github.com/opencontainers/go-digest v1.0.0 // indirect
- github.com/opencontainers/image-spec v1.0.1 // indirect
- github.com/pires/go-proxyproto v0.6.0
- github.com/prometheus/client_golang v1.10.0
- github.com/sirupsen/logrus v1.7.0 // indirect
- golang.org/x/net v0.0.0-20210119194325-5f4716e94777
- golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 // indirect
- google.golang.org/grpc v1.35.0 // indirect
- gotest.tools/v3 v3.0.3 // indirect
+ github.com/IGLOU-EU/go-wildcard v1.0.3
+ github.com/cespare/xxhash v1.1.0
+ github.com/google/uuid v1.3.0
+ github.com/pires/go-proxyproto v0.7.0
)
diff --git a/go.sum b/go.sum
index c62679cd..0a88ca86 100644
--- a/go.sum
+++ b/go.sum
@@ -1,492 +1,12 @@
-cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
-cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
-github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8=
-github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8=
-github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
-github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
-github.com/Microsoft/go-winio v0.4.16 h1:FtSW/jqD+l4ba5iPBj9CODVtgfYAD8w2wS923g/cFDk=
-github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0=
-github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
-github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
-github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
-github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
-github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
-github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
-github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
-github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
-github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
-github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
-github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
-github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
-github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
-github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
-github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A=
-github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU=
-github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
-github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
-github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
-github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
-github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
-github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
-github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
-github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
-github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
-github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
-github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY=
-github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
-github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE=
-github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
-github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
-github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8=
-github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
-github.com/containerd/containerd v1.4.3 h1:ijQT13JedHSHrQGWFcGEwzcNKrAGIiZ+jSD5QQG07SY=
-github.com/containerd/containerd v1.4.3/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA=
-github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
-github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
-github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
-github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
-github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
-github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
-github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
-github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
-github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
-github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
-github.com/docker/distribution v2.7.1+incompatible h1:a5mlkVzth6W5A4fOsS3D2EO5BUmsJpcB+cRlLU7cSug=
-github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
-github.com/docker/docker v20.10.3+incompatible h1:+HS4XO73J41FpA260ztGujJ+0WibrA2TPJEnWNSyGNE=
-github.com/docker/docker v20.10.3+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
-github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
-github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
-github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw=
-github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
-github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
-github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs=
-github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU=
-github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
-github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M=
-github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g=
-github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
-github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
-github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
-github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
-github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
-github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4=
-github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20=
-github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
-github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
-github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
-github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
-github.com/go-chi/chi/v5 v5.0.6 h1:CHIMAkr36TRf/zYvOqNKklMDxEm9HuqdiK+syK+tYtw=
-github.com/go-chi/chi/v5 v5.0.6/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
-github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
-github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
-github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o=
-github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
-github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
-github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
-github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
-github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
-github.com/gofrs/uuid v4.0.0+incompatible h1:1SD/1F5pU8p29ybwgQSwpQk+mwdRrXCYuPhW6m+TnJw=
-github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
-github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s=
-github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
-github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
-github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=
-github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
-github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
-github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
-github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
-github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
-github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
-github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
-github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
-github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
-github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
-github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
-github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM=
-github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
-github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
-github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
-github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
-github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
-github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
-github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
-github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M=
-github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
-github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
-github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
-github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
-github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
-github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg=
-github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
-github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
-github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
-github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
-github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
-github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
-github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
-github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
-github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE=
-github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
-github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
-github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
-github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
-github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
-github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
-github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
-github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
-github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
-github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
-github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
-github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
-github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90=
-github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
-github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
-github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
-github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
-github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
-github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
-github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
-github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg=
-github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
-github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
-github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
-github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
-github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
-github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
-github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
-github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
-github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
-github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
-github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
-github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
-github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
-github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
-github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
-github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
-github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
-github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
-github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
-github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
-github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
-github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM=
-github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4=
-github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ=
-github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
-github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
-github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
-github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
-github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
-github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
-github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
-github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
-github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
-github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
-github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
-github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
-github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
-github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
-github.com/moby/term v0.0.0-20201216013528-df9cb8a40635 h1:rzf0wL0CHVc8CEsgyygG0Mn9CNCCPZqOPaz8RiiHYQk=
-github.com/moby/term v0.0.0-20201216013528-df9cb8a40635/go.mod h1:FBS0z0QWA44HXygs7VXDUOGoN/1TV3RuWkLO04am3wc=
-github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
-github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
-github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
-github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
-github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=
-github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
-github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
-github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
-github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg=
-github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU=
-github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k=
-github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w=
-github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w=
-github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w=
-github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
-github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs=
-github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
-github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
-github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
-github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
-github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
-github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk=
-github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
-github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
-github.com/opencontainers/image-spec v1.0.1 h1:JMemWkRwHx4Zj+fVxWoMCFm/8sYGGrUVojFA6h/TRcI=
-github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
-github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis=
-github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74=
-github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
-github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
-github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA=
-github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw=
-github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4=
-github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4=
-github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM=
-github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
-github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=
-github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac=
-github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc=
-github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
-github.com/pires/go-proxyproto v0.6.0 h1:cLJUPnuQdiNf7P/wbeOKmM1khVdaMgTFDLj8h9ZrVYk=
-github.com/pires/go-proxyproto v0.6.0/go.mod h1:Odh9VFOZJCf9G8cLW5o435Xf1J95Jw9Gw5rnCjcwzAY=
-github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
-github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
-github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
-github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
-github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA=
-github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
-github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
-github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
-github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
-github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs=
-github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
-github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og=
-github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
-github.com/prometheus/client_golang v1.10.0 h1:/o0BDeWzLWXNZ+4q5gXltUvaMpJqckTa+jTNoB+z4cg=
-github.com/prometheus/client_golang v1.10.0/go.mod h1:WJM3cc3yu7XKBKa/I8WeZm+V3eltZnBwfENSU7mdogU=
-github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
-github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
-github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M=
-github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
-github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
-github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA=
-github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
-github.com/prometheus/common v0.18.0 h1:WCVKW7aL6LEe1uryfI9dnEc2ZqNB1Fn0ok930v0iL1Y=
-github.com/prometheus/common v0.18.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s=
-github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
-github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
-github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
-github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
-github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
-github.com/prometheus/procfs v0.6.0 h1:mxy4L2jP6qMonqmq+aTtOx1ifVWUgG/TAmntgbh3xv4=
-github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
-github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
-github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
-github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
-github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
-github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
-github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
-github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
-github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
-github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
-github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
-github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
-github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
-github.com/sirupsen/logrus v1.7.0 h1:ShrD1U9pZB12TX0cVy0DtePoCH97K8EtX+mg7ZARUtM=
-github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
-github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
-github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
-github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
-github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY=
-github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
-github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
-github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
-github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
-github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
-github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI=
-github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
-github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
-github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
-github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
-github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
-github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
-github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
-github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
-github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
-github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
-github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
-github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
-github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
-go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
-go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg=
-go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
-go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
-go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
-go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
-go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
-go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
-go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=
-go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA=
-go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
-go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM=
-golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
-golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
-golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
-golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
-golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
-golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
-golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
-golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
-golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
-golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
-golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
-golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
-golang.org/x/net v0.0.0-20210119194325-5f4716e94777 h1:003p0dJM77cxMSyCPFphvZf/Y5/NXf5fzg6ufd1/Oew=
-golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
-golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
-golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
-golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200831180312-196b9ba8737a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210309074719-68d13333faf2 h1:46ULzRKLh1CwgRq2dC5SlBzEqqNCi8rreOZnNrbqcIY=
-golang.org/x/sys v0.0.0-20210309074719-68d13333faf2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
-golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
-golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
-golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k=
-golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 h1:Hir2P/De0WpUhtrKGGjvSb2YxUgyZ7EFOSLIcSSpiwE=
-golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
-golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
-golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
-golang.org/x/tools v0.0.0-20190624222133-a101b041ded4/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
-golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
-golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
-golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
-golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk=
-google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
-google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
-google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
-google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
-google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
-google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
-google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s=
-google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
-google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY=
-google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
-google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
-google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
-google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM=
-google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
-google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
-google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
-google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
-google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
-google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
-google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
-google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
-google.golang.org/grpc v1.35.0 h1:TwIQcH3es+MojMVojxxfQ3l3OF2KzlRxML2xZq0kRo8=
-google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
-google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
-google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
-google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
-google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
-google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
-google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
-google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
-google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
-google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=
-google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
-gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
-gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw=
-gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
-gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
-gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o=
-gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
-gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
-gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
-gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
-gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
-gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gotest.tools/v3 v3.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk=
-gotest.tools/v3 v3.0.3 h1:4AuOwCGf4lLR9u3YOe2awrHygurzhO/HeQ6laiA6Sx0=
-gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8=
-honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
-sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
-sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU=
+github.com/IGLOU-EU/go-wildcard v1.0.3 h1:r8T46+8/9V1STciXJomTWRpPEv4nGJATDbJkdU0Nou0=
+github.com/IGLOU-EU/go-wildcard v1.0.3/go.mod h1:/qeV4QLmydCbwH0UMQJmXDryrFKJknWi/jjO8IiuQfY=
+github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=
+github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
+github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
+github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
+github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
+github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/pires/go-proxyproto v0.7.0 h1:IukmRewDQFWC7kfnb66CSomk2q/seBuilHBYFwyq0Hs=
+github.com/pires/go-proxyproto v0.7.0/go.mod h1:Vz/1JPY/OACxWGQNIRY2BeyDmpoaWmEP40O9LbuiFR4=
+github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ=
+github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
diff --git a/grafana/README.md b/grafana/README.md
deleted file mode 100644
index e8fded26..00000000
--- a/grafana/README.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# Grafana Dashboard
-We provide a Grafana dashboard that visualizes the infrared prometheus exporters metrics. You can see all values per instance or globally across all instances.
-
-## Prerequisites
-
-* Infrared >= 1.1.0 with `-enable-prometheus` active
-* Grafana >= 7.0.0
-* Prometheus >= 2.0.0
-* [Pie Chart plugin](https://grafana.com/grafana/plugins/grafana-piechart-panel/)
-
-A Prometheus data source needs to be [added](https://prometheus.io/docs/visualization/grafana/#using) before installing the dashboard.
-
-## Installing the Dashboard
-
-In the Grafana UI complete the following steps:
-
-1. Use the *New Dashboard* button and click *Import*.
-2. Upload `dashboard.json` or copy and paste the contents of the file in the textbox and click *Load*.
-3. You can change the name and folder and click *Import*.
-4. The dashboard will appear. Under *Dashboard settings*, *Variables* and *instance* you can choose your Data source and click 'Update' to refresh the list of instances.
-
-
-
-## Graphs
-
-The dashboard comes with 2 rows with the following graphs:
-
-* Individual
- * Total and average player count per instance.
- * Amount of active proxies.
- * Player distribution pie chart ([Pie Chart plugin](https://grafana.com/grafana/plugins/grafana-piechart-panel/) required).
- * Player distribution graph.
-* Global
- * Total and average player count for all instances.
- * Amount of active proxies on all instances.
- * Player distribution pie chart ([Pie Chart plugin](https://grafana.com/grafana/plugins/grafana-piechart-panel/) required).
- * Instance distribution pie chart ([Pie Chart plugin](https://grafana.com/grafana/plugins/grafana-piechart-panel/) required).
- * Player distribution graph.
\ No newline at end of file
diff --git a/grafana/dashboard.json b/grafana/dashboard.json
deleted file mode 100644
index de679a1e..00000000
--- a/grafana/dashboard.json
+++ /dev/null
@@ -1,741 +0,0 @@
-{
- "annotations": {
- "list": [
- {
- "$$hashKey": "object:1058",
- "builtIn": 1,
- "datasource": "-- Grafana --",
- "enable": true,
- "hide": true,
- "iconColor": "rgba(0, 211, 255, 1)",
- "limit": 100,
- "name": "Annotations & Alerts",
- "showIn": 0,
- "type": "dashboard"
- }
- ]
- },
- "description": "",
- "editable": true,
- "gnetId": 1860,
- "graphTooltip": 0,
- "id": 10,
- "iteration": 1622370959805,
- "links": [],
- "panels": [
- {
- "collapsed": false,
- "datasource": null,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0
- },
- "id": 367,
- "panels": [],
- "title": "Individual",
- "type": "row"
- },
- {
- "datasource": null,
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "green",
- "mode": "fixed"
- },
- "custom": {},
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 7,
- "w": 4,
- "x": 0,
- "y": 1
- },
- "id": 369,
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {},
- "textMode": "auto"
- },
- "pluginVersion": "7.4.2",
- "targets": [
- {
- "expr": "sum(infrared_connected{instance=\"$instance\"})",
- "interval": "",
- "legendFormat": "Total",
- "refId": "A"
- },
- {
- "expr": "sum(avg_over_time(infrared_connected{instance=\"$instance\"}[${__range_s}s]))",
- "hide": false,
- "interval": "",
- "legendFormat": "Average",
- "refId": "B"
- }
- ],
- "title": "Players",
- "type": "stat"
- },
- {
- "aliasColors": {},
- "breakPoint": "50%",
- "cacheTimeout": null,
- "combine": {
- "label": "Others",
- "threshold": 0
- },
- "datasource": null,
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fontSize": "80%",
- "format": "short",
- "gridPos": {
- "h": 13,
- "w": 5,
- "x": 4,
- "y": 1
- },
- "id": 370,
- "interval": null,
- "legend": {
- "percentage": true,
- "percentageDecimals": 1,
- "show": true,
- "values": true
- },
- "legendType": "Under graph",
- "links": [],
- "nullPointMode": "connected",
- "pieType": "pie",
- "pluginVersion": "7.4.2",
- "strokeWidth": 1,
- "targets": [
- {
- "expr": "sum by (host)(infrared_connected{instance=\"$instance\"})",
- "interval": "",
- "legendFormat": "{{host}}",
- "refId": "A"
- }
- ],
- "title": "Player Distribution",
- "type": "grafana-piechart-panel",
- "valueName": "current"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": null,
- "fieldConfig": {
- "defaults": {
- "color": {},
- "custom": {},
- "thresholds": {
- "mode": "absolute",
- "steps": []
- }
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 13,
- "w": 15,
- "x": 9,
- "y": 1
- },
- "hiddenSeries": false,
- "id": 371,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "hideEmpty": false,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.4.2",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "expr": "sum by (host)(infrared_connected{instance=\"$instance\"})",
- "interval": "",
- "legendFormat": "{{host}}",
- "refId": "A"
- },
- {
- "expr": "sum(infrared_connected)",
- "hide": false,
- "interval": "",
- "legendFormat": "Total",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeFrom": null,
- "timeRegions": [],
- "timeShift": null,
- "title": "Players",
- "tooltip": {
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "buckets": null,
- "mode": "time",
- "name": null,
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "$$hashKey": "object:272",
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": "0",
- "show": true
- },
- {
- "$$hashKey": "object:273",
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- }
- ],
- "yaxis": {
- "align": false,
- "alignLevel": null
- }
- },
- {
- "datasource": null,
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {},
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 6,
- "w": 4,
- "x": 0,
- "y": 8
- },
- "id": 368,
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {},
- "textMode": "auto"
- },
- "pluginVersion": "7.4.2",
- "targets": [
- {
- "expr": "sum(infrared_proxies{instance=\"$instance\"})",
- "interval": "",
- "legendFormat": "",
- "refId": "A"
- }
- ],
- "title": "Proxies",
- "type": "stat"
- },
- {
- "collapsed": false,
- "datasource": null,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 14
- },
- "id": 364,
- "panels": [],
- "title": "Global",
- "type": "row"
- },
- {
- "datasource": null,
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {},
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 7,
- "w": 3,
- "x": 0,
- "y": 15
- },
- "id": 357,
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {},
- "textMode": "auto"
- },
- "pluginVersion": "7.4.2",
- "targets": [
- {
- "expr": "sum(infrared_proxies)",
- "interval": "",
- "legendFormat": "",
- "refId": "A"
- }
- ],
- "title": "Total Proxies",
- "type": "stat"
- },
- {
- "datasource": null,
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "green",
- "mode": "fixed"
- },
- "custom": {},
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 3,
- "y": 15
- },
- "id": 360,
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {},
- "textMode": "auto"
- },
- "pluginVersion": "7.4.2",
- "targets": [
- {
- "expr": "sum(infrared_connected)",
- "interval": "",
- "legendFormat": "Total",
- "refId": "A"
- },
- {
- "expr": "sum(avg_over_time(infrared_connected[${__range_s}s]))",
- "hide": false,
- "interval": "",
- "legendFormat": "Average",
- "refId": "B"
- }
- ],
- "title": "Total Players",
- "type": "stat"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": null,
- "fieldConfig": {
- "defaults": {
- "color": {},
- "custom": {},
- "thresholds": {
- "mode": "absolute",
- "steps": []
- }
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 21,
- "w": 15,
- "x": 9,
- "y": 15
- },
- "hiddenSeries": false,
- "id": 359,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "hideEmpty": false,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.4.2",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "expr": "sum by (host)(infrared_connected)",
- "interval": "",
- "legendFormat": " {{host}}",
- "refId": "A"
- },
- {
- "expr": "sum(infrared_connected)",
- "hide": false,
- "interval": "",
- "legendFormat": "Total",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeFrom": null,
- "timeRegions": [],
- "timeShift": null,
- "title": "Total Players",
- "tooltip": {
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "buckets": null,
- "mode": "time",
- "name": null,
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "$$hashKey": "object:272",
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": "0",
- "show": true
- },
- {
- "$$hashKey": "object:273",
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- }
- ],
- "yaxis": {
- "align": false,
- "alignLevel": null
- }
- },
- {
- "aliasColors": {},
- "breakPoint": "50%",
- "cacheTimeout": null,
- "combine": {
- "label": "Others",
- "threshold": 0
- },
- "datasource": null,
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fontSize": "80%",
- "format": "short",
- "gridPos": {
- "h": 14,
- "w": 5,
- "x": 0,
- "y": 22
- },
- "id": 362,
- "interval": null,
- "legend": {
- "percentage": true,
- "percentageDecimals": 1,
- "show": true,
- "values": true
- },
- "legendType": "Under graph",
- "links": [],
- "nullPointMode": "connected",
- "pieType": "pie",
- "pluginVersion": "7.4.2",
- "strokeWidth": 1,
- "targets": [
- {
- "expr": "sum by (host)(infrared_connected)",
- "interval": "",
- "legendFormat": "{{host}}",
- "refId": "A"
- }
- ],
- "title": "Player Distribution",
- "type": "grafana-piechart-panel",
- "valueName": "current"
- },
- {
- "aliasColors": {},
- "breakPoint": "50%",
- "cacheTimeout": null,
- "combine": {
- "label": "Others",
- "threshold": 0
- },
- "datasource": null,
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fontSize": "80%",
- "format": "short",
- "gridPos": {
- "h": 14,
- "w": 4,
- "x": 5,
- "y": 22
- },
- "id": 365,
- "interval": null,
- "legend": {
- "percentage": true,
- "percentageDecimals": 1,
- "show": true,
- "values": true
- },
- "legendType": "Under graph",
- "links": [],
- "nullPointMode": "connected",
- "pieType": "pie",
- "pluginVersion": "7.4.2",
- "strokeWidth": 1,
- "targets": [
- {
- "expr": "sum by (instance)(infrared_connected)",
- "interval": "",
- "legendFormat": "{{instance}}",
- "refId": "A"
- }
- ],
- "title": "Instance Distribution",
- "type": "grafana-piechart-panel",
- "valueName": "current"
- }
- ],
- "refresh": "5s",
- "schemaVersion": 27,
- "style": "dark",
- "tags": [
- "linux"
- ],
- "templating": {
- "list": [
- {
- "allValue": null,
- "current": {
- "selected": false,
- "text": "default",
- "value": "default"
- },
- "datasource": "default",
- "definition": "label_values({job=\"infrared\"},instance)",
- "description": null,
- "error": null,
- "hide": 0,
- "includeAll": false,
- "label": null,
- "multi": false,
- "name": "instance",
- "query": {
- "query": "label_values({job=\"infrared\"},instance)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 0,
- "regex": "",
- "skipUrlSync": false,
- "sort": 3,
- "tagValuesQuery": "",
- "tags": [],
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- }
- ]
- },
- "time": {
- "from": "now-15m",
- "to": "now"
- },
- "timepicker": {
- "refresh_intervals": [
- "5s",
- "10s",
- "30s",
- "1m",
- "5m",
- "15m",
- "30m",
- "1h",
- "2h",
- "1d"
- ],
- "time_options": [
- "5m",
- "15m",
- "1h",
- "6h",
- "12h",
- "24h",
- "2d",
- "7d",
- "30d"
- ]
- },
- "timezone": "browser",
- "title": "infrared",
- "uid": "12312312",
- "version": 3
-}
\ No newline at end of file
diff --git a/grafana/dashboard.png b/grafana/dashboard.png
deleted file mode 100644
index 33d8892536c347f4c70816548e85259fb47f8e84..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 345785
zcmeFZcR1VaA3qw^K8jWc>Y+uaQblVPMYYx1)T~YIy*Hse)uL!^A$Elrv0{r=ReMAd
z5-}@Ah#D~x;du7*{hf1N=Q{tN&voI-{ke0G_qadr_v`)oh}PD8d7g=j2><|`S5bbh
z0{}3D0{~}`XMZ_q5xsk(?&J@hx6aF_fQq4OD<>aL+be1)0svJB%!gKIPChewC>wbL
z04!gB|Dj6}WVs3e9Dh-HuBaDazJ_P8WJ6)!Z-xb(Qn{XYn{K6*IX~k1*@&Alru;*wY2aF|gkMU5J0(h)C%Nc+?rS
z?>-(i|GN8Q{Fq|3
zr{*HJs*b#A8(ddckQEU-Dwvkc(&cf{KflXX_OsGMzeGm~2n1@X^d=@I=F>B<@C(Zi
z33v(!;LMEcMIZs(jk;qA3;=%T7;1}&aTr5G9SjN&?apZnIt<8Xl?%=iAW{Hpug
zw|fsa8*~$;l(+zh>KD1$&OC3lj@fha75iCZ9-m!f0+?i7cl*{3EB$T;>{Gbg7^5ll
zr~00BKn?4&-(29))A4#}bMeO$%O~MCZ{4i5C0>Di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