diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d13aea..83b80a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +* исправлен метод /config/get_config_by_id ### v2.4.9 * обновлены зависимости (исправляет panic при запуске) ### v2.4.8 diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index 9776033..0000000 --- a/Gopkg.lock +++ /dev/null @@ -1,618 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:e92f5581902c345eb4ceffdcd4a854fb8f73cf436d47d837d1ec98ef1fe0a214" - name = "github.com/StackExchange/wmi" - packages = ["."] - pruneopts = "UT" - revision = "5d049714c4a64225c3c79a7cf7d02f7fb5b96338" - version = "1.0.0" - -[[projects]] - digest = "1:320e7ead93de9fd2b0e59b50fd92a4d50c1f8ab455d96bc2eb083267453a9709" - name = "github.com/asaskevich/govalidator" - packages = ["."] - pruneopts = "UT" - revision = "ccb8e960c48f04d6935e72476ae4a51028f9e22f" - version = "v9" - -[[projects]] - digest = "1:652880afc6b57ce0a67173f552cb35ccda816493a1da6ca20e5074a66bcd083f" - name = "github.com/buaazp/fasthttprouter" - packages = ["."] - pruneopts = "UT" - revision = "ade4e2031af3aed7fffd241084aad80a58faf421" - version = "v0.1.1" - -[[projects]] - digest = "1:553f73a4171c265045ae4f5d3122429ecf2c9c0c232c91f336127fe45480104a" - name = "github.com/cenkalti/backoff" - packages = ["."] - pruneopts = "UT" - revision = "62661b46c4093e2c1f38d943e663db1a29873e80" - version = "v2.1.0" - -[[projects]] - digest = "1:abeb38ade3f32a92943e5be54f55ed6d6e3b6602761d74b4aab4c9dd45c18abd" - name = "github.com/fsnotify/fsnotify" - packages = ["."] - pruneopts = "UT" - revision = "c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9" - version = "v1.4.7" - -[[projects]] - digest = "1:64a5a67c69b70c2420e607a8545d674a23778ed9c3e80607bfd17b77c6c87f6a" - name = "github.com/go-ole/go-ole" - packages = [ - ".", - "oleutil", - ] - pruneopts = "UT" - revision = "a41e3c4b706f6ae8dfbff342b06e40fa4d2d0506" - version = "v1.2.1" - -[[projects]] - digest = "1:e7f1117ec9d37b59ba6d70bbd8feaa9cd2d1c6f676dc88ee152f5a57908fea4b" - name = "github.com/go-pg/pg" - packages = [ - ".", - "internal", - "internal/parser", - "internal/pool", - "orm", - "types", - ] - pruneopts = "UT" - revision = "514bed76d8f579d6ff8d40294fa77e476a5c1b3f" - version = "v6.15.0" - -[[projects]] - digest = "1:fa5e9e1af8a8645086811ec5ab003806026babc57c8bb3a6f7e1ab34b80e2ff1" - name = "github.com/golang/protobuf" - packages = [ - "jsonpb", - "proto", - "protoc-gen-go/descriptor", - "ptypes", - "ptypes/any", - "ptypes/duration", - "ptypes/struct", - "ptypes/timestamp", - ] - pruneopts = "UT" - revision = "aa810b61a9c79d51363740d207bb46cf8e620ed5" - version = "v1.2.0" - -[[projects]] - branch = "master" - digest = "1:324591cd9122f94cc39a87bd44ec71153672c239e2cff5743bfad96b60be3749" - name = "github.com/googollee/go-engine.io" - packages = [ - ".", - "message", - "parser", - "polling", - "transport", - "websocket", - ] - pruneopts = "UT" - revision = "e2f255711dcb2ea41e42c6d9d98c172d7edf6509" - -[[projects]] - branch = "master" - digest = "1:3eb026ba34d6dd12b45bb6abd63b4e917ebca8d8f3022a139c0881d900ad1bee" - name = "github.com/googollee/go-socket.io" - packages = ["."] - pruneopts = "UT" - revision = "c8aeb1ed9b49d7de8fef8662efb18f1d289c5f2e" - -[[projects]] - digest = "1:7b5c6e2eeaa9ae5907c391a91c132abfd5c9e8a784a341b5625e750c67e6825d" - name = "github.com/gorilla/websocket" - packages = ["."] - pruneopts = "UT" - revision = "66b9c49e59c6c48f0ffce28c2d8b8a5678502c6d" - version = "v1.4.0" - -[[projects]] - digest = "1:d544928ef5b57ff39325b4fea31f262db66c9241324aee38ba55dfe3e836e2c8" - name = "github.com/grpc-ecosystem/grpc-gateway" - packages = [ - "runtime", - "runtime/internal", - "utilities", - ] - pruneopts = "UT" - revision = "e8bd377da7395186f2f042ee6b366fa5a11d2b39" - -[[projects]] - digest = "1:c0d19ab64b32ce9fe5cf4ddceba78d5bc9807f0016db6b1183599da3dcc24d10" - name = "github.com/hashicorp/hcl" - packages = [ - ".", - "hcl/ast", - "hcl/parser", - "hcl/printer", - "hcl/scanner", - "hcl/strconv", - "hcl/token", - "json/parser", - "json/scanner", - "json/token", - ] - pruneopts = "UT" - revision = "8cb6e5b959231cc1119e43259c4a608f9c51a241" - version = "v1.0.0" - -[[projects]] - branch = "master" - digest = "1:1b1d9534e35d61e861a7356f7f2d766e57e2777dbf79be60e1ac56bbd60adf51" - name = "github.com/integration-system/go-cmp" - packages = [ - "cmp", - "cmp/internal/diff", - "cmp/internal/function", - "cmp/internal/value", - ] - pruneopts = "UT" - revision = "ed1c8d9bf7906aec13cf28080fdf069d7687471a" - -[[projects]] - branch = "master" - digest = "1:9e2fd899fdb17e28e9d036fe7a604a1e04918aa4865d5a2150008fc12c6134be" - name = "github.com/integration-system/golang-socketio" - packages = [ - ".", - "protocol", - "transport", - ] - pruneopts = "UT" - revision = "5959fcea049facd9441fff9de976191accd3cf9f" - -[[projects]] - branch = "master" - digest = "1:900583da99fb5a30a9c3b829bab8acca29a9474d5b40a5c3cb28e7bc7cd27788" - name = "github.com/integration-system/isp-lib" - packages = [ - "backend", - "bootstrap", - "config", - "config/schema", - "controller", - "database", - "http", - "logger", - "metric", - "proto/stubs", - "socket", - "streaming", - "structure", - "utils", - ] - pruneopts = "UT" - revision = "0f71aaf83133a59c9fc143faecbd38b86ed068e2" - -[[projects]] - branch = "master" - digest = "1:a992b3ab79433b828258f9fe99af29da5aeb2e48bf8076a41ba556ac90ac04d3" - name = "github.com/integration-system/jsonschema" - packages = ["."] - pruneopts = "UT" - revision = "170a88febd847f36821e99ec54a095e6cec48528" - -[[projects]] - branch = "master" - digest = "1:fd97437fbb6b7dce04132cf06775bd258cce305c44add58eb55ca86c6c325160" - name = "github.com/jinzhu/inflection" - packages = ["."] - pruneopts = "UT" - revision = "04140366298a54a039076d798123ffa108fff46c" - -[[projects]] - digest = "1:5d713dbcad44f3358fec51fd5573d4f733c02cac5a40dcb177787ad5ffe9272f" - name = "github.com/json-iterator/go" - packages = [ - ".", - "extra", - ] - pruneopts = "UT" - revision = "1624edc4454b8682399def8740d46db5e4362ba4" - version = "v1.1.5" - -[[projects]] - digest = "1:aaa8e0e7e35d92e21daed3f241832cee73d15ca1cd3302ba3843159a959a7eac" - name = "github.com/klauspost/compress" - packages = [ - "flate", - "gzip", - "zlib", - ] - pruneopts = "UT" - revision = "30be6041bed523c18e269a700ebd9c2ea9328574" - version = "v1.4.1" - -[[projects]] - digest = "1:2d643962fac133904694fffa959bc3c5dcfdcee38c6f5ffdd99a3c93eb9c835c" - name = "github.com/klauspost/cpuid" - packages = ["."] - pruneopts = "UT" - revision = "e7e905edc00ea8827e58662220139109efea09db" - version = "v1.2.0" - -[[projects]] - digest = "1:0a69a1c0db3591fcefb47f115b224592c8dfa4368b7ba9fae509d5e16cdc95c8" - name = "github.com/konsorten/go-windows-terminal-sequences" - packages = ["."] - pruneopts = "UT" - revision = "5c8c8bd35d3832f5d134ae1e1e375b69a4d25242" - version = "v1.0.1" - -[[projects]] - digest = "1:8ef506fc2bb9ced9b151dafa592d4046063d744c646c1bbe801982ce87e4bc24" - name = "github.com/lib/pq" - packages = [ - ".", - "oid", - ] - pruneopts = "UT" - revision = "4ded0e9383f75c197b3a2aaa6d590ac52df6fd79" - version = "v1.0.0" - -[[projects]] - digest = "1:c568d7727aa262c32bdf8a3f7db83614f7af0ed661474b24588de635c20024c7" - name = "github.com/magiconair/properties" - packages = ["."] - pruneopts = "UT" - revision = "c2353362d570a7bfa228149c62842019201cfb71" - version = "v1.8.0" - -[[projects]] - digest = "1:c658e84ad3916da105a761660dcaeb01e63416c8ec7bc62256a9b411a05fcd67" - name = "github.com/mattn/go-colorable" - packages = ["."] - pruneopts = "UT" - revision = "167de6bfdfba052fa6b2d3664c8f5272e23c9072" - version = "v0.0.9" - -[[projects]] - digest = "1:0981502f9816113c9c8c4ac301583841855c8cf4da8c72f696b3ebedf6d0e4e5" - name = "github.com/mattn/go-isatty" - packages = ["."] - pruneopts = "UT" - revision = "6ca4dbf54d38eea1a992b3c722a76a5d1c4cb25c" - version = "v0.0.4" - -[[projects]] - branch = "master" - digest = "1:2b32af4d2a529083275afc192d1067d8126b578c7a9613b26600e4df9c735155" - name = "github.com/mgutz/ansi" - packages = ["."] - pruneopts = "UT" - revision = "9520e82c474b0a04dd04f8a40959027271bab992" - -[[projects]] - digest = "1:53bc4cd4914cd7cd52139990d5170d6dc99067ae31c56530621b18b35fc30318" - name = "github.com/mitchellh/mapstructure" - packages = ["."] - pruneopts = "UT" - revision = "3536a929edddb9a5b34bd6861dc4a9647cb459fe" - version = "v1.1.2" - -[[projects]] - digest = "1:33422d238f147d247752996a26574ac48dcf472976eda7f5134015f06bf16563" - name = "github.com/modern-go/concurrent" - packages = ["."] - pruneopts = "UT" - revision = "bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94" - version = "1.0.3" - -[[projects]] - digest = "1:e32bdbdb7c377a07a9a46378290059822efdce5c8d96fe71940d87cb4f918855" - name = "github.com/modern-go/reflect2" - packages = ["."] - pruneopts = "UT" - revision = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd" - version = "1.0.1" - -[[projects]] - branch = "master" - digest = "1:84bd7f8a2e0bcd53ddc33c3b47c34c1fe340c8632cbe928f7f8ae10ec6ecdd62" - name = "github.com/mohae/deepcopy" - packages = ["."] - pruneopts = "UT" - revision = "c48cc78d482608239f6c4c92a4abd87eb8761c90" - -[[projects]] - digest = "1:95741de3af260a92cc5c7f3f3061e85273f5a81b5db20d4bd68da74bd521675e" - name = "github.com/pelletier/go-toml" - packages = ["."] - pruneopts = "UT" - revision = "c01d1270ff3e442a8a57cddc1c92dc1138598194" - version = "v1.2.0" - -[[projects]] - digest = "1:d4c5d57ac0163eb71e09f1a94ca998961668700232f948d47a6269c8d7651d38" - name = "github.com/pressly/goose" - packages = ["."] - pruneopts = "UT" - revision = "7a98874933001af28951c83e958b1db750f39f8d" - version = "v2.4.5" - -[[projects]] - branch = "master" - digest = "1:d38f81081a389f1466ec98192cf9115a82158854d6f01e1c23e2e7554b97db71" - name = "github.com/rcrowley/go-metrics" - packages = ["."] - pruneopts = "UT" - revision = "3113b8401b8a98917cde58f8bbd42a1b1c03b1fd" - -[[projects]] - digest = "1:564e4136357b9d481ad8eb9d87f7fc144a28bb41cb0e29e739db3535e2d87575" - name = "github.com/shirou/gopsutil" - packages = [ - "cpu", - "internal/common", - ] - pruneopts = "UT" - revision = "0f70a4a06f7a1039305ec9b3ba9c2800f8929fba" - version = "v2.18.11" - -[[projects]] - digest = "1:69b1cc331fca23d702bd72f860c6a647afd0aa9fcbc1d0659b1365e26546dd70" - name = "github.com/sirupsen/logrus" - packages = ["."] - pruneopts = "UT" - revision = "bcd833dfe83d3cebad139e4a29ed79cb2318bf95" - version = "v1.2.0" - -[[projects]] - digest = "1:6a4a11ba764a56d2758899ec6f3848d24698d48442ebce85ee7a3f63284526cd" - name = "github.com/spf13/afero" - packages = [ - ".", - "mem", - ] - pruneopts = "UT" - revision = "d40851caa0d747393da1ffb28f7f9d8b4eeffebd" - version = "v1.1.2" - -[[projects]] - digest = "1:08d65904057412fc0270fc4812a1c90c594186819243160dc779a402d4b6d0bc" - name = "github.com/spf13/cast" - packages = ["."] - pruneopts = "UT" - revision = "8c9545af88b134710ab1cd196795e7f2388358d7" - version = "v1.3.0" - -[[projects]] - digest = "1:68ea4e23713989dc20b1bded5d9da2c5f9be14ff9885beef481848edd18c26cb" - name = "github.com/spf13/jwalterweatherman" - packages = ["."] - pruneopts = "UT" - revision = "4a4406e478ca629068e7768fc33f3f044173c0a6" - version = "v1.0.0" - -[[projects]] - digest = "1:c1b1102241e7f645bc8e0c22ae352e8f0dc6484b6cb4d132fa9f24174e0119e2" - name = "github.com/spf13/pflag" - packages = ["."] - pruneopts = "UT" - revision = "298182f68c66c05229eb03ac171abe6e309ee79a" - version = "v1.0.3" - -[[projects]] - digest = "1:214775c11fd26da94a100111a62daa25339198a4f9c57cb4aab352da889f5b93" - name = "github.com/spf13/viper" - packages = ["."] - pruneopts = "UT" - revision = "2c12c60302a5a0e62ee102ca9bc996277c2f64f5" - version = "v1.2.1" - -[[projects]] - branch = "master" - digest = "1:d32b64a7a82dd36b674fb73ff767e949eb7155b6b574ff276f49d4edc8af105f" - name = "github.com/thecodeteam/goodbye" - packages = ["."] - pruneopts = "UT" - revision = "a83968bda2d37294a3541b7d2207fb6f5a3559a3" - -[[projects]] - digest = "1:c468422f334a6b46a19448ad59aaffdfc0a36b08fdcc1c749a0b29b6453d7e59" - name = "github.com/valyala/bytebufferpool" - packages = ["."] - pruneopts = "UT" - revision = "e746df99fe4a3986f4d4f79e13c1e0117ce9c2f7" - version = "v1.0.0" - -[[projects]] - branch = "master" - digest = "1:c911cc6a838b0d6be5de154aaea7b36530d5c97e019c3bb56b67fa8531aa17df" - name = "github.com/valyala/fasthttp" - packages = [ - ".", - "fasthttputil", - "stackless", - ] - pruneopts = "UT" - revision = "1d2d99cba311e04b8d58f5d113ee07086c3e64f6" - -[[projects]] - branch = "master" - digest = "1:c83590426ecf1362e77a9054afed570b201de1a353398a6157ecce06583ea024" - name = "github.com/vmihailenco/sasl" - packages = ["."] - pruneopts = "UT" - revision = "2f13c189728a02f8cc31b3b9cc06047b383c21cc" - -[[projects]] - digest = "1:39a425f98fb19427061a693fe6bf0683c9bddec4b25b17067e34fdb465e39cb9" - name = "github.com/x-cray/logrus-prefixed-formatter" - packages = ["."] - pruneopts = "UT" - revision = "bb2702d423886830dee131692131d35648c382e2" - version = "v0.5.2" - -[[projects]] - branch = "master" - digest = "1:9ff2b9f8d4e47013a213b9ea0d850ed787c51f5eab2038842d82397ad85a19c1" - name = "golang.org/x/crypto" - packages = [ - "pbkdf2", - "ssh/terminal", - ] - pruneopts = "UT" - revision = "505ab145d0a99da450461ae2c1a9f6cd10d1f447" - -[[projects]] - branch = "master" - digest = "1:7a2e3d6819e7a97a877f8604e737901c6941e76d56ae98a51a1ca2f13de351fb" - name = "golang.org/x/net" - packages = [ - "context", - "http/httpguts", - "http2", - "http2/hpack", - "idna", - "internal/timeseries", - "trace", - ] - pruneopts = "UT" - revision = "351d144fa1fc0bd934e2408202be0c29f25e35a0" - -[[projects]] - branch = "master" - digest = "1:b9dceb1408ba5105803d5859193bc7d89ac3199b611cf8681dbaa0aa09c10d9c" - name = "golang.org/x/sys" - packages = [ - "unix", - "windows", - ] - pruneopts = "UT" - revision = "a5c9d58dba9a56f97aaa86f55e638b718c5a6c42" - -[[projects]] - digest = "1:a2ab62866c75542dd18d2b069fec854577a20211d7c0ea6ae746072a1dccdd18" - name = "golang.org/x/text" - packages = [ - "collate", - "collate/build", - "internal/colltab", - "internal/gen", - "internal/tag", - "internal/triegen", - "internal/ucd", - "language", - "secure/bidirule", - "transform", - "unicode/bidi", - "unicode/cldr", - "unicode/norm", - "unicode/rangetable", - ] - pruneopts = "UT" - revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" - version = "v0.3.0" - -[[projects]] - branch = "master" - digest = "1:6aec038013fe4a5de91d89b51283cd0ddc0b8ed60ac58e0a173a9d8cf39438c5" - name = "google.golang.org/genproto" - packages = [ - "googleapis/api/annotations", - "googleapis/rpc/errdetails", - "googleapis/rpc/status", - ] - pruneopts = "UT" - revision = "bd91e49a0898e27abb88c339b432fa53d7497ac0" - -[[projects]] - digest = "1:9edd250a3c46675d0679d87540b30c9ed253b19bd1fd1af08f4f5fb3c79fc487" - name = "google.golang.org/grpc" - packages = [ - ".", - "balancer", - "balancer/base", - "balancer/roundrobin", - "binarylog/grpc_binarylog_v1", - "codes", - "connectivity", - "credentials", - "credentials/internal", - "encoding", - "encoding/proto", - "grpclog", - "internal", - "internal/backoff", - "internal/binarylog", - "internal/channelz", - "internal/envconfig", - "internal/grpcrand", - "internal/grpcsync", - "internal/syscall", - "internal/transport", - "keepalive", - "metadata", - "naming", - "peer", - "resolver", - "resolver/dns", - "resolver/passthrough", - "stats", - "status", - "tap", - ] - pruneopts = "UT" - revision = "df014850f6dee74ba2fc94874043a9f3f75fbfd8" - version = "v1.17.0" - -[[projects]] - digest = "1:c805e517269b0ba4c21ded5836019ed7d16953d4026cb7d00041d039c7906be9" - name = "gopkg.in/natefinch/lumberjack.v2" - packages = ["."] - pruneopts = "UT" - revision = "a96e63847dc3c67d17befa69c303767e2f84e54f" - version = "v2.1" - -[[projects]] - digest = "1:4d2e5a73dc1500038e504a8d78b986630e3626dc027bc030ba5c75da257cdb96" - name = "gopkg.in/yaml.v2" - packages = ["."] - pruneopts = "UT" - revision = "51d6538a90f86fe93ac480b35f37b2be17fef232" - version = "v2.2.2" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = [ - "github.com/asaskevich/govalidator", - "github.com/cenkalti/backoff", - "github.com/go-pg/pg", - "github.com/go-pg/pg/orm", - "github.com/golang/protobuf/proto", - "github.com/golang/protobuf/ptypes/struct", - "github.com/googollee/go-socket.io", - "github.com/grpc-ecosystem/grpc-gateway/runtime", - "github.com/grpc-ecosystem/grpc-gateway/utilities", - "github.com/integration-system/isp-lib/backend", - "github.com/integration-system/isp-lib/bootstrap", - "github.com/integration-system/isp-lib/config", - "github.com/integration-system/isp-lib/config/schema", - "github.com/integration-system/isp-lib/controller", - "github.com/integration-system/isp-lib/database", - "github.com/integration-system/isp-lib/logger", - "github.com/integration-system/isp-lib/metric", - "github.com/integration-system/isp-lib/socket", - "github.com/integration-system/isp-lib/structure", - "github.com/integration-system/isp-lib/utils", - "github.com/valyala/fasthttp", - "golang.org/x/net/context", - "google.golang.org/genproto/googleapis/api/annotations", - "google.golang.org/grpc", - "google.golang.org/grpc/codes", - "google.golang.org/grpc/grpclog", - "google.golang.org/grpc/status", - ] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index 4a22f0a..0000000 --- a/Gopkg.toml +++ /dev/null @@ -1,33 +0,0 @@ -# Gopkg.toml example -# -# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md -# for detailed Gopkg.toml documentation. -# -# required = ["github.com/user/thing/cmd/thing"] -# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] -# -# [[constraint]] -# name = "github.com/user/project" -# version = "1.0.0" -# -# [[constraint]] -# name = "github.com/user/project2" -# branch = "dev" -# source = "github.com/myfork/project2" -# -# [[override]] -# name = "github.com/x/y" -# version = "2.4.0" -# -# [prune] -# non-go = false -# go-tests = true -# unused-packages = true - -[prune] - go-tests = true - unused-packages = true - -[[constraint]] - name = "github.com/grpc-ecosystem/grpc-gateway" - revision = "e8bd377da7395186f2f042ee6b366fa5a11d2b39" diff --git a/config_service_integration_test1.go b/config_service_integration_test1.go deleted file mode 100644 index 3a6f460..0000000 --- a/config_service_integration_test1.go +++ /dev/null @@ -1,533 +0,0 @@ -package main - -import ( - "bytes" - "context" - "encoding/json" - "errors" - "fmt" - "io" - "io/ioutil" - "log" - "net" - "os" - "path/filepath" - "strconv" - "strings" - "testing" - "time" - - "github.com/integration-system/isp-lib-test/ctx" - "github.com/integration-system/isp-lib-test/docker" - "github.com/integration-system/isp-lib-test/utils" - "github.com/integration-system/isp-lib-test/utils/postgres" - "github.com/integration-system/isp-lib/v2/backend" - "github.com/integration-system/isp-lib/v2/bootstrap" - "github.com/integration-system/isp-lib/v2/structure" - "github.com/stretchr/testify/assert" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - "isp-config-service/conf" - "isp-config-service/domain" - "isp-config-service/entity" - "isp-config-service/store/state" -) - -const ( - configServiceHttpPort = "9001" - configServiceGrpcPort = "9002" - configServiceSchema = "config_service" - - configsNumber = 3 - maxAwaitingTime = 25 * time.Second - attemptTimeout = 300 * time.Millisecond - - deleteCommonConfigsCommand = "config/common_config/delete_config" - getRoutesCommand = "config/routing/get_routes" - getModulesInfoCommand = "config/module/get_modules_info" - createUpdateConfigCommand = "config/config/create_update_config" - getAllConfigVersionsCommand = "config/config/get_all_version" -) - -var ( - pgCfg structure.DBConfiguration - - configsHttpAddrs = make([]structure.AddressConfiguration, configsNumber) - configsGrpcAddrs = make([]structure.AddressConfiguration, configsNumber) - configsCtxs = make([]*docker.ContainerContext, configsNumber) -) - -const mockModuleName = "mockModule" - -type ( - mockRemoteConfig struct { - Value1 string `json:"value1"` - Value2 int `json:"value2"` - Value3 Value3 `json:"value3"` - } - Value3 struct { - Value31 string `json:"value31"` - } -) - -func testMain(m *testing.M) { - cfg := ctx.BaseTestConfiguration{} - test, err := ctx.NewIntegrationTest(m, &cfg, setup) - if err != nil { - panic(err) - } - test.PrepareAndRun() -} - -func setup(testCtx *ctx.TestContext, runTest func() int) int { - cfg := testCtx.BaseConfiguration() - - cli, err := docker.NewClient() - if err != nil { - panic(err) - } - defer cli.Close() - env := docker.NewTestEnvironment(testCtx, cli) - defer env.Cleanup() - - _, pgCfg = env.RunPGContainer() - _, err = postgres.Wait(pgCfg, 10*time.Second) - if err != nil { - panic(err) - } - pgCfg.Schema = configServiceSchema - - configs := make([]conf.Configuration, configsNumber) - peersAddrs := make([]string, configsNumber) - - for i := 0; i < configsNumber; i++ { - httpAddr := getConfigServiceAddress(i, configServiceHttpPort) - grpcAddr := getConfigServiceAddress(i, configServiceGrpcPort) - cfg := conf.Configuration{ - Database: pgCfg, - ModuleName: moduleName, - GrpcOuterAddress: grpcAddr, - WS: conf.WebService{ - Rest: httpAddr, - Grpc: grpcAddr, - }, - Cluster: conf.ClusterConfiguration{ - InMemory: false, - DataDir: "./data", - Peers: nil, - OuterAddress: httpAddr.GetAddress(), - ConnectTimeoutSeconds: 10, - BootstrapCluster: false, - }, - } - configsGrpcAddrs[i] = grpcAddr - configsHttpAddrs[i] = httpAddr - configs[i] = cfg - peersAddrs[i] = httpAddr.GetAddress() - } - - configs[0].Cluster.BootstrapCluster = true - - for i := 0; i < configsNumber; i++ { - c := configs[i] - peersAddrsEnv := generatePeersConfigEnv(peersAddrs) - peersAddrsEnv["LOG_LEVEL"] = "debug" - ctx := env.RunAppContainer( - cfg.Images.Module, c, nil, - docker.WithName(c.GrpcOuterAddress.IP), - docker.WithLogger(NewWriteLogger(strconv.Itoa(i)+"_config:", ioutil.Discard, "DeleteCommonConfigsCommand")), - // docker.WithLogger(NewWriteLogger(strconv.Itoa(i)+"_config:", ioutil.Discard, "Apply 10 command")), - // docker.PullImage(cfg.Registry.Username, cfg.Registry.Password), - docker.WithEnv(peersAddrsEnv), - ) - grpcAddr := configsGrpcAddrs[i] - grpcAddr.IP = ctx.GetIPAddress() - configsGrpcAddrs[i] = grpcAddr - - httpAddr := configsHttpAddrs[i] - httpAddr.IP = ctx.GetIPAddress() - configsHttpAddrs[i] = httpAddr - - configsCtxs[i] = ctx - } - //nolint - // time.Sleep(3 * time.Second) - return runTest() -} - -func TestClusterElection(t *testing.T) { - a := assert.New(t) - ready := testClusterReady(a, -1) - if !ready { - return - } - - for i := 0; i < configsNumber; i++ { - fmt.Print("\n\n\n") - log.Printf("stopping %d container\n", i) - a.NoError(configsCtxs[i].StopContainer(20 * time.Second)) - - time.Sleep(5 * time.Second) - fmt.Print("\n\n\n") - log.Printf("checking cluster except %d\n", i) - ready = testClusterReady(a, i) - if !ready { - return - } - - fmt.Print("\n\n\n") - log.Printf("starting %d container\n", i) - a.NoError(configsCtxs[i].StartContainer()) - - time.Sleep(4 * time.Second) - log.Printf("checking cluster, iteration %d\n", i+1) - ready = testClusterReady(a, -1) - if !ready { - return - } - } -} - -//nolint:funlen -func TestUpdateConfig(t *testing.T) { - a := assert.New(t) - ready := testClusterReady(a, -1) - if !ready { - return - } - - httpAddr := configsHttpAddrs[configsNumber-1] - grpcAddr := configsGrpcAddrs[configsNumber-1] - - remoteConfig := mockRemoteConfig{ - Value1: "sad", - Value2: 6, - Value3: Value3{ - Value31: "32", - }, - } - tempDir := t.TempDir() - remoteCfgPath := filepath.Join(tempDir, "remote_config.json") - remoteCfgJson, err := json.Marshal(remoteConfig) - a.NoError(err) - a.NoError(os.WriteFile(remoteCfgPath, remoteCfgJson, 0666)) - go newMockModule(a, httpAddr, remoteCfgPath) - time.Sleep(5 * time.Second) // TODO - - client := newGrpcClient(a, grpcAddr) - if client == nil { - a.FailNow("unable to connect to config") - } - - getModuleConfig := func() entity.Config { - modulesInfo := getModulesInfo(a, client) - a.Len(modulesInfo, 2) - mockModule := modulesInfo[1] - a.Equal(mockModuleName, mockModule.Name) - if !a.Len(mockModule.Configs, 1) { - t.FailNow() - } - return mockModule.Configs[0].Config - } - initialConfig := getModuleConfig() - - initialConfigVersions := getAllConfigVersions(a, client, initialConfig.Id) - a.Len(initialConfigVersions, 0) - a.EqualValues(1, initialConfig.Version) - a.EqualValues(remoteConfig.Value2, initialConfig.Data["value2"]) - - remCfg := map[string]interface{}{ - "value1": "test1", - "value2": 0, - "value3": map[string]interface{}{ - "value31": "something", - }, - } - configForUpdate := entity.Config{ - Id: initialConfig.Id, - Name: initialConfig.Name, - ModuleId: initialConfig.ModuleId, - Description: initialConfig.Description, - Data: remCfg, - } - const updatesCount = state.DefaultVersionCount + 1 - for i := 0; i < updatesCount; i++ { - remCfg["value2"] = i - updatedConfig := updateConfig(a, client, configForUpdate) - a.EqualValues(i, updatedConfig.Data["value2"]) - } - // wait until raft is synchronized to non-leader nodes - time.Sleep(3 * time.Second) // TODO remove? - - const lastVersion = updatesCount + 1 - const lastDataValue = updatesCount - 1 - finalConfig := getModuleConfig() - a.EqualValues(lastVersion, finalConfig.Version) - a.EqualValues(lastDataValue, finalConfig.Data["value2"]) - - configVersions := getAllConfigVersions(a, client, initialConfig.Id) - a.Len(configVersions, state.DefaultVersionCount) - for i, cfgVer := range configVersions { - // -1 because last config is not listed in versions - version := lastVersion - i - 1 - dataValue := lastDataValue - i - 1 - a.EqualValues(dataValue, cfgVer.Data["value2"]) - a.EqualValues(version, cfgVer.ConfigVersion) - } -} - -func getConfigServiceAddress(num int, port string) structure.AddressConfiguration { - lastIP := pgCfg.Address - ip := net.ParseIP(lastIP).To4() - ip[3] = byte(int(ip[3]) + num + 1) - return structure.AddressConfiguration{ - //IP: fmt.Sprintf("%s-%d", "isp-config-service", num), - IP: ip.String(), - Port: port, - } -} - -func testClusterReady(a *assert.Assertions, except int) bool { - clients := make([]*backend.RxGrpcClient, 0, configsNumber) - defer func() { - for _, client := range clients { - _ = client.Close() - } - }() - - for j := 0; j < configsNumber; j++ { - if j == except { - continue - } - configAddr := configsGrpcAddrs[j] - client := newGrpcClient(a, configAddr) - if client == nil { - a.Failf("", "unable to connect to %d config", j) - return false - } - clients = append(clients, client) - ready := testRaftReady(a, client) - if !ready { - return ready - } - } - - prevRoutes := getRoutes(a, clients[0]) - routesLen := len(clients) - for i := 1; i < len(clients); i++ { - routes := getRoutes(a, clients[i]) - t := a.Len(routes, routesLen, "invalid length") - if !t { - return t - } - match := a.ElementsMatch(prevRoutes, routes, "different backend declarations") - if !match { - return match - } - } - - return true -} - -func newGrpcClient(a *assert.Assertions, configAddr structure.AddressConfiguration) *backend.RxGrpcClient { - start := time.Now() - client := backend.NewRxGrpcClient(backend.WithDialOptions( - grpc.WithInsecure(), - )) - client.ReceiveAddressList([]structure.AddressConfiguration{configAddr}) - - _, err := await(func() (interface{}, error) { - err := client.Invoke(getRoutesCommand, -1, nil, nil) - code := status.Code(err) - if code != codes.Unknown && code != codes.Unavailable { - return nil, nil - } - //nolint - // log.Println("connect to grpc err:", err) - return nil, err - }, maxAwaitingTime, attemptTimeout) - - if !a.NoError(err) { - return nil - } - log.Println("waiting until grpc ready:", time.Since(start).Round(time.Second)) - return client -} - -func testRaftReady(a *assert.Assertions, client *backend.RxGrpcClient) bool { - req := new(domain.ConfigIdRequest) - req.Id = "33" - response := new(structure.GrpcError) - start := time.Now() - f := func() (interface{}, error) { - err := client.Invoke( - deleteCommonConfigsCommand, - -1, - req, - response, - ) - //nolint - // log.Println("send grpc request. response: ", response, "err: ", err) - return nil, err - } - _, err := await(f, maxAwaitingTime, attemptTimeout) - log.Println("waiting until raft ready:", time.Since(start).Round(time.Second)) - return a.NoError(err) -} - -func getRoutes(a *assert.Assertions, client *backend.RxGrpcClient) []structure.BackendDeclaration { - f := func() (interface{}, error) { - var response []structure.BackendDeclaration - err := client.Invoke( - getRoutesCommand, - -1, - nil, - &response, - ) - if err != nil { - return nil, err - } else if len(response) == 0 { - return nil, errors.New("zero routes") - } - //nolint - // log.Println("routes:", response) - return response, nil - } - - response, err := await(f, time.Second, 50*time.Millisecond) - a.NoError(err) - declarations, _ := response.([]structure.BackendDeclaration) - return declarations -} - -func getModulesInfo(a *assert.Assertions, client *backend.RxGrpcClient) []domain.ModuleInfo { - var response []domain.ModuleInfo - err := client.Invoke( - getModulesInfoCommand, - -1, - nil, - &response, - ) - - a.NoError(err) - return response -} - -func updateConfig(a *assert.Assertions, client *backend.RxGrpcClient, config entity.Config) domain.ConfigModuleInfo { - var response domain.ConfigModuleInfo - err := client.Invoke( - createUpdateConfigCommand, - -1, - domain.CreateUpdateConfigRequest{Config: config}, - &response, - ) - - a.NoError(err) - return response -} - -func getAllConfigVersions(a *assert.Assertions, client *backend.RxGrpcClient, configId string) []entity.VersionConfig { - var response []entity.VersionConfig - err := client.Invoke( - getAllConfigVersionsCommand, - -1, - domain.ConfigIdRequest{Id: configId}, - &response, - ) - - a.NoError(err) - return response -} - -func await(dialer func() (interface{}, error), timeout, attemptTimeout time.Duration) (interface{}, error) { - retryer := utils.NewRetryer(dialer, timeout) - retryer.AttemptTimeout = attemptTimeout - return retryer.Do() -} - -func generatePeersConfigEnv(peers []string) map[string]string { - key := "LC_ISP_CLUSTER.PEERS" - val := strings.Join(peers, ",") - return map[string]string{ - key: val, - } -} - -type writeLogger struct { - prefix string - w io.Writer - filter string -} - -func (l *writeLogger) Write(p []byte) (int, error) { - lines := bytes.SplitAfter(p, []byte("\n")) - for _, line := range lines { - s := string(line) - if l.filter != "" && strings.Contains(s, l.filter) || strings.TrimSpace(s) == "" { - continue - } - _, err := l.w.Write(p) - if err != nil { - fmt.Printf("%s %s: %v", l.prefix, s, err) - } else { - fmt.Printf("%s %s", l.prefix, s) - } - } - return len(p), nil -} - -// NewWriteLogger returns a writer that behaves like w except -// that it logs (using fmt.Printf) each write to standard error, -// printing the prefix and the string data written. -func NewWriteLogger(prefix string, w io.Writer, filter string) io.Writer { - return &writeLogger{prefix, w, filter} -} - -func newMockModule(a *assert.Assertions, configAddr structure.AddressConfiguration, remoteCfgPath string) { - makeDeclaration := func(localConfig interface{}) bootstrap.ModuleInfo { - return bootstrap.ModuleInfo{ - ModuleName: mockModuleName, - ModuleVersion: "dev", - GrpcOuterAddress: structure.AddressConfiguration{ - IP: "128.3.3.3", - Port: "9999", - }, - Endpoints: nil, - } - } - - socketConfiguration := func(cfg interface{}) structure.SocketConfiguration { - return structure.SocketConfiguration{ - Host: configAddr.IP, - Port: configAddr.Port, - Secure: false, - UrlParams: map[string]string{ - "module_name": mockModuleName, - }, - } - } - - cfg := bootstrap. - ServiceBootstrap(&conf.Configuration{}, &mockRemoteConfig{}). - DefaultRemoteConfigPath(remoteCfgPath). - SocketConfiguration(socketConfiguration). - OnSocketErrorReceive(func(errorMessage map[string]interface{}) { - a.Fail("OnSocketErrorReceive", errorMessage) - }). - OnConfigErrorReceive(func(errorMessage string) { - fmt.Printf("OnConfigErrorReceive: %s\n", errorMessage) - }). - DeclareMe(makeDeclaration). - OnShutdown(func(ctx context.Context, sig os.Signal) { - a.Fail("OnShutdown") - }). - OnRemoteConfigReceive(func(remoteConfig, _ *mockRemoteConfig) { - // TODO: compare configs? - fmt.Println("OnRemoteConfigReceive", remoteConfig) - }).OnModuleReady(func() { - fmt.Println("OnModuleReady") - }) - - cfg.Run() -} diff --git a/controller/config.go b/controller/config.go index 29d20ca..bc2c8b2 100644 --- a/controller/config.go +++ b/controller/config.go @@ -223,7 +223,6 @@ func (c *config) GetConfigById(req domain.ConfigIdRequest) (entity.Config, error }) if len(response) > 0 { - response[0].Data = nil return response[0], nil } diff --git a/controllers/config.go b/controllers/config.go deleted file mode 100644 index e20a5e1..0000000 --- a/controllers/config.go +++ /dev/null @@ -1,125 +0,0 @@ -package controllers - -import ( - "fmt" - - st "isp-config-service/entity" - "isp-config-service/model" - "isp-config-service/socket" - - "github.com/integration-system/isp-lib/utils" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - "isp-config-service/domain" -) - -func GetConfigs(identities []int64) ([]st.Config, error) { - configs, err := model.ConfigRep.GetConfigs(identities) - if err != nil { - return nil, createUnknownError(err) - } - return configs, nil -} - -func GetConfigByInstanceUUIDAndModuleName(request st.ModuleInstanceIdentity) (*st.Config, error) { - config, err := model.ConfigRep.GetConfigByInstanceUUIDAndModuleName(request.Uuid, request.Name) - if err != nil { - return nil, createUnknownError(err) - } - if config == nil { - return nil, status.Error(codes.NotFound, utils.ValidationError) - } - - return config, nil -} - -func CreateUpdateConfig(config st.Config) (*st.Config, error) { - var err error - var cfg *st.Config - if config.Id == 0 { - cfg, err = model.ConfigRep.CreateConfig(&config) - if err != nil { - return nil, err - } - } else { - configExists, err := model.ConfigRep.GetConfigById(config.Id) - if err != nil { - return nil, err - } - if configExists == nil { - validationErrors := map[string]string{ - "id": fmt.Sprintf("Entity with id: %d not found", config.Id), - } - return nil, utils.CreateValidationErrorDetails(codes.NotFound, utils.ValidationError, validationErrors) - } - cfg, err = model.ConfigRep.UpdateConfig(&config) - if err != nil { - return nil, err - } - } - - if cfg.Active { - moduleInstanceIdentity, err := model.ConfigRep.GetModuleNameAndInstanceUUIDByConfigId(cfg.Id) - if err != nil { - return nil, createUnknownError(err) - } - socket.SendNewConfig(moduleInstanceIdentity.Uuid, moduleInstanceIdentity.Name, cfg) - } - - return cfg, nil -} - -func UpdateActiveConfigByInstanceUUIDAndModuleName(configReq domain.ConfigInstanceModuleName) (*st.Config, error) { - config, err := model.ConfigRep.GetConfigByInstanceUUIDAndModuleName(configReq.InstanceUuid, configReq.ModuleName) - if err != nil || config == nil { - validationErrors := map[string]string{ - "id": fmt.Sprintf("Active config for module: %s and instance uuid: %s not found", - configReq.ModuleName, configReq.InstanceUuid), - } - return nil, utils.CreateValidationErrorDetails(codes.NotFound, utils.ValidationError, validationErrors) - } - config.Data = configReq.ConfigData - return CreateUpdateConfig(*config) -} - -func MarkConfigAsActive(identity domain.LongIdentitiesRequest) (*st.Config, error) { - configExists, err := model.ConfigRep.GetConfigById(identity.Id) - if err != nil { - return nil, createUnknownError(err) - } - if configExists == nil { - validationErrors := map[string]string{ - "id": fmt.Sprintf("Entity with id: %d not found", identity.Id), - } - return nil, utils.CreateValidationErrorDetails(codes.NotFound, utils.ValidationError, validationErrors) - } - configExists.Active = true - configExists, err = model.ConfigRep.UpdateConfig(configExists) - if err != nil { - return nil, err - } - - if configExists.Active { - moduleInstanceIdentity, err := model.ConfigRep.GetModuleNameAndInstanceUUIDByConfigId(configExists.Id) - if err != nil { - return nil, createUnknownError(err) - } - socket.SendNewConfig(moduleInstanceIdentity.Uuid, moduleInstanceIdentity.Name, configExists) - } - - return configExists, nil -} - -func DeleteConfig(identities []int64) (*domain.DeleteResponse, error) { - if len(identities) == 0 { - validationErrors := map[string]string{ - "ids": "Required", - } - return nil, utils.CreateValidationErrorDetails(codes.InvalidArgument, utils.ValidationError, validationErrors) - } - count, err := model.ConfigRep.DeleteConfig(identities) - if err != nil { - return nil, createUnknownError(err) - } - return &domain.DeleteResponse{Deleted: count}, err -} diff --git a/controllers/instance.go b/controllers/instance.go deleted file mode 100644 index 5f335d4..0000000 --- a/controllers/instance.go +++ /dev/null @@ -1,73 +0,0 @@ -package controllers - -import ( - "fmt" - - st "isp-config-service/entity" - "isp-config-service/model" - - "isp-config-service/domain" - - "github.com/integration-system/isp-lib/logger" - "github.com/integration-system/isp-lib/utils" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func GetInstances(identities []int32) ([]st.Instance, error) { - instances, err := model.InstanceRep.GetInstances(identities) - if err != nil { - return nil, createUnknownError(err) - } - return instances, err -} - -func CreateUpdateInstance(instance st.Instance) (*st.Instance, error) { - if instance.Id == 0 { - moduleExists, err := model.InstanceRep.GetInstanceByUuid(instance.Uuid) - if err != nil { - return nil, createUnknownError(err) - } - if moduleExists.Id != 0 { - validationErrors := map[string]string{ - "name": fmt.Sprintf("Entity with uuid: %s already exists", instance.Name), - } - return nil, utils.CreateValidationErrorDetails(codes.AlreadyExists, utils.ValidationError, validationErrors) - } - instance, err = model.InstanceRep.CreateInstance(instance) - } else { - instanceExists, err := model.InstanceRep.GetInstanceById(instance.Id) - if err != nil { - return nil, createUnknownError(err) - } - if instanceExists.Id == 0 { - validationErrors := map[string]string{ - "id": fmt.Sprintf("Entity with id: %d not found", instance.Id), - } - return nil, utils.CreateValidationErrorDetails(codes.NotFound, utils.ValidationError, validationErrors) - } - instance, err = model.InstanceRep.UpdateInstance(instance) - instance.CreatedAt = instanceExists.CreatedAt - } - - return &instance, nil -} - -func DeleteInstance(identities []int32) (*domain.DeleteResponse, error) { - if len(identities) == 0 { - validationErrors := map[string]string{ - "ids": "Required", - } - return nil, utils.CreateValidationErrorDetails(codes.InvalidArgument, utils.ValidationError, validationErrors) - } - count, err := model.InstanceRep.DeleteInstance(identities) - if err != nil { - return nil, createUnknownError(err) - } - return &domain.DeleteResponse{Deleted: count}, err -} - -func createUnknownError(err error) error { - logger.Error(err) - return status.Error(codes.Unknown, utils.ServiceError) -} diff --git a/controllers/jsonController.go b/controllers/jsonController.go deleted file mode 100644 index 55a2c8d..0000000 --- a/controllers/jsonController.go +++ /dev/null @@ -1,16 +0,0 @@ -package controllers - -/*var HandlerSwagger = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - values, err := url.ParseQuery(r.URL.RawQuery) - if err != nil { - w.WriteHeader(http.StatusBadRequest) - w.Write([]byte("Method not received")) - } - method := values.Get("method") - if method == "" { - w.WriteHeader(http.StatusBadRequest) - w.Write([]byte("Method not received")) - } - proxyRequestHandle(w, r, method) -}) -*/ diff --git a/controllers/module.go b/controllers/module.go deleted file mode 100644 index dfa2c00..0000000 --- a/controllers/module.go +++ /dev/null @@ -1,113 +0,0 @@ -package controllers - -import ( - "encoding/json" - "fmt" - st "isp-config-service/entity" - "isp-config-service/model" - "isp-config-service/module" - "isp-config-service/socket" - - "isp-config-service/domain" - - "github.com/integration-system/isp-lib/structure" - "github.com/integration-system/isp-lib/utils" - "google.golang.org/grpc/codes" -) - -func GetModules(identities []int32) ([]st.Module, error) { - modules, err := model.ModulesRep.GetModules(identities) - if err != nil { - return nil, createUnknownError(err) - } - - return modules, nil -} - -func GetModulesAggregatedInfo(i structure.Isolation) ([]*domain.ModuleInfo, error) { - instanceId, err := i.GetInstanceId() - if err != nil { - return nil, err - } - - return module.GetAggregatedModuleInfo(instanceId) -} - -func GetActiveModules() ([]st.Module, error) { - modules, err := model.ModulesRep.GetActiveModules() - if err != nil { - return nil, createUnknownError(err) - } - - return modules, nil -} - -func GetConnectedModules() (map[string]interface{}, error) { - modules := socket.GetRoomsCount() - bytes, err := json.Marshal(modules) - if err != nil { - return nil, createUnknownError(err) - } - var response map[string]interface{} - err = json.Unmarshal(bytes, &response) - if err != nil { - return nil, createUnknownError(err) - } - return response, nil -} - -func CreateUpdateModule(module st.Module) (*st.Module, error) { - if module.Id == 0 { - instanceExists, err := model.InstanceRep.GetInstanceById(module.InstanceId) - if err != nil { - return nil, createUnknownError(err) - } - if instanceExists.Id == 0 { - validationErrors := map[string]string{ - "instanceId": fmt.Sprintf("Entity with instanceId: %d not found", module.InstanceId), - } - return nil, utils.CreateValidationErrorDetails(codes.NotFound, utils.ValidationError, validationErrors) - } - moduleExists, err := model.ModulesRep.GetModuleByInstanceIdAndName(module.InstanceId, module.Name) - if err != nil { - return nil, createUnknownError(err) - } - if moduleExists.Id != 0 { - validationErrors := map[string]string{ - "name": fmt.Sprintf("Entity with name: %s already exists", module.Name), - } - return nil, utils.CreateValidationErrorDetails(codes.AlreadyExists, utils.ValidationError, validationErrors) - } - module, err = model.ModulesRep.CreateModule(module) - } else { - moduleExists, err := model.ModulesRep.GetModuleById(module.Id) - if err != nil { - return nil, createUnknownError(err) - } - if moduleExists.Id == 0 { - validationErrors := map[string]string{ - "id": fmt.Sprintf("Entity with id: %d not found", module.Id), - } - return nil, utils.CreateValidationErrorDetails(codes.NotFound, utils.ValidationError, validationErrors) - } - module, err = model.ModulesRep.UpdateModule(module) - module.CreatedAt = moduleExists.CreatedAt - module.Active = moduleExists.Active - } - - return &module, nil -} - -func DeleteModule(identities []int32) (*domain.DeleteResponse, error) { - if len(identities) == 0 { - validationErrors := map[string]string{ - "ids": "Required", - } - return nil, utils.CreateValidationErrorDetails(codes.InvalidArgument, utils.ValidationError, validationErrors) - } - count, err := model.ModulesRep.DeleteModule(identities) - if err != nil { - return nil, createUnknownError(err) - } - return &domain.DeleteResponse{Deleted: count}, err -} diff --git a/controllers/route.go b/controllers/route.go deleted file mode 100644 index 14b5421..0000000 --- a/controllers/route.go +++ /dev/null @@ -1,20 +0,0 @@ -package controllers - -import ( - "encoding/json" - - "isp-config-service/socket" -) - -func GetRoutes() (map[string]interface{}, error) { - bytes, err := json.Marshal(socket.GetRoutes().Routes) - if err != nil { - return nil, createUnknownError(err) - } - var response map[string]interface{} - err = json.Unmarshal(bytes, &response) - if err != nil { - return nil, createUnknownError(err) - } - return response, nil -} diff --git a/docs/docs.go b/docs/docs.go deleted file mode 100644 index 71a33fb..0000000 --- a/docs/docs.go +++ /dev/null @@ -1,1697 +0,0 @@ -// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT -// This file was generated by swaggo/swag at -// 2020-09-28 13:28:03.40325566 +0300 MSK m=+35.454929207 - -package docs - -import ( - "github.com/integration-system/isp-lib/v2/docs" -) - -var doc = `{ - "schemes": {{ marshal .Schemes }}, - "swagger": "2.0", - "info": { - "description": "{{.Description}}", - "title": "{{.Title}}", - "contact": {}, - "license": { - "name": "GNU GPL v3.0" - }, - "version": "{{.Version}}" - }, - "host": "{{.Host}}", - "basePath": "{{.BasePath}}", - "paths": { - "/common_config/compile": { - "post": { - "description": "Возвращает скомпилированный объект конфигурации", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Общие конфигурации" - ], - "summary": "Метод компиляции итоговой конфигурации для модулей", - "parameters": [ - { - "description": "перечисление идентификаторов общей конфигурации и исхдных конфиг", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.CompileConfigsRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.CompiledConfigResponse" - } - } - } - } - }, - "/common_config/create_update_config": { - "post": { - "description": "Если конфиг с таким id существует, то обновляет данные, если нет, то добавляет данные в базу\nВ случае обновления рассылает всем подключенным модулям актуальную конфигурацию", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Общие конфигурации" - ], - "summary": "Метод обновления общей конфигурации", - "parameters": [ - { - "description": "объект для сохранения", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/entity.CommonConfig" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/entity.CommonConfig" - } - }, - "404": { - "description": "если конфигурация не найдена", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/common_config/delete_config": { - "post": { - "description": "Возвращает флаг удаления и набор связей с модулями и конфигурациями, в случае наличия связей deleted всегда false", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Общие конфигурации" - ], - "summary": "Метод удаления объектов общей конфигурации по идентификаторам", - "parameters": [ - { - "description": "id общей конфигурации", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.ConfigIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.DeleteCommonConfigResponse" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/common_config/get_configs": { - "post": { - "description": "Возвращает массив конфигураций по запрошенным идентификаторам (все, если массив пустой)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Общие конфигурации" - ], - "summary": "Метод получения объектов конфигурации по идентификаторам", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/entity.CommonConfig" - } - } - } - } - } - }, - "/common_config/get_links": { - "post": { - "description": "Возвращает ассоциативный массив, ключами которого являются название модулей, а значения - название конфигурации модуля", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Общие конфигурации" - ], - "summary": "Метод получения связей общей конфигурациями с конфигурацией модулей", - "parameters": [ - { - "description": "id общей конфигурации", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.ConfigIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.CommonConfigLinks" - } - } - } - } - }, - "/config/create_update_config": { - "post": { - "description": "Если конфиг с таким id существует, то обновляет данные, если нет, то добавляет данные в базу\nВ случае обновления рассылает всем подключенным модулям актуальную конфигурацию", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод обновления конфигурации", - "parameters": [ - { - "description": "объект для сохранения", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.CreateUpdateConfigRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.ConfigModuleInfo" - } - }, - "404": { - "description": "если конфигурация не найдена", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/delete_config": { - "post": { - "description": "Возвращает количество удаленных модулей", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод удаления объектов конфигурации по идентификаторам", - "parameters": [ - { - "description": "массив идентификаторов конфигураций", - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.DeleteResponse" - } - }, - "400": { - "description": "если не указан массив идентификаторов", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/delete_version": { - "post": { - "description": "Возвращает количество удаленных версий", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод удаления версии конфигурации", - "parameters": [ - { - "description": "id версии конфигурации", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.ConfigIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.DeleteResponse" - } - }, - "400": { - "description": "если не указан массив идентификаторов", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/get_active_config_by_module_name": { - "post": { - "description": "Возвращает активную конфиграцию по названию модуля", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод получения объекта конфигурации по названию модуля", - "parameters": [ - { - "description": "название модуля", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.GetByModuleNameRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/entity.Config" - } - }, - "404": { - "description": "если конфигурация не найдена", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/get_all_version": { - "post": { - "description": "Возвращает предыдущие версии конфигураций", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод получение старых версий конфигурации", - "parameters": [ - { - "description": "id конфигурации", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.ConfigIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/entity.VersionConfig" - } - } - }, - "400": { - "description": "если не указан массив идентификаторов", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/get_config_by_id": { - "post": { - "description": "Возвращает актуальную версию конфигурации без дополнительного содержимого (ConfigData)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод получение актуальной конфигурации конфигурации", - "parameters": [ - { - "description": "id конфигурации", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.ConfigIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/entity.Config" - } - }, - "400": { - "description": "если не указан идентификатор конфигурации", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/get_configs_by_module_id": { - "post": { - "description": "Возвращает список конфиграции по ID модуля", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод получения списка конфигураций по ID модуля", - "parameters": [ - { - "description": "ID модуля", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.GetByModuleIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/domain.ConfigModuleInfo" - } - } - }, - "400": { - "description": "если идентификатор не указан", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "404": { - "description": "если конфигурация не найдена", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/config/mark_config_as_active": { - "post": { - "description": "Активирует указанную конфигурацию и деактивирует остальные, возвращает активированную конфигурацию", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Конфигурация" - ], - "summary": "Метод активации конфигурации для модуля", - "parameters": [ - { - "description": "id конфигурации для изменения", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.ConfigIdRequest" - } - } - ], - "responses": { - "200": { - "description": "активированная конфигурация", - "schema": { - "$ref": "#/definitions/entity.Config" - } - }, - "404": { - "description": "если конфигурация не найдена", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/module/broadcast_event": { - "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Модули" - ], - "summary": "Метод отправки события всем подключенным модулям", - "parameters": [ - { - "description": "событие", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.BroadcastEventRequest" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/module/delete_module": { - "post": { - "description": "Возвращает количество удаленных модулей", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Модули" - ], - "summary": "Метод удаления объектов модулей по идентификаторам", - "parameters": [ - { - "description": "массив идентификаторов модулей", - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/domain.DeleteResponse" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/module/get_by_name": { - "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Модули" - ], - "summary": "Метод получения модуля по имени", - "parameters": [ - { - "description": "название модуля", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.GetByModuleNameRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/entity.Module" - } - }, - "404": { - "description": "модуль с указанным названием не найден", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/module/get_modules_info": { - "post": { - "description": "Возвращает полное состояние всех модулей в кластере (конфигурация, схема конфигурации, подключенные экземпляры)", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Модули" - ], - "summary": "Метод получения полной информации о состоянии модуля", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/domain.ModuleInfo" - } - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - }, - "/routing/get_routes": { - "post": { - "description": "Возвращает все доступные модули", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Роуты" - ], - "summary": "Метод получения маршрутов", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/structure.BackendDeclaration" - } - } - } - } - } - }, - "/schema/get_by_module_id": { - "post": { - "description": "Возвращает текущую json схему конфигурации модуля", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Схема" - ], - "summary": "Метод получения схемы конфигурации модуля", - "parameters": [ - { - "description": "идентификатор модуля", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/domain.GetByModuleIdRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/entity.ConfigSchema" - } - }, - "404": { - "description": "если схема для модуля не найдена", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/structure.GrpcError" - } - } - } - } - } - }, - "definitions": { - "domain.BroadcastEventRequest": { - "type": "object", - "required": [ - "event", - "moduleNames" - ], - "properties": { - "event": { - "type": "string" - }, - "moduleNames": { - "type": "array", - "items": { - "type": "string" - } - }, - "payload": { - "type": "object", - "$ref": "#/definitions/json.RawMessage" - } - } - }, - "domain.CommonConfigLinks": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "domain.CompileConfigsRequest": { - "type": "object", - "properties": { - "commonConfigsIdList": { - "type": "array", - "items": { - "type": "string" - } - }, - "data": { - "type": "object", - "additionalProperties": true - } - } - }, - "domain.CompiledConfigResponse": { - "type": "object", - "additionalProperties": true - }, - "domain.ConfigIdRequest": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - }, - "domain.ConfigModuleInfo": { - "type": "object", - "required": [ - "moduleId", - "name" - ], - "properties": { - "active": { - "type": "boolean" - }, - "commonConfigs": { - "type": "array", - "items": { - "type": "string" - } - }, - "createdAt": { - "type": "string" - }, - "data": { - "type": "object", - "$ref": "#/definitions/entity.ConfigData" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "moduleId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "updatedAt": { - "type": "string" - }, - "valid": { - "type": "boolean" - }, - "version": { - "type": "integer" - } - } - }, - "domain.Connection": { - "type": "object", - "properties": { - "address": { - "type": "object", - "$ref": "#/definitions/structure.AddressConfiguration" - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/structure.EndpointDescriptor" - } - }, - "establishedAt": { - "type": "string" - }, - "libVersion": { - "type": "string" - }, - "version": { - "type": "string" - } - } - }, - "domain.CreateUpdateConfigRequest": { - "type": "object", - "required": [ - "moduleId", - "name" - ], - "properties": { - "active": { - "type": "boolean" - }, - "commonConfigs": { - "type": "array", - "items": { - "type": "string" - } - }, - "createdAt": { - "type": "string" - }, - "data": { - "type": "object", - "$ref": "#/definitions/entity.ConfigData" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "moduleId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "unsafe": { - "type": "boolean" - }, - "updatedAt": { - "type": "string" - }, - "version": { - "type": "integer" - } - } - }, - "domain.DeleteCommonConfigResponse": { - "type": "object", - "properties": { - "deleted": { - "type": "boolean" - }, - "links": { - "type": "object", - "$ref": "#/definitions/domain.CommonConfigLinks" - } - } - }, - "domain.DeleteResponse": { - "type": "object", - "properties": { - "deleted": { - "type": "integer" - } - } - }, - "domain.GetByModuleIdRequest": { - "type": "object", - "required": [ - "moduleId" - ], - "properties": { - "moduleId": { - "type": "string" - } - } - }, - "domain.GetByModuleNameRequest": { - "type": "object", - "required": [ - "moduleName" - ], - "properties": { - "moduleName": { - "type": "string" - } - } - }, - "domain.ModuleDependency": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "required": { - "type": "boolean" - } - } - }, - "domain.ModuleInfo": { - "type": "object", - "properties": { - "active": { - "type": "boolean" - }, - "configSchema": { - "type": "object", - "$ref": "#/definitions/schema.Schema" - }, - "configs": { - "type": "array", - "items": { - "$ref": "#/definitions/domain.ConfigModuleInfo" - } - }, - "createdAt": { - "type": "string" - }, - "id": { - "type": "string" - }, - "lastConnectedAt": { - "type": "string" - }, - "lastDisconnectedAt": { - "type": "string" - }, - "name": { - "type": "string" - }, - "requiredModules": { - "type": "array", - "items": { - "$ref": "#/definitions/domain.ModuleDependency" - } - }, - "status": { - "type": "array", - "items": { - "$ref": "#/definitions/domain.Connection" - } - } - } - }, - "entity.CommonConfig": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "createdAt": { - "type": "string" - }, - "data": { - "type": "object", - "$ref": "#/definitions/entity.ConfigData" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "updatedAt": { - "type": "string" - } - } - }, - "entity.Config": { - "type": "object", - "required": [ - "moduleId", - "name" - ], - "properties": { - "active": { - "type": "boolean" - }, - "commonConfigs": { - "type": "array", - "items": { - "type": "string" - } - }, - "createdAt": { - "type": "string" - }, - "data": { - "type": "object", - "$ref": "#/definitions/entity.ConfigData" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "moduleId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "updatedAt": { - "type": "string" - }, - "version": { - "type": "integer" - } - } - }, - "entity.ConfigData": { - "type": "object", - "additionalProperties": true - }, - "entity.ConfigSchema": { - "type": "object", - "properties": { - "createdAt": { - "type": "string" - }, - "id": { - "type": "string" - }, - "moduleId": { - "type": "string" - }, - "schema": { - "type": "object", - "$ref": "#/definitions/schema.Schema" - }, - "updatedAt": { - "type": "string" - }, - "version": { - "type": "string" - } - } - }, - "entity.Module": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "createdAt": { - "type": "string" - }, - "id": { - "type": "string" - }, - "lastConnectedAt": { - "type": "string" - }, - "lastDisconnectedAt": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "entity.VersionConfig": { - "type": "object", - "properties": { - "configId": { - "type": "string" - }, - "configVersion": { - "type": "integer" - }, - "createdAt": { - "type": "string" - }, - "data": { - "type": "object", - "$ref": "#/definitions/entity.ConfigData" - }, - "id": { - "type": "string" - } - } - }, - "json.RawMessage": { - "$ref": "#/definitions/json.RawMessage" - }, - "jsonschema.Definitions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "jsonschema.Schema": { - "type": "object", - "properties": { - "$ref": { - "description": "section 7", - "type": "string" - }, - "$schema": { - "description": "RFC draft-wright-json-schema-00", - "type": "string" - }, - "additionalItems": { - "description": "section 5.9", - "type": "integer" - }, - "additionalProperties": { - "description": "section 5.18", - "type": "object", - "$ref": "#/definitions/json.RawMessage" - }, - "allOf": { - "description": "section 5.22", - "type": "array", - "items": { - "type": "integer" - } - }, - "anyOf": { - "description": "section 5.23", - "type": "array", - "items": { - "type": "integer" - } - }, - "binaryEncoding": { - "description": "section 4.3", - "type": "string" - }, - "default": { - "description": "section 6.2", - "type": "object" - }, - "definitions": { - "type": "object", - "$ref": "#/definitions/jsonschema.Definitions" - }, - "dependencies": { - "description": "section 5.19", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "description": { - "description": "section 6.1", - "type": "string" - }, - "enum": { - "description": "section 5.20", - "type": "array", - "items": { - "type": "object" - } - }, - "exclusiveMaximum": { - "description": "section 5.3", - "type": "boolean" - }, - "exclusiveMinimum": { - "description": "section 5.5", - "type": "boolean" - }, - "format": { - "description": "section 7", - "type": "string" - }, - "items": { - "description": "section 5.9", - "type": "integer" - }, - "maxItems": { - "description": "section 5.10", - "type": "integer" - }, - "maxLength": { - "description": "section 5.6", - "type": "integer" - }, - "maxProperties": { - "description": "section 5.13", - "type": "integer" - }, - "maximum": { - "description": "section 5.2", - "type": "integer" - }, - "media": { - "description": "RFC draft-wright-json-schema-hyperschema-00, section 4", - "type": "integer" - }, - "minItems": { - "description": "section 5.11", - "type": "integer" - }, - "minLength": { - "description": "section 5.7", - "type": "integer" - }, - "minProperties": { - "description": "section 5.14", - "type": "integer" - }, - "minimum": { - "description": "section 5.4", - "type": "integer" - }, - "multipleOf": { - "description": "RFC draft-wright-json-schema-validation-00, section 5", - "type": "integer" - }, - "not": { - "description": "section 5.25", - "type": "integer" - }, - "oneOf": { - "description": "section 5.24", - "type": "array", - "items": { - "type": "integer" - } - }, - "pattern": { - "description": "section 5.8", - "type": "string" - }, - "patternProperties": { - "description": "section 5.17", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "properties": { - "description": "section 5.16", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "required": { - "description": "section 5.15", - "type": "array", - "items": { - "type": "string" - } - }, - "title": { - "description": "RFC draft-wright-json-schema-validation-00, section 6, 7", - "type": "string" - }, - "type": { - "description": "section 5.21", - "type": "string" - }, - "uniqueItems": { - "description": "section 5.12", - "type": "boolean" - } - } - }, - "jsonschema.Type": { - "type": "object", - "properties": { - "$ref": { - "description": "section 7", - "type": "string" - }, - "$schema": { - "description": "RFC draft-wright-json-schema-00", - "type": "string" - }, - "additionalItems": { - "description": "section 5.9", - "type": "integer" - }, - "additionalProperties": { - "description": "section 5.18", - "type": "object", - "$ref": "#/definitions/json.RawMessage" - }, - "allOf": { - "description": "section 5.22", - "type": "array", - "items": { - "type": "integer" - } - }, - "anyOf": { - "description": "section 5.23", - "type": "array", - "items": { - "type": "integer" - } - }, - "binaryEncoding": { - "description": "section 4.3", - "type": "string" - }, - "default": { - "description": "section 6.2", - "type": "object" - }, - "definitions": { - "description": "section 5.26", - "type": "object", - "$ref": "#/definitions/jsonschema.Definitions" - }, - "dependencies": { - "description": "section 5.19", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "description": { - "description": "section 6.1", - "type": "string" - }, - "enum": { - "description": "section 5.20", - "type": "array", - "items": { - "type": "object" - } - }, - "exclusiveMaximum": { - "description": "section 5.3", - "type": "boolean" - }, - "exclusiveMinimum": { - "description": "section 5.5", - "type": "boolean" - }, - "format": { - "description": "section 7", - "type": "string" - }, - "items": { - "description": "section 5.9", - "type": "integer" - }, - "maxItems": { - "description": "section 5.10", - "type": "integer" - }, - "maxLength": { - "description": "section 5.6", - "type": "integer" - }, - "maxProperties": { - "description": "section 5.13", - "type": "integer" - }, - "maximum": { - "description": "section 5.2", - "type": "integer" - }, - "media": { - "description": "RFC draft-wright-json-schema-hyperschema-00, section 4", - "type": "integer" - }, - "minItems": { - "description": "section 5.11", - "type": "integer" - }, - "minLength": { - "description": "section 5.7", - "type": "integer" - }, - "minProperties": { - "description": "section 5.14", - "type": "integer" - }, - "minimum": { - "description": "section 5.4", - "type": "integer" - }, - "multipleOf": { - "description": "RFC draft-wright-json-schema-validation-00, section 5", - "type": "integer" - }, - "not": { - "description": "section 5.25", - "type": "integer" - }, - "oneOf": { - "description": "section 5.24", - "type": "array", - "items": { - "type": "integer" - } - }, - "pattern": { - "description": "section 5.8", - "type": "string" - }, - "patternProperties": { - "description": "section 5.17", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "properties": { - "description": "section 5.16", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/jsonschema.Type" - } - }, - "required": { - "description": "section 5.15", - "type": "array", - "items": { - "type": "string" - } - }, - "title": { - "description": "RFC draft-wright-json-schema-validation-00, section 6, 7", - "type": "string" - }, - "type": { - "description": "section 5.21", - "type": "string" - }, - "uniqueItems": { - "description": "section 5.12", - "type": "boolean" - } - } - }, - "schema.Schema": { - "$ref": "#/definitions/jsonschema.Schema" - }, - "structure.AddressConfiguration": { - "type": "object", - "properties": { - "ip": { - "type": "string" - }, - "port": { - "type": "string" - } - } - }, - "structure.BackendDeclaration": { - "type": "object", - "properties": { - "address": { - "type": "object", - "$ref": "#/definitions/structure.AddressConfiguration" - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/structure.EndpointDescriptor" - } - }, - "libVersion": { - "type": "string" - }, - "moduleName": { - "type": "string" - }, - "requiredModules": { - "type": "array", - "items": { - "$ref": "#/definitions/structure.ModuleDependency" - } - }, - "version": { - "type": "string" - } - } - }, - "structure.EndpointDescriptor": { - "type": "object", - "required": [ - "path" - ], - "properties": { - "extra": { - "type": "object", - "additionalProperties": true - }, - "inner": { - "type": "boolean" - }, - "path": { - "type": "string" - }, - "userAuthRequired": { - "type": "boolean" - } - } - }, - "structure.GrpcError": { - "type": "object", - "properties": { - "details": { - "type": "array", - "items": { - "type": "object" - } - }, - "errorCode": { - "type": "string" - }, - "errorMessage": { - "type": "string" - } - } - }, - "structure.ModuleDependency": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "required": { - "type": "boolean" - } - } - } - } -}` - -// SwaggerInfo holds exported Swagger Info so clients can modify it -var SwaggerInfo = docs.SwaggerInfo{ - Version: "2.4.1", - Host: "localhost:9003", - BasePath: "/api/config", - Schemes: []string{}, - Title: "ISP configuration service", - Description: "Сервис управления конфигурацией модулей ISP кластера", -} - -func init() { - docs.InitSwagger(SwaggerInfo, doc) -} diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 811d581..37996bf 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -9,11 +9,9 @@ definitions: type: string type: array payload: - $ref: '#/definitions/json.RawMessage' - type: object - required: - - event - - moduleNames + items: + type: integer + type: array type: object domain.CommonConfigLinks: additionalProperties: @@ -38,8 +36,6 @@ definitions: properties: id: type: string - required: - - id type: object domain.ConfigModuleInfo: properties: @@ -53,7 +49,6 @@ definitions: type: string data: $ref: '#/definitions/entity.ConfigData' - type: object description: type: string id: @@ -68,15 +63,11 @@ definitions: type: boolean version: type: integer - required: - - moduleId - - name type: object domain.Connection: properties: address: $ref: '#/definitions/structure.AddressConfiguration' - type: object endpoints: items: $ref: '#/definitions/structure.EndpointDescriptor' @@ -100,7 +91,6 @@ definitions: type: string data: $ref: '#/definitions/entity.ConfigData' - type: object description: type: string id: @@ -115,9 +105,6 @@ definitions: type: string version: type: integer - required: - - moduleId - - name type: object domain.DeleteCommonConfigResponse: properties: @@ -125,7 +112,6 @@ definitions: type: boolean links: $ref: '#/definitions/domain.CommonConfigLinks' - type: object type: object domain.DeleteResponse: properties: @@ -136,15 +122,11 @@ definitions: properties: moduleId: type: string - required: - - moduleId type: object domain.GetByModuleNameRequest: properties: moduleName: type: string - required: - - moduleName type: object domain.ModuleDependency: properties: @@ -161,7 +143,6 @@ definitions: type: boolean configSchema: $ref: '#/definitions/schema.Schema' - type: object configs: items: $ref: '#/definitions/domain.ConfigModuleInfo' @@ -191,7 +172,6 @@ definitions: type: string data: $ref: '#/definitions/entity.ConfigData' - type: object description: type: string id: @@ -200,8 +180,6 @@ definitions: type: string updatedAt: type: string - required: - - name type: object entity.Config: properties: @@ -215,7 +193,6 @@ definitions: type: string data: $ref: '#/definitions/entity.ConfigData' - type: object description: type: string id: @@ -228,9 +205,6 @@ definitions: type: string version: type: integer - required: - - moduleId - - name type: object entity.ConfigData: additionalProperties: true @@ -245,7 +219,6 @@ definitions: type: string schema: $ref: '#/definitions/schema.Schema' - type: object updatedAt: type: string version: @@ -263,8 +236,6 @@ definitions: type: string name: type: string - required: - - name type: object entity.VersionConfig: properties: @@ -276,141 +247,13 @@ definitions: type: string data: $ref: '#/definitions/entity.ConfigData' - type: object id: type: string type: object - json.RawMessage: - $ref: '#/definitions/json.RawMessage' jsonschema.Definitions: additionalProperties: $ref: '#/definitions/jsonschema.Type' type: object - jsonschema.Schema: - properties: - $ref: - description: section 7 - type: string - $schema: - description: RFC draft-wright-json-schema-00 - type: string - additionalItems: - description: section 5.9 - type: integer - additionalProperties: - $ref: '#/definitions/json.RawMessage' - description: section 5.18 - type: object - allOf: - description: section 5.22 - items: - type: integer - type: array - anyOf: - description: section 5.23 - items: - type: integer - type: array - binaryEncoding: - description: section 4.3 - type: string - default: - description: section 6.2 - type: object - definitions: - $ref: '#/definitions/jsonschema.Definitions' - type: object - dependencies: - additionalProperties: - $ref: '#/definitions/jsonschema.Type' - description: section 5.19 - type: object - description: - description: section 6.1 - type: string - enum: - description: section 5.20 - items: - type: object - type: array - exclusiveMaximum: - description: section 5.3 - type: boolean - exclusiveMinimum: - description: section 5.5 - type: boolean - format: - description: section 7 - type: string - items: - description: section 5.9 - type: integer - maxItems: - description: section 5.10 - type: integer - maxLength: - description: section 5.6 - type: integer - maxProperties: - description: section 5.13 - type: integer - maximum: - description: section 5.2 - type: integer - media: - description: RFC draft-wright-json-schema-hyperschema-00, section 4 - type: integer - minItems: - description: section 5.11 - type: integer - minLength: - description: section 5.7 - type: integer - minProperties: - description: section 5.14 - type: integer - minimum: - description: section 5.4 - type: integer - multipleOf: - description: RFC draft-wright-json-schema-validation-00, section 5 - type: integer - not: - description: section 5.25 - type: integer - oneOf: - description: section 5.24 - items: - type: integer - type: array - pattern: - description: section 5.8 - type: string - patternProperties: - additionalProperties: - $ref: '#/definitions/jsonschema.Type' - description: section 5.17 - type: object - properties: - additionalProperties: - $ref: '#/definitions/jsonschema.Type' - description: section 5.16 - type: object - required: - description: section 5.15 - items: - type: string - type: array - title: - description: RFC draft-wright-json-schema-validation-00, section 6, 7 - type: string - type: - description: section 5.21 - type: string - uniqueItems: - description: section 5.12 - type: boolean - type: object jsonschema.Type: properties: $ref: @@ -420,32 +263,33 @@ definitions: description: RFC draft-wright-json-schema-00 type: string additionalItems: + allOf: + - $ref: '#/definitions/jsonschema.Type' description: section 5.9 - type: integer additionalProperties: - $ref: '#/definitions/json.RawMessage' description: section 5.18 - type: object + items: + type: integer + type: array allOf: description: section 5.22 items: - type: integer + $ref: '#/definitions/jsonschema.Type' type: array anyOf: description: section 5.23 items: - type: integer + $ref: '#/definitions/jsonschema.Type' type: array binaryEncoding: description: section 4.3 type: string default: description: section 6.2 - type: object definitions: - $ref: '#/definitions/jsonschema.Definitions' + allOf: + - $ref: '#/definitions/jsonschema.Definitions' description: section 5.26 - type: object dependencies: additionalProperties: $ref: '#/definitions/jsonschema.Type' @@ -456,8 +300,7 @@ definitions: type: string enum: description: section 5.20 - items: - type: object + items: {} type: array exclusiveMaximum: description: section 5.3 @@ -469,8 +312,9 @@ definitions: description: section 7 type: string items: + allOf: + - $ref: '#/definitions/jsonschema.Type' description: section 5.9 - type: integer maxItems: description: section 5.10 type: integer @@ -484,8 +328,9 @@ definitions: description: section 5.2 type: integer media: + allOf: + - $ref: '#/definitions/jsonschema.Type' description: RFC draft-wright-json-schema-hyperschema-00, section 4 - type: integer minItems: description: section 5.11 type: integer @@ -502,12 +347,13 @@ definitions: description: RFC draft-wright-json-schema-validation-00, section 5 type: integer not: + allOf: + - $ref: '#/definitions/jsonschema.Type' description: section 5.25 - type: integer oneOf: description: section 5.24 items: - type: integer + $ref: '#/definitions/jsonschema.Type' type: array pattern: description: section 5.8 @@ -538,7 +384,132 @@ definitions: type: boolean type: object schema.Schema: - $ref: '#/definitions/jsonschema.Schema' + properties: + $ref: + description: section 7 + type: string + $schema: + description: RFC draft-wright-json-schema-00 + type: string + additionalItems: + allOf: + - $ref: '#/definitions/jsonschema.Type' + description: section 5.9 + additionalProperties: + description: section 5.18 + items: + type: integer + type: array + allOf: + description: section 5.22 + items: + $ref: '#/definitions/jsonschema.Type' + type: array + anyOf: + description: section 5.23 + items: + $ref: '#/definitions/jsonschema.Type' + type: array + binaryEncoding: + description: section 4.3 + type: string + default: + description: section 6.2 + definitions: + $ref: '#/definitions/jsonschema.Definitions' + dependencies: + additionalProperties: + $ref: '#/definitions/jsonschema.Type' + description: section 5.19 + type: object + description: + description: section 6.1 + type: string + enum: + description: section 5.20 + items: {} + type: array + exclusiveMaximum: + description: section 5.3 + type: boolean + exclusiveMinimum: + description: section 5.5 + type: boolean + format: + description: section 7 + type: string + items: + allOf: + - $ref: '#/definitions/jsonschema.Type' + description: section 5.9 + maxItems: + description: section 5.10 + type: integer + maxLength: + description: section 5.6 + type: integer + maxProperties: + description: section 5.13 + type: integer + maximum: + description: section 5.2 + type: integer + media: + allOf: + - $ref: '#/definitions/jsonschema.Type' + description: RFC draft-wright-json-schema-hyperschema-00, section 4 + minItems: + description: section 5.11 + type: integer + minLength: + description: section 5.7 + type: integer + minProperties: + description: section 5.14 + type: integer + minimum: + description: section 5.4 + type: integer + multipleOf: + description: RFC draft-wright-json-schema-validation-00, section 5 + type: integer + not: + allOf: + - $ref: '#/definitions/jsonschema.Type' + description: section 5.25 + oneOf: + description: section 5.24 + items: + $ref: '#/definitions/jsonschema.Type' + type: array + pattern: + description: section 5.8 + type: string + patternProperties: + additionalProperties: + $ref: '#/definitions/jsonschema.Type' + description: section 5.17 + type: object + properties: + additionalProperties: + $ref: '#/definitions/jsonschema.Type' + description: section 5.16 + type: object + required: + description: section 5.15 + items: + type: string + type: array + title: + description: RFC draft-wright-json-schema-validation-00, section 6, 7 + type: string + type: + description: section 5.21 + type: string + uniqueItems: + description: section 5.12 + type: boolean + type: object structure.AddressConfiguration: properties: ip: @@ -550,7 +521,6 @@ definitions: properties: address: $ref: '#/definitions/structure.AddressConfiguration' - type: object endpoints: items: $ref: '#/definitions/structure.EndpointDescriptor' @@ -577,14 +547,11 @@ definitions: type: string userAuthRequired: type: boolean - required: - - path type: object structure.GrpcError: properties: details: - items: - type: object + items: {} type: array errorCode: type: string @@ -665,7 +632,8 @@ paths: post: consumes: - application/json - description: Возвращает флаг удаления и набор связей с модулями и конфигурациями, в случае наличия связей deleted всегда false + description: Возвращает флаг удаления и набор связей с модулями и конфигурациями, + в случае наличия связей deleted всегда false parameters: - description: id общей конфигурации in: body @@ -691,7 +659,8 @@ paths: post: consumes: - application/json - description: Возвращает массив конфигураций по запрошенным идентификаторам (все, если массив пустой) + description: Возвращает массив конфигураций по запрошенным идентификаторам (все, + если массив пустой) produces: - application/json responses: @@ -708,7 +677,8 @@ paths: post: consumes: - application/json - description: Возвращает ассоциативный массив, ключами которого являются название модулей, а значения - название конфигурации модуля + description: Возвращает ассоциативный массив, ключами которого являются название + модулей, а значения - название конфигурации модуля parameters: - description: id общей конфигурации in: body @@ -886,7 +856,8 @@ paths: post: consumes: - application/json - description: Возвращает актуальную версию конфигурации без дополнительного содержимого (ConfigData) + description: Возвращает актуальную версию конфигурации без дополнительного содержимого + (ConfigData) parameters: - description: id конфигурации in: body @@ -952,7 +923,8 @@ paths: post: consumes: - application/json - description: Активирует указанную конфигурацию и деактивирует остальные, возвращает активированную конфигурацию + description: Активирует указанную конфигурацию и деактивирует остальные, возвращает + активированную конфигурацию parameters: - description: id конфигурации для изменения in: body @@ -1062,7 +1034,8 @@ paths: post: consumes: - application/json - description: Возвращает полное состояние всех модулей в кластере (конфигурация, схема конфигурации, подключенные экземпляры) + description: Возвращает полное состояние всех модулей в кластере (конфигурация, + схема конфигурации, подключенные экземпляры) produces: - application/json responses: diff --git a/entity/instance.go b/entity/instance.go deleted file mode 100644 index 222f080..0000000 --- a/entity/instance.go +++ /dev/null @@ -1,13 +0,0 @@ -package entity - -import ( - "time" -) - -type Instance struct { - Id int32 `json:"id"` - Uuid string `json:"uuid" valid:"required~Required,uuid~must be a valid uuid"` - Name string `json:"name" valid:"required~Required"` - // CreatedAtJson utils.JSONTime `json:"createdAt" sql:"-"` - CreatedAt time.Time `json:"createdAt" sql:",null"` -} diff --git a/generated/backend_service.pb.go b/generated/backend_service.pb.go deleted file mode 100644 index c7c6ff9..0000000 --- a/generated/backend_service.pb.go +++ /dev/null @@ -1,257 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: proto/backend_service.proto - -/* -Package isp is a generated protocol buffer package. - -It is generated from these files: - proto/backend_service.proto - -It has these top-level messages: - Message -*/ -package isp - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "google.golang.org/genproto/googleapis/api/annotations" -import google_protobuf1 "github.com/golang/protobuf/ptypes/struct" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -type Message struct { - // Types that are valid to be assigned to Body: - // *Message_StructBody - // *Message_ListBody - Body isMessage_Body `protobuf_oneof:"body"` -} - -func (m *Message) Reset() { *m = Message{} } -func (m *Message) String() string { return proto.CompactTextString(m) } -func (*Message) ProtoMessage() {} -func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type isMessage_Body interface { - isMessage_Body() -} - -type Message_StructBody struct { - StructBody *google_protobuf1.Struct `protobuf:"bytes,1,opt,name=structBody,oneof"` -} -type Message_ListBody struct { - ListBody *google_protobuf1.ListValue `protobuf:"bytes,2,opt,name=listBody,oneof"` -} - -func (*Message_StructBody) isMessage_Body() {} -func (*Message_ListBody) isMessage_Body() {} - -func (m *Message) GetBody() isMessage_Body { - if m != nil { - return m.Body - } - return nil -} - -func (m *Message) GetStructBody() *google_protobuf1.Struct { - if x, ok := m.GetBody().(*Message_StructBody); ok { - return x.StructBody - } - return nil -} - -func (m *Message) GetListBody() *google_protobuf1.ListValue { - if x, ok := m.GetBody().(*Message_ListBody); ok { - return x.ListBody - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{ - (*Message_StructBody)(nil), - (*Message_ListBody)(nil), - } -} - -func _Message_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*Message) - // body - switch x := m.Body.(type) { - case *Message_StructBody: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.StructBody); err != nil { - return err - } - case *Message_ListBody: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ListBody); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("Message.Body has unexpected type %T", x) - } - return nil -} - -func _Message_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*Message) - switch tag { - case 1: // body.structBody - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(google_protobuf1.Struct) - err := b.DecodeMessage(msg) - m.Body = &Message_StructBody{msg} - return true, err - case 2: // body.listBody - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(google_protobuf1.ListValue) - err := b.DecodeMessage(msg) - m.Body = &Message_ListBody{msg} - return true, err - default: - return false, nil - } -} - -func _Message_OneofSizer(msg proto.Message) (n int) { - m := msg.(*Message) - // body - switch x := m.Body.(type) { - case *Message_StructBody: - s := proto.Size(x.StructBody) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *Message_ListBody: - s := proto.Size(x.ListBody) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - -func init() { - proto.RegisterType((*Message)(nil), "isp.Message") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for BackendService service - -type BackendServiceClient interface { - // ===== SYSTEM ===== - Request(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) -} - -type backendServiceClient struct { - cc *grpc.ClientConn -} - -func NewBackendServiceClient(cc *grpc.ClientConn) BackendServiceClient { - return &backendServiceClient{cc} -} - -func (c *backendServiceClient) Request(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) { - out := new(Message) - err := grpc.Invoke(ctx, "/isp.BackendService/Request", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for BackendService service - -type BackendServiceServer interface { - // ===== SYSTEM ===== - Request(context.Context, *Message) (*Message, error) -} - -func RegisterBackendServiceServer(s *grpc.Server, srv BackendServiceServer) { - s.RegisterService(&_BackendService_serviceDesc, srv) -} - -func _BackendService_Request_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Message) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BackendServiceServer).Request(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/isp.BackendService/Request", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BackendServiceServer).Request(ctx, req.(*Message)) - } - return interceptor(ctx, in, info, handler) -} - -var _BackendService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "isp.BackendService", - HandlerType: (*BackendServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Request", - Handler: _BackendService_Request_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "proto/backend_service.proto", -} - -func init() { proto.RegisterFile("proto/backend_service.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 264 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2e, 0x28, 0xca, 0x2f, - 0xc9, 0xd7, 0x4f, 0x4a, 0x4c, 0xce, 0x4e, 0xcd, 0x4b, 0x89, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, - 0x4e, 0xd5, 0x03, 0x8b, 0x0a, 0x31, 0xe7, 0x16, 0x17, 0x48, 0xc9, 0xa4, 0xe7, 0xe7, 0xa7, 0xe7, - 0xa4, 0xea, 0x27, 0x16, 0x64, 0xea, 0x27, 0xe6, 0xe5, 0xe5, 0x97, 0x24, 0x96, 0x64, 0xe6, 0xe7, - 0x15, 0x43, 0x94, 0xc0, 0x65, 0xc1, 0xbc, 0xa4, 0xd2, 0x34, 0xfd, 0xe2, 0x92, 0xa2, 0xd2, 0xe4, - 0x12, 0x88, 0xac, 0x52, 0x1b, 0x23, 0x17, 0xbb, 0x6f, 0x6a, 0x71, 0x71, 0x62, 0x7a, 0xaa, 0x90, - 0x25, 0x17, 0x17, 0x44, 0xce, 0x29, 0x3f, 0xa5, 0x52, 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x48, - 0x5c, 0x0f, 0xa2, 0x5d, 0x0f, 0xa6, 0x5d, 0x2f, 0x18, 0xac, 0xc4, 0x83, 0x21, 0x08, 0x49, 0xb1, - 0x90, 0x05, 0x17, 0x47, 0x4e, 0x66, 0x31, 0x44, 0x23, 0x13, 0x58, 0xa3, 0x14, 0x86, 0x46, 0x9f, - 0xcc, 0xe2, 0x92, 0xb0, 0xc4, 0x9c, 0xd2, 0x54, 0x0f, 0x86, 0x20, 0xb8, 0x6a, 0x27, 0x36, 0x2e, - 0x96, 0xa4, 0xfc, 0x94, 0x4a, 0x23, 0x0f, 0x2e, 0x3e, 0x27, 0x88, 0x17, 0x83, 0x21, 0x3e, 0x14, - 0x32, 0xe3, 0x62, 0x0f, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x11, 0xe2, 0xd1, 0xcb, 0x2d, 0x2e, - 0xd0, 0x83, 0xba, 0x53, 0x0a, 0x85, 0xa7, 0xc4, 0xdf, 0x74, 0xf9, 0xc9, 0x64, 0x26, 0x4e, 0x25, - 0x16, 0x90, 0xff, 0xad, 0x18, 0xb5, 0x9c, 0xf4, 0xb9, 0xc4, 0x32, 0xf3, 0xf5, 0xd2, 0x8b, 0x0a, - 0x92, 0xf5, 0x92, 0xf3, 0xf3, 0xca, 0x52, 0x8b, 0x4a, 0xa0, 0x26, 0x3a, 0x09, 0x3b, 0xa3, 0xf0, - 0x03, 0x40, 0x2e, 0x0b, 0x60, 0x4c, 0x62, 0x03, 0x3b, 0xd1, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, - 0x64, 0xa9, 0x7f, 0x65, 0x6a, 0x01, 0x00, 0x00, -} diff --git a/generated/backend_service.pb.gw.go b/generated/backend_service.pb.gw.go deleted file mode 100644 index b7fa6f9..0000000 --- a/generated/backend_service.pb.gw.go +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: proto/backend_service.proto - -/* -Package isp is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package isp - -import ( - "io" - "net/http" - - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "golang.org/x/net/context" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -func request_BackendService_Request_0(ctx context.Context, marshaler runtime.Marshaler, client BackendServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Message - var metadata runtime.ServerMetadata - - if req.ContentLength > 0 { - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - } - - msg, err := client.Request(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterBackendServiceHandlerFromEndpoint is same as RegisterBackendServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterBackendServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterBackendServiceHandler(ctx, mux, conn) -} - -// RegisterBackendServiceHandler registers the http handlers for service BackendService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterBackendServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterBackendServiceHandlerClient(ctx, mux, NewBackendServiceClient(conn)) -} - -// RegisterBackendServiceHandler registers the http handlers for service BackendService to "mux". -// The handlers forward requests to the grpc endpoint over the given implementation of "BackendServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BackendServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "BackendServiceClient" to call the correct interceptors. -func RegisterBackendServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BackendServiceClient) error { - - mux.Handle("POST", pattern_BackendService_Request_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - if cn, ok := w.(http.CloseNotifier); ok { - go func(done <-chan struct{}, closed <-chan bool) { - select { - case <-done: - case <-closed: - cancel() - } - }(ctx.Done(), cn.CloseNotify()) - } - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_BackendService_Request_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_BackendService_Request_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_BackendService_Request_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"api"}, "")) -) - -var ( - forward_BackendService_Request_0 = runtime.ForwardResponseMessage -) diff --git a/go.mod b/go.mod index 318161c..b929085 100644 --- a/go.mod +++ b/go.mod @@ -10,33 +10,25 @@ require ( github.com/hashicorp/raft-boltdb/v2 v2.2.2 github.com/integration-system/bellows v1.0.1 github.com/integration-system/isp-etp-go/v2 v2.1.3 - github.com/integration-system/isp-lib-test v1.7.0 github.com/integration-system/isp-lib/v2 v2.11.0 github.com/integration-system/isp-log v1.2.0 github.com/integration-system/net-mux v1.0.1 + github.com/integration-system/swag v1.7.115 github.com/json-iterator/go v1.1.12 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 github.com/pkg/errors v0.9.1 github.com/satori/go.uuid v1.2.0 - github.com/stretchr/testify v1.8.1 github.com/xeipuuv/gojsonschema v1.2.0 google.golang.org/grpc v1.51.0 ) require ( github.com/KyleBanks/depth v1.2.1 // indirect - github.com/Microsoft/go-winio v0.4.14 // indirect github.com/andybalholm/brotli v1.0.4 // indirect github.com/armon/go-metrics v0.4.1 // indirect github.com/boltdb/bolt v1.3.1 // indirect github.com/buaazp/fasthttprouter v0.1.1 // indirect github.com/codemodus/kace v0.5.1 // indirect - github.com/containerd/containerd v1.4.4 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/docker/distribution v2.7.1+incompatible // indirect - github.com/docker/docker v20.10.5+incompatible // indirect - github.com/docker/go-connections v0.4.0 // indirect - github.com/docker/go-units v0.4.0 // indirect github.com/fatih/color v1.13.0 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/go-openapi/jsonpointer v0.19.5 // indirect @@ -44,19 +36,17 @@ require ( github.com/go-openapi/spec v0.20.7 // indirect github.com/go-openapi/swag v0.22.3 // indirect github.com/go-pg/zerochecker v0.2.0 // indirect - github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/protobuf v1.5.2 // indirect - github.com/google/go-cmp v0.5.9 // indirect + github.com/gorilla/websocket v1.4.2 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-hclog v1.3.1 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-msgpack v0.5.5 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/hashicorp/go-uuid v1.0.1 // indirect github.com/hashicorp/golang-lru v0.5.4 // indirect github.com/hashicorp/hcl v1.0.0 // indirect - github.com/integration-system/cony v0.3.0 // indirect github.com/integration-system/go-cmp v0.0.0-20190131081942-ac5582987a2f // indirect - github.com/integration-system/isp-event-lib v1.9.0 // indirect github.com/integration-system/jsonschema v1.0.1 // indirect github.com/jinzhu/inflection v1.0.0 // indirect github.com/josharian/intern v1.0.0 // indirect @@ -69,11 +59,10 @@ require ( github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect - github.com/opencontainers/go-digest v1.0.0-rc1 // indirect - github.com/opencontainers/image-spec v1.0.1 // indirect + github.com/onsi/ginkgo v1.15.0 // indirect + github.com/onsi/gomega v1.10.5 // indirect github.com/pelletier/go-toml v1.9.5 // indirect github.com/pelletier/go-toml/v2 v2.0.6 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pressly/goose v2.7.0+incompatible // indirect github.com/profefe/profefe v0.0.0-20210412073930-18342f204d75 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect @@ -85,7 +74,6 @@ require ( github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/viper v1.14.0 // indirect - github.com/streadway/amqp v1.0.0 // indirect github.com/subosito/gotenv v1.4.1 // indirect github.com/swaggo/files v0.0.0-20220728132757-551d4a08d97a // indirect github.com/swaggo/http-swagger v1.3.3 // indirect @@ -99,6 +87,7 @@ require ( github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect go.etcd.io/bbolt v1.3.6 // indirect golang.org/x/crypto v0.3.0 // indirect + golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect golang.org/x/net v0.2.0 // indirect golang.org/x/sys v0.2.0 // indirect golang.org/x/text v0.4.0 // indirect diff --git a/go.sum b/go.sum index 12a538a..cb655dd 100644 --- a/go.sum +++ b/go.sum @@ -18,9 +18,6 @@ cloud.google.com/go v0.66.0/go.mod h1:dgqGAjKCDxyhGTtC9dAREQGUJpkceNm1yt590Qno0K cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= -cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= -cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= -cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -29,7 +26,6 @@ cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4g cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= @@ -43,72 +39,40 @@ cloud.google.com/go/storage v1.12.0/go.mod h1:fFLk2dp2oAhDz8QFKwqrjdJvxSp/W2g7ni cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= -github.com/Azure/azure-sdk-for-go v51.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -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/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest/autorest v0.11.18/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA= -github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= -github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= -github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/autorest/to v0.4.0/go.mod h1:fE8iZBn7LQR7zH/9XU2NcPR4o9jEImooCeWJcYV/zLE= -github.com/Azure/go-autorest/autorest/validation v0.3.1/go.mod h1:yhLgjC0Wda5DYXl6JAsWyUe4KVNffhoDhG0zVzUMo3E= -github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= -github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/ClickHouse/clickhouse-go v1.4.0/go.mod h1:EaI/sW7Azgz9UATzd5ZdZHRUhHgv5+JMS9NSr2smCJI= github.com/DataDog/datadog-go v2.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/DataDog/sketches-go v0.0.0-20190923095040-43f19ad77ff7/go.mod h1:Q5DbzQ+3AkgGwymQO7aZFNP7ns2lZKGtvRBzRXfdi60= github.com/KyleBanks/depth v1.2.1 h1:5h8fQADFrWtarTdtDudMmGsC7GPbOAu6RVB3ffsVFHc= github.com/KyleBanks/depth v1.2.1/go.mod h1:jzSb9d0L43HxTQfT+oSA1EEp2q+ne2uh6XgeJcm8brE= -github.com/Microsoft/go-winio v0.4.14 h1:+hMXMk01us9KgxGb7ftKQt2Xpf5hH/yky+TDA+qxleU= -github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= 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/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= -github.com/andybalholm/brotli v1.0.1/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY= github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= -github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878/go.mod h1:3AMJUQhVx52RsWOnlkpikZr01T/yAVN2gn0861vByNg= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/asaskevich/govalidator v0.0.0-20180315120708-ccb8e960c48f/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= +github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ= github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/aws/aws-sdk-go v1.29.9/go.mod h1:1KvfttTE3SPKMpo8g2c6jL3ZKfXtFvKscTgahTma5Xg= -github.com/benbjohnson/clock v1.0.0/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM= 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/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bkaradzic/go-lz4 v1.0.0/go.mod h1:0YdlkowM3VswSROI7qDxhRvJ3sLhlFrRRwjwegp5jy4= -github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= -github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= github.com/boltdb/bolt v1.3.1 h1:JQmyP4ZBrce+ZQu0dY660FMfatumYDLun9hBCUVIkF4= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/buaazp/fasthttprouter v0.1.1 h1:4oAnN0C3xZjylvZJdP35cxfclyn4TYkW6Y+DSvS+h8Q= github.com/buaazp/fasthttprouter v0.1.1/go.mod h1:h/Ap5oRVLeItGKTVBb+heQPks+HdIUtGmI4H5WCYijM= -github.com/cenkalti/backoff/v4 v4.0.0/go.mod h1:eEew/i+1Q6OrCDZh3WiXYv3+nJwBASZ8Bog/87DQnVg= -github.com/cenkalti/backoff/v4 v4.0.2/go.mod h1:eEew/i+1Q6OrCDZh3WiXYv3+nJwBASZ8Bog/87DQnVg= -github.com/cenkalti/backoff/v4 v4.1.0/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/cenkalti/backoff/v4 v4.2.0 h1:HN5dHm3WBOgndBH6E8V0q2jIYIR3s9yglV8k/+MN3u4= github.com/cenkalti/backoff/v4 v4.2.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= @@ -122,75 +86,39 @@ github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnht github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/codemodus/kace v0.5.1 h1:4OCsBlE2c/rSJo375ggfnucv9eRzge/U5LrrOZd47HA= github.com/codemodus/kace v0.5.1/go.mod h1:coddaHoX1ku1YFSe4Ip0mL9kQjJvKkzb9CfIdG1YR04= -github.com/containerd/containerd v1.4.4 h1:rtRG4N6Ct7GNssATwgpvMGfnjnwfjnu/Zs9W3Ikzq+M= -github.com/containerd/containerd v1.4.4/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= 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.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -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/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= -github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/dlclark/regexp2 v1.4.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= -github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= -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 v1.13.1/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v20.10.5+incompatible h1:o5WL5onN4awYGwrW7+oTn5x9AF2prw7V0Ox8ZEkoCdg= -github.com/docker/docker v20.10.5+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/dop251/goja v0.0.0-20201221183957-6b6d5e2b5d80/go.mod h1:Mw6PkjjMXWbTj+nnj4s3QPXq1jaT0s5pC0iFD4+BOAA= -github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= -github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= 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.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/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/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.7.2/go.mod h1:jaStnuzAqU1AJdCO0l53JDCJrVDKcS03DbaAcR7Ks/o= -github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gin-contrib/gzip v0.0.1/go.mod h1:fGBJBCdt6qCZuCAOwWuFhBB4OOq9EFqlo5dEaFhhu5w= -github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= github.com/gin-gonic/gin v1.4.0/go.mod h1:OW2EZn3DO8Ln9oIKOvM++LBO+5UPHJJDH72/q/3rZdM= github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14= github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= -github.com/go-chi/chi v4.0.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= @@ -198,46 +126,22 @@ github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2 github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 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-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= -github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.19.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= -github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/jsonreference v0.19.4/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= -github.com/go-openapi/spec v0.19.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= -github.com/go-openapi/spec v0.19.4/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/spec v0.19.9/go.mod h1:vqK/dIdLGCosfvYsQV3WfC7N3TiZSnGY2RZKoFK7X28= -github.com/go-openapi/spec v0.19.14/go.mod h1:gwrgJS15eCUgjLpMjBJmbZezCsw88LmgeEip0M63doA= -github.com/go-openapi/spec v0.20.0/go.mod h1:+81FIL1JwC5P3/Iuuozq3pPE9dXdIEGxFutcFKaVbmU= +github.com/go-openapi/spec v0.20.3/go.mod h1:gG4F8wdEDN+YPBMVnzE85Rbhf+Th2DTvA9nFPQ5AYEg= github.com/go-openapi/spec v0.20.7 h1:1Rlu/ZrOCCob0n+JKKJAWhNWMPW8bOZRg8FJaY+0SKI= github.com/go-openapi/spec v0.20.7/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= -github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= -github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.9/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= -github.com/go-openapi/swag v0.19.11/go.mod h1:Uc0gKkdR+ojzsEpjh39QChyu92vPgIr72POcgHMAgSY= -github.com/go-openapi/swag v0.19.12/go.mod h1:eFdyEBkTdoAf/9RXBvj4cr1nH7GD8Kzo5HTt47gr72M= +github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= -github.com/go-pg/pg/v9 v9.0.0-beta.14/go.mod h1:T2Sr6bpTCOr2lUqOUMiXLMJqZHSUBKk1LdgSqjwhZfA= -github.com/go-pg/pg/v9 v9.0.3/go.mod h1:Tm/Q3Vt6gdQOH6TTN1H/xLlIXc+Qrka7TZ6uREtu/eA= -github.com/go-pg/pg/v9 v9.1.4/go.mod h1:QM13HBLkdml4zcKOfUfGLymM6hb72aKTJLrmaH8rsFg= -github.com/go-pg/pg/v9 v9.1.5/go.mod h1:QM13HBLkdml4zcKOfUfGLymM6hb72aKTJLrmaH8rsFg= -github.com/go-pg/pg/v9 v9.1.7/go.mod h1:QM13HBLkdml4zcKOfUfGLymM6hb72aKTJLrmaH8rsFg= github.com/go-pg/pg/v9 v9.2.1 h1:4rWNJkj+aPuDFqgieTzNhHBuYaXREh3yaB9NlBerFys= github.com/go-pg/pg/v9 v9.2.1/go.mod h1:fG8qbL+ei4e/fCZLHK+Z+/7b9B+pliZtbpaucG4/YNQ= -github.com/go-pg/urlstruct v0.1.0/go.mod h1:2Nag+BIny6G/KYCkdt++ZnqU/VinzimGapKfs4kwlN0= -github.com/go-pg/urlstruct v0.2.6/go.mod h1:dxENwVISWSOX+k87hDt0ueEJadD+gZWv3tHzwfmZPu8= -github.com/go-pg/urlstruct v0.3.0/go.mod h1:/XKyiUOUUS3onjF+LJxbfmSywYAdl6qMfVbX33Q8rgg= -github.com/go-pg/zerochecker v0.1.1/go.mod h1:NJZ4wKL0NmTtz0GKCoJ8kym6Xn/EQzXRl2OnAe7MmDo= github.com/go-pg/zerochecker v0.2.0 h1:pp7f72c3DobMWOb2ErtZsnrPaSvHd2W4o9//8HtF4mU= github.com/go-pg/zerochecker v0.2.0/go.mod h1:NJZ4wKL0NmTtz0GKCoJ8kym6Xn/EQzXRl2OnAe7MmDo= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= @@ -247,11 +151,6 @@ github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD87 github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY= github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= -github.com/go-redis/redis v6.15.6+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= -github.com/go-redis/redis/v8 v8.0.0-beta.2/go.mod h1:o1M7JtsgfDYyv3o+gBn/jJ1LkqpnCrmil7PSppZGBak= -github.com/go-redis/redis/v8 v8.4.4/go.mod h1:nA0bQuF0i5JFx4Ta9RZxGKXFrQ8cRWntra97f0196iY= -github.com/go-redis/redis/v8 v8.8.2/go.mod h1:F7resOH5Kdug49Otu24RjHWwgK7u9AmtqWMnCV1iP5Y= -github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= @@ -261,14 +160,8 @@ github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gogo/protobuf v1.1.1/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.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -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-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -279,7 +172,6 @@ github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= 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= @@ -295,11 +187,8 @@ github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QD github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.3/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= @@ -310,11 +199,9 @@ github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= @@ -330,223 +217,123 @@ github.com/google/pprof v0.0.0-20200905233945-acf8798be1f7/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorilla/mux v1.7.3 h1:gnP5JzjVOuiZD07fKKToCAOjS0yOpj/qPETTXCCS6hw= -github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/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.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.13.0/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-hclog v0.9.1/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= -github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v0.15.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v0.16.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v1.3.1 h1:vDwF1DFNZhntP4DAjuTpOw3uEgMUpXh1pB5fW9DqHpo= github.com/hashicorp/go-hclog v1.3.1/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-msgpack v0.5.5 h1:i9R9JSrqIz0QVLz3sz+i3YJdT7TTSLcfLLzJi9aZTuI= github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= -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 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -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/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc= github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -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/raft v1.1.0/go.mod h1:4Ak7FSPnuvmb0GV6vgIAJ4vYT4bek9bb6Q+7HVbyzqM= -github.com/hashicorp/raft v1.1.1/go.mod h1:vPAJM8Asw6u8LxC3eJCUZmRP/E4QmUGE1R7g7k8sG/8= -github.com/hashicorp/raft v1.1.2/go.mod h1:vPAJM8Asw6u8LxC3eJCUZmRP/E4QmUGE1R7g7k8sG/8= github.com/hashicorp/raft v1.3.11 h1:p3v6gf6l3S797NnK5av3HcczOC1T5CLoaRvg0g9ys4A= github.com/hashicorp/raft v1.3.11/go.mod h1:J8naEwc6XaaCfts7+28whSeRvCqTd6e20BlCU3LtEO4= -github.com/hashicorp/raft-boltdb v0.0.0-20171010151810-6e5ba93211ea/go.mod h1:pNv7Wc3ycL6F5oOWn+tPGo2gWD4a5X+yp/ntwdKLjRk= github.com/hashicorp/raft-boltdb v0.0.0-20210409134258-03c10cc3d4ea h1:RxcPJuutPRM8PUOyiweMmkuNO+RJyfy2jds2gfvgNmU= github.com/hashicorp/raft-boltdb v0.0.0-20210409134258-03c10cc3d4ea/go.mod h1:qRd6nFJYYS6Iqnc/8HcUmko2/2Gw8qTFEmxDLii6W5I= github.com/hashicorp/raft-boltdb/v2 v2.2.2 h1:rlkPtOllgIcKLxVT4nutqlTH2NRFn+tO1wwZk/4Dxqw= github.com/hashicorp/raft-boltdb/v2 v2.2.2/go.mod h1:N8YgaZgNJLpZC+h+by7vDu5rzsRgONThTEeUS3zWbfY= -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/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/integration-system/bellows v0.0.0-20190821124023-244325e8836c/go.mod h1:6cf4ZNvtzZ/KMiuc+d5Y7rSHjzlYBWEqbVyDfUDhqIE= -github.com/integration-system/bellows v1.0.0/go.mod h1:qHPg1ptN3AHHr0f/wvoicfA2LOCprOyrbXnIa5QIRe0= github.com/integration-system/bellows v1.0.1 h1:7g1lhD/6EcvsSo9iuiFqw98XGS78Sko6kUKPzfte/SY= github.com/integration-system/bellows v1.0.1/go.mod h1:qHPg1ptN3AHHr0f/wvoicfA2LOCprOyrbXnIa5QIRe0= -github.com/integration-system/cony v0.3.0 h1:wSDrThUe7JdI1kUo1PBQ+TdYcGkrPzfbV01bBC6mpbQ= -github.com/integration-system/cony v0.3.0/go.mod h1:3DTgNOKVMPhFyI0CD85HlIfeP29x3h7hAK0XLsg4mww= -github.com/integration-system/go-amqp v0.12.8/go.mod h1:ALB2VeQh/HXN/2Nk0XClCbsL30yT+6y0qKRRZg3D9FM= -github.com/integration-system/go-amqp v0.13.61/go.mod h1:8zftwPfjfeIw2XncclRoV4MuQb4v0xs30jpnpcwCiuw= -github.com/integration-system/go-amqp v0.14.0/go.mod h1:gDYHM0vInhvKsBHhTWfbE+qHDpgUcYCy8a8ZiqumLUo= github.com/integration-system/go-cmp v0.0.0-20190131081942-ac5582987a2f h1:52UOJguw5yqe1y2JjmyVxGcZf3kv2BQeUodR363MkiQ= github.com/integration-system/go-cmp v0.0.0-20190131081942-ac5582987a2f/go.mod h1:w+dmaWojuIwNujSYg6qt1wKHhSdorLOivCEl/XuLzbM= -github.com/integration-system/gowsdl v1.0.0/go.mod h1:ZwTCE+Av5aQLnPj2/3PIop6mzCs1FY7jXrcWDvSjrBA= -github.com/integration-system/isp-etp-go/v2 v2.1.1/go.mod h1:Ndq5DMM3sDJjZn4cyKKvZrVED0FMeoXMRWHZTq+2Z1o= -github.com/integration-system/isp-etp-go/v2 v2.1.2/go.mod h1:fSkS09/engepaDDqaDAEeXUpzmtcMpSLjilZ35BfNcc= github.com/integration-system/isp-etp-go/v2 v2.1.3 h1:vcHP/PE7p1G3rxqoVKrKtXzoSxFA4ryxigd+zPkAb3w= github.com/integration-system/isp-etp-go/v2 v2.1.3/go.mod h1:ZpB+FIH3hy7md+f8ylVSQx5zwZVjczhkc45f1B2z9nw= -github.com/integration-system/isp-event-lib v1.6.0/go.mod h1:lCzAci6oS+vc51W8EfHVCh9p3p057r0DpMuY4T0lSj0= -github.com/integration-system/isp-event-lib v1.6.1/go.mod h1:5ZIXsMG3gC7sfQ+eICjkDpy2RSvSAxV3Cq1BVN8LFIk= -github.com/integration-system/isp-event-lib v1.6.5/go.mod h1:gQg0S8TMeISIkTLM9/DwgWwnpS3BUkNFjgByRg3+Ub0= -github.com/integration-system/isp-event-lib v1.9.0 h1:zRO6FFkQ1DRIN+2wB/2AP3azjYLgNnyJGFIZ9qJ+PGw= -github.com/integration-system/isp-event-lib v1.9.0/go.mod h1:p9v8DnJpgw1fdVmUN1rMjfvQw0YcpGUMazA0qkLSXec= -github.com/integration-system/isp-lib-test v1.5.4/go.mod h1:rD+X0QMiOIeJDhqwB4avdYhnc1hoEkL4z+7C7lwTuOA= -github.com/integration-system/isp-lib-test v1.6.0/go.mod h1:If5QK5jsXE48DZuq6WzCw8yC22k7GogLrEnMngXiE2Y= -github.com/integration-system/isp-lib-test v1.6.4/go.mod h1:k8DiXG/Bx3k8cft0QI/+BTRsL/43effW5575udzWv1M= -github.com/integration-system/isp-lib-test v1.7.0 h1:1+Y6vw+uLxx7gu1v39PP3AXMr4WocmI/S6TyfpFmwUQ= -github.com/integration-system/isp-lib-test v1.7.0/go.mod h1:HyCtET3EjxQM/bXl3bkCwuDknLotAKxjDO4mYgeww2Q= -github.com/integration-system/isp-lib/v2 v2.4.0/go.mod h1:hxyzKBD7eIf6Hm4x6zRsLW5p8m/aFeqeezKMFYBAtho= -github.com/integration-system/isp-lib/v2 v2.6.2/go.mod h1:ZGW7qQsCuELBHRBnSSDSEonPx+FxAfHiAfwsGQZzVO4= -github.com/integration-system/isp-lib/v2 v2.8.4/go.mod h1:bKFyatmLqEkaQWJjww0R1Dz+cRn8T7YSaf4VrROgeTw= -github.com/integration-system/isp-lib/v2 v2.10.0/go.mod h1:Uz79/zcx4BNq4LpTBY2GoJR83WJDy2TZhYrmQAY0R+k= github.com/integration-system/isp-lib/v2 v2.11.0 h1:5vlgSgTvPY2Q3/ucTZ/572GPeJsVGqz+y74VhKZ2LKU= github.com/integration-system/isp-lib/v2 v2.11.0/go.mod h1:9u47SFT0sTAZM5rkqeV88HNTiExgZWrRFoAQpjC68Wc= -github.com/integration-system/isp-log v1.1.2/go.mod h1:VVMr3cHW+RuFurPUSeVz71KUnOGQxogxO5atV9N8ISs= -github.com/integration-system/isp-log v1.1.5/go.mod h1:VVMr3cHW+RuFurPUSeVz71KUnOGQxogxO5atV9N8ISs= -github.com/integration-system/isp-log v1.1.6/go.mod h1:TpUZ/Tx84sRipAT/YXZ8V7Z21C4iZ8o3wXQs3Cee0Pk= -github.com/integration-system/isp-log v1.1.8/go.mod h1:xSYA6TY/N45lFYSDwhoOW96Q/4it0nufG0yQDA2BNy8= github.com/integration-system/isp-log v1.2.0 h1:kYAP8LH2ttDk9lElKNoxGvLAKh94kesfnAkQVCjbc5s= github.com/integration-system/isp-log v1.2.0/go.mod h1:ri19IsCkLbxPWS1KFNHlLpg88IdYF5EHm8JH+xULLQ0= -github.com/integration-system/jsonschema v1.0.0/go.mod h1:EoqDH7RmC8Epg5EgjboIxDo7Udv3WX2exGqtIVB4hI0= github.com/integration-system/jsonschema v1.0.1 h1:nR78BEDG9djX2uXQ1YP66a/9yQOMmp2HFmw8VPUdAa8= github.com/integration-system/jsonschema v1.0.1/go.mod h1:EoqDH7RmC8Epg5EgjboIxDo7Udv3WX2exGqtIVB4hI0= github.com/integration-system/net-mux v1.0.1 h1:UKHdt1UxNJXwroeLdhYQeUah/aizcqx6hS1SOdfx7pg= github.com/integration-system/net-mux v1.0.1/go.mod h1:0iEskyZB58/VwtFu8BATYMmPse2ZU9WWv6agidMEAs0= +github.com/integration-system/swag v1.7.115 h1:MnKJO3vifqJuc2SL8BEagJzzTOKoFZOVdrLL4JXdnb8= +github.com/integration-system/swag v1.7.115/go.mod h1:ELPtyiM3C6kzIFEmhEkls73vQ7ZKyH4fbQEkrOuBYcc= github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 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.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -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/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= -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/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.9.8/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.10.0/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.10.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.11.8/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= github.com/klauspost/compress v1.15.12 h1:YClS/PImqYbn+UILDnqxQCZ3RehC9N318SU3kElDUEM= github.com/klauspost/compress v1.15.12/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= -github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= 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.2/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/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= 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/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.7.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.10.3/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= -github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.1/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -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-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= 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-homedir v1.1.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/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -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 h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -556,79 +343,42 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw= github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= -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/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.4/go.mod h1:Jw1Z28soD/QasIA2uWjXyM9El1jly3YwyFOuR8tH1rg= -github.com/nats-io/nats-server/v2 v2.1.7/go.mod h1:rbRrRE/Iv93O/rUvZ9dh4NfT0Cm9HWjW/BqOWLGgYiE= -github.com/nats-io/nats-server/v2 v2.1.8/go.mod h1:rbRrRE/Iv93O/rUvZ9dh4NfT0Cm9HWjW/BqOWLGgYiE= -github.com/nats-io/nats-streaming-server v0.17.0/go.mod h1:ewPBEsmp62Znl3dcRsYtlcfwudxHEdYMtYqUQSt4fE0= -github.com/nats-io/nats-streaming-server v0.18.0/go.mod h1:Y9Aiif2oANuoKazQrs4wXtF3jqt6p97ODQg68lR5TnY= -github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= -github.com/nats-io/nats.go v1.10.0/go.mod h1:AjGArbfyR50+afOUotNX2Xs5SYHf+CoOa5HH1eEl2HE= -github.com/nats-io/nats.go v1.11.0/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w= -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/nkeys v0.1.4/go.mod h1:XdZpAbhgyyODYqjTawOnIOI7VlbKSarI9Gfy1tqEu/s= -github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4= -github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= -github.com/nats-io/stan.go v0.6.0/go.mod h1:eIcD5bi3pqbHT/xIIvXMwvzXYElgouBvaVRftaE+eac= -github.com/nats-io/stan.go v0.7.0/go.mod h1:Ci6mUIpGQTjl++MqK2XzkWI/0vF+Bl72uScx7ejSYmU= -github.com/nats-io/stan.go v0.8.3/go.mod h1:Ejm8bbHnMTSptU6uNMAVuxeapMJYBB/Ml3ej6z4GoSY= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/olivere/elastic v6.2.29+incompatible/go.mod h1:J+q1zQJTgAz9woqsbVRqGeB5G1iqDKVBWLNSYW8yfJ8= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.14.2/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= github.com/onsi/ginkgo v1.15.0 h1:1V1NfVQR87RtWAgp1lv9JZJ5Jap+XFGKPi00andXGi4= github.com/onsi/ginkgo v1.15.0/go.mod h1:hF8qUzuuC8DJGygJH3726JnCZX4MYbRB8yFfISqnKUg= github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.10.4/go.mod h1:g/HbgYopi++010VEqkFgJHKC09uJiW9UkXvMUuKHUCQ= github.com/onsi/gomega v1.10.5 h1:7n6FEkpFmfCoo2t+YYqXH0evK+a9ICQz0xcAy9dYcaQ= github.com/onsi/gomega v1.10.5/go.mod h1:gza4q3jKQJijlu05nKWRCW/GavJumGt8aNRxWg7mt48= -github.com/opencontainers/go-digest v1.0.0-rc1 h1:WzifXhOVOEOuFYOJAW6aQqW0TooG2iki3E3Ii+WN7gQ= -github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= -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/opentracing-go v1.1.1-0.20190913142402-a7454ce5950e/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml/v2 v2.0.6 h1:nrzqCb7j9cDFj2coyLNLaZuJTLjWjlaz6nvTvIwycIU= github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.4.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4 v2.6.0+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= 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/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= 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/pressly/goose v2.6.0+incompatible/go.mod h1:m+QHWCqxR3k8D9l7qfzuC/djtlfzxr34mozWDYEu1z8= github.com/pressly/goose v2.7.0+incompatible h1:PWejVEv07LCerQEzMMeAtjuyCKbyprZ/LBa6K5P0OCQ= github.com/pressly/goose v2.7.0+incompatible/go.mod h1:m+QHWCqxR3k8D9l7qfzuC/djtlfzxr34mozWDYEu1z8= -github.com/profefe/profefe v0.0.0-20200307211836-5ab457f7a4d8/go.mod h1:QOlABo1QFtwVrB7Rdl8gwY9pqxmln8lIWOQEW1oj1uI= github.com/profefe/profefe v0.0.0-20210412073930-18342f204d75 h1:L2ySMPFVEjnQA+CcPdG4/j+R+7tH95MtB3Y0Wynktes= github.com/profefe/profefe v0.0.0-20210412073930-18342f204d75/go.mod h1:64I4nyfqy58IxcBlDQ+SgtwdAF0m9yVxfCiVKVwag/k= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM= -github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= @@ -636,63 +386,41 @@ github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1: 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.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.0.9/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= -github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rs/xid v1.2.2-0.20200205151950-d13a6085d55c/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= 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/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/segmentio/asm v1.1.3/go.mod h1:Ld3L4ZXGNcSLRg4JBsZ3//1+f/TjYl0Mzen/DQy1EJg= github.com/segmentio/asm v1.2.0 h1:9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys= github.com/segmentio/asm v1.2.0/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs= -github.com/segmentio/encoding v0.1.10/go.mod h1:RWhr02uzMB9gQC1x+MfYxedtmBibb9cZ6Vv9VxRSSbw= github.com/segmentio/encoding v0.1.15/go.mod h1:RWhr02uzMB9gQC1x+MfYxedtmBibb9cZ6Vv9VxRSSbw= github.com/segmentio/encoding v0.3.6 h1:E6lVLyDPseWEulBmCmAKPanDd3jiyGDo5gMcugCRwZQ= github.com/segmentio/encoding v0.3.6/go.mod h1:n0JeuIqEQrQoPDGsjo8UNd1iA0U8d8+oHAA4E3G3OxM= -github.com/segmentio/kafka-go v0.4.9/go.mod h1:BVDwBTF24avtlj4l8/xsWNb4papVeg16+jO6/0qjvhA= -github.com/segmentio/kafka-go v0.4.10/go.mod h1:BVDwBTF24avtlj4l8/xsWNb4papVeg16+jO6/0qjvhA= -github.com/segmentio/kafka-go v0.4.16/go.mod h1:19+Eg7KwrNKy/PFhiIthEPkO8k+ac7/ZYXwYM9Df10w= +github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= 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/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -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/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= github.com/spf13/afero v1.9.3 h1:41FoI0fD7OR7mGcKE/aOiLkGreyf8ifIOQmJANWogMk= github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= @@ -703,18 +431,10 @@ github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnIn github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= -github.com/spf13/viper v1.6.3/go.mod h1:jUMtyi0/lB5yZH/FjyGAoH7IMNrIhlBf6pXZmbMDvzw= -github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= github.com/spf13/viper v1.14.0 h1:Rg7d3Lo706X9tHsJMUjdiwMpHB7W8WnSVOssIY+JElU= github.com/spf13/viper v1.14.0/go.mod h1:WT//axPky3FdvXHzGw33dNdXXXfFQqmEalje+egj8As= -github.com/streadway/amqp v0.0.0-20200108173154-1c71cc93ed71/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/amqp v1.0.0 h1:kuuDrUJFZL1QYL9hUNuCxNObNzB0bV/ZG5jV3RWAQgo= -github.com/streadway/amqp v1.0.0/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= 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/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= @@ -728,62 +448,36 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs= github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= -github.com/swaggo/files v0.0.0-20190704085106-630677cd5c14/go.mod h1:gxQT6pBGRuIGunNf/+tSOB5OHvguWi8Tbt82WOkf35E= github.com/swaggo/files v0.0.0-20220728132757-551d4a08d97a h1:kAe4YSu0O0UFn1DowNo2MY5p6xzqtJ/wQ7LZynSvGaY= github.com/swaggo/files v0.0.0-20220728132757-551d4a08d97a/go.mod h1:lKJPbtWzJ9JhsTN1k1gZgleJWY/cqq0psdoMmaThG3w= -github.com/swaggo/gin-swagger v1.2.0/go.mod h1:qlH2+W7zXGZkczuL+r2nEBR2JTT+/lX05Nn6vPhc7OI= -github.com/swaggo/http-swagger v0.0.0-20200308142732-58ac5e232fba/go.mod h1:O1lAbCgAAX/KZ80LM/OXwtWFI/5TvZlwxSg8Cq08PV0= -github.com/swaggo/http-swagger v1.0.0/go.mod h1:cKIcshBU9yEAnfWv6ZzVKSsEf8h5ozxB8/zHQWyOQ/8= github.com/swaggo/http-swagger v1.3.3 h1:Hu5Z0L9ssyBLofaama21iYaF2VbWyA8jdohaaCGpHsc= github.com/swaggo/http-swagger v1.3.3/go.mod h1:sE+4PjD89IxMPm77FnkDz0sdO+p5lbXzrVWT6OTVVGo= -github.com/swaggo/swag v1.5.1/go.mod h1:1Bl9F/ZBpVWh22nY0zmYyASPO1lI/zIwRDrpZU+tv8Y= -github.com/swaggo/swag v1.6.3/go.mod h1:wcc83tB4Mb2aNiL/HP4MFeQdpHUrca+Rp/DRNgWAUio= -github.com/swaggo/swag v1.6.7/go.mod h1:xDhTyuFIujYiN3DKWC/H/83xcfHp+UE/IzWWampG7Zc= -github.com/swaggo/swag v1.7.0/go.mod h1:BdPIL73gvS9NBsdi7M1JOxLvlbfvNRaBP8m6WT6Aajo= github.com/swaggo/swag v1.8.8 h1:/GgJmrJ8/c0z4R4hoEPZ5UeEhVGdvsII4JbVDLbR7Xc= github.com/swaggo/swag v1.8.8/go.mod h1:ezQVUUhly8dludpVk+/PuwJWvLLanB13ygV5Pr9enSk= -github.com/thecodeteam/goodbye v0.0.0-20170927022442-a83968bda2d3/go.mod h1:ehwM4AFY4byYSorQbigh79cKUOUNL3pAOz5eCAQNlGI= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= github.com/ugorji/go v1.1.5-pre/go.mod h1:FwP/aQVg39TXzItUBMwnWp9T9gPQnXw4Poh4/oBQZ/0= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= -github.com/ugorji/go/codec v0.0.0-20181022190402-e5e69e061d4f/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/ugorji/go/codec v1.1.5-pre/go.mod h1:tULtS6Gy1AE1yCENaw4Vb//HLH5njI2tfCQDUqRd8fI= github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli/v2 v2.1.1/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ= github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.9.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBnvPM1Su9w= -github.com/valyala/fasthttp v1.16.0/go.mod h1:YOKImeEosDdBPnxc0gy7INqi3m1zK6A+xl6TwOBhHCA= -github.com/valyala/fasthttp v1.18.0/go.mod h1:jjraHZVbKOXftJfsOYoAjaeygpj5hr8ermTRJNroD7A= -github.com/valyala/fasthttp v1.24.0/go.mod h1:0mw2RjXGOzxf4NL2jni3gUQ7LfjjUSiG5sskOUUSEpU= github.com/valyala/fasthttp v1.43.0 h1:Gy4sb32C98fbzVWZlTM1oTMdLWGyvxR03VhM6cBIU4g= github.com/valyala/fasthttp v1.43.0/go.mod h1:f6VbjjoI3z1NDOZOv17o6RvtRSWxC77seBFc2uWtgiY= -github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= -github.com/vmihailenco/bufpool v0.1.5/go.mod h1:fL9i/PRTuS7AELqAHwSU1Zf1c70xhkhGe/cD5ud9pJk= github.com/vmihailenco/bufpool v0.1.11 h1:gOq2WmBrq0i2yW5QJ16ykccQ4wH9UyEsgLm6czKAd94= github.com/vmihailenco/bufpool v0.1.11/go.mod h1:AFf/MOy3l2CFTKbxwt0mp2MwnqjNEs5H/UxrkA5jxTQ= -github.com/vmihailenco/msgpack/v4 v4.3.5/go.mod h1:DuaveEe48abshDmz5UBKyZ+yDugvaeFk5ayfrewUOaw= -github.com/vmihailenco/msgpack/v4 v4.3.7/go.mod h1:Ii+PksJlvFT5ZRcB/4YLAInMIp6a0WOCm0L3BU0aNG4= -github.com/vmihailenco/msgpack/v4 v4.3.11/go.mod h1:gborTTJjAo/GWTqqRjrLCn9pgNN+NXzzngzBKDPIqw4= github.com/vmihailenco/msgpack/v4 v4.3.12 h1:07s4sz9IReOgdikxLTKNbBdqDMLsjPKXwvCazn8G65U= github.com/vmihailenco/msgpack/v4 v4.3.12/go.mod h1:gborTTJjAo/GWTqqRjrLCn9pgNN+NXzzngzBKDPIqw4= -github.com/vmihailenco/tagparser v0.1.0/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= github.com/vmihailenco/tagparser v0.1.2 h1:gnjoVuB/kljJ5wICEEOpx98oXMWPLj22G67Vbd1qPqc= github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= -github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= -github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= @@ -791,74 +485,36 @@ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHo github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU= go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4= -go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.opentelemetry.io/otel v0.5.0/go.mod h1:jzBIgIzK43Iu1BpDAXwqOd6UPsSAk+ewVZ5ofSXw4Ek= -go.opentelemetry.io/otel v0.15.0/go.mod h1:e4GKElweB8W2gWUqbghw0B8t5MCTccc9212eNHnOHwA= -go.opentelemetry.io/otel v0.19.0/go.mod h1:j9bF567N9EfomkSidSfmMwIwIBuP37AMAIzVW85OxSg= -go.opentelemetry.io/otel/metric v0.19.0/go.mod h1:8f9fglJPRnXuskQmKpnad31lcLJ2VmNNqIsx/uIwBSc= -go.opentelemetry.io/otel/oteltest v0.19.0/go.mod h1:tI4yxwh8U21v7JD6R3BcA/2+RBoTKFexE/PJ/nSO7IA= -go.opentelemetry.io/otel/trace v0.19.0/go.mod h1:4IXiNextNOpPnRlI4ryK69mn5iC84bjBWZQA5DXz/qg= -go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10 h1:z+mqJhf6ss6BSfSM671tgKyZBFPTTJM+HLxnhPC3wu0= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -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/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= 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.14.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= -go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180910181607-0e37d006457b/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/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-20190506204251-e1dfcc566284/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191029031824-8986dd9e96cf/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20191128160524-b544559bb6d1/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200206161412-a0c6ece9d31a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= -golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.3.0 h1:a06MkbcxBrEFc0w0QIZWXrH/9cCX6KJyWbBOIwAn+7A= @@ -898,37 +554,27 @@ 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/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.7.0 h1:LapD9S96VoQRhi/GrNTqeBJFrUjs5UHCAtTlgwA5oZA= 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-20181005035420-146acd28ed58/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-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-20190420063019-afa5a82059c6/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190611141213-3f473d35a33a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 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-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222033325-078779b8f2d8/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/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-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -938,24 +584,17 @@ golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201016165138-7b1cca2348c0/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201207224615-747e23833adb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210226101413-39120d07d75e/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220906165146-f3363e06e74c/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= @@ -970,9 +609,6 @@ golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 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= @@ -983,16 +619,11 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/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/sync v0.0.0-20210220032951-036812b2e83c/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-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181228144115-9a3f9b0469bb/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-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1000,21 +631,14 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w 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-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190523142557-0e01d883c5c5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190610200419-93c9922d18ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1030,37 +654,24 @@ golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200810151505-1b9f1253b3ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200828194041-157a740278f4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200831180312-196b9ba8737a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210507014357-30e306a8bba5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211013075003-97ac67df715c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211110154304-99a53858aa08/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1069,7 +680,6 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1086,25 +696,18 @@ golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/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-20220609170525-579cf78fd858 h1:Dpdu/EMxGMFgq0CeYMh4fazTD2vtlZRYE7wyynxJb9U= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/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-20181030221726-6c7e314b6563/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-20190312151545-0bb0c0a6e846/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-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606050223-4d9ae51c2468/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190611222205-d73e1c7e250b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 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-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -1112,7 +715,6 @@ golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtn 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-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -1126,7 +728,6 @@ golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapK golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200220224806-8a925fa4c0df/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= @@ -1136,26 +737,20 @@ golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200826040757-bc8aaaa29e06/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200828161849-5deb26317202/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= golang.org/x/tools v0.0.0-20200915173823-2db8f0ff891c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20200918232735-d647fc253266/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201120155355-20be4ac4bd6e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208062317-e652b2f42cc7/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.3.0 h1:SrNbZl6ECOS1qFzgTdQfWXZM9XBkiA6tkFrH9YSTPHM= golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1183,9 +778,6 @@ google.golang.org/api v0.32.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= -google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1202,8 +794,6 @@ google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRn google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191009194640-548a555dbc03/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= @@ -1211,17 +801,14 @@ google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvx google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200211111953-2dc5924e3898/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200413115906-b5235f65be36/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= @@ -1237,21 +824,13 @@ google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= -google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6 h1:a2S6M0+660BgMNl++4JPlcAO/CjkqYItDEZwkoDQK7c= google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 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.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= 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= @@ -1262,13 +841,9 @@ google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= google.golang.org/grpc v1.51.0 h1:E1eGv1FTqoLIdnBCZufiSHgKjlqG6fKFf6pPWtMTh8U= google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= @@ -1291,19 +866,14 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= 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/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y= -gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -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.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -1316,26 +886,18 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -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-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/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= -honnef.co/go/tools v0.0.1-2020.1.2/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= mellium.im/sasl v0.2.1/go.mod h1:ROaEDLQNuf9vjKqE1SrAfnsobm2YKXT1gnN1uDp1PjQ= mellium.im/sasl v0.3.0 h1:0qoaTCTo5Py7u/g0cBIQZcMOgG/5LM71nshbXwznBh8= mellium.im/sasl v0.3.0/go.mod h1:xm59PUYpZHhgQ9ZqoJ5QaCqzWMi8IeS49dhp6plPCzw= -nhooyr.io/websocket v1.7.4/go.mod h1:PxYxCwFdFYQ0yRvtQz3s/dC+VEm7CSuC/4b9t8MQQxw= -nhooyr.io/websocket v1.8.4/go.mod h1:LiqdCg1Cu7TPWxEvPjPa0TGYxCsy4pHNTN9gGluwBpQ= -nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= nhooyr.io/websocket v1.8.7 h1:usjR2uOr/zjjkVMy0lW+PPohFok7PCow5sDjLgX4P4g= nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= diff --git a/main.go b/main.go index ffa40c5..e335b8a 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,6 @@ import ( "isp-config-service/codes" "isp-config-service/conf" "isp-config-service/controller" - _ "isp-config-service/docs" "isp-config-service/helper" "isp-config-service/holder" "isp-config-service/model" diff --git a/migrations_temp/00001_2018-04-05_create_schema.sql b/migrations_temp/00001_2018-04-05_create_schema.sql deleted file mode 100644 index 091ab13..0000000 --- a/migrations_temp/00001_2018-04-05_create_schema.sql +++ /dev/null @@ -1,5 +0,0 @@ --- +goose Up -CREATE schema if NOT EXISTS "config_service"; - --- +goose Down -DROP schema if EXISTS config_service CASCADE; \ No newline at end of file diff --git a/migrations_temp/00002_2018-04-05_create_instances_table.sql b/migrations_temp/00002_2018-04-05_create_instances_table.sql deleted file mode 100644 index c2ef082..0000000 --- a/migrations_temp/00002_2018-04-05_create_instances_table.sql +++ /dev/null @@ -1,47 +0,0 @@ --- +goose Up -CREATE TABLE instances ( - id serial4 NOT NULL PRIMARY KEY, - uuid UUID NOT NULL, - "name" varchar(255) NOT NULL, - created_at timestamp DEFAULT (now() at time zone 'utc') NOT NULL -); - --- +goose StatementBegin -CREATE OR REPLACE FUNCTION update_created_modified_column_date() - RETURNS TRIGGER AS -$body$ -BEGIN - IF TG_OP = 'UPDATE' THEN - NEW.created_at = OLD.created_at; - NEW.updated_at = (now() at time zone 'utc'); - ELSIF TG_OP = 'INSERT' THEN - NEW.updated_at = (now() at time zone 'utc'); - END IF; - RETURN NEW; -END; -$body$ LANGUAGE plpgsql; --- +goose StatementEnd - --- +goose StatementBegin -CREATE OR REPLACE FUNCTION update_created_column_date() - RETURNS TRIGGER AS -$body$ -BEGIN - IF TG_OP = 'UPDATE' THEN - NEW.created_at = OLD.created_at; - ELSIF TG_OP = 'INSERT' THEN - NEW.created_at = (now() at time zone 'utc'); - END IF; - RETURN NEW; -END; -$body$ LANGUAGE plpgsql; --- +goose StatementEnd - -CREATE TRIGGER update_customer_modtime BEFORE INSERT OR UPDATE ON instances - FOR EACH ROW EXECUTE PROCEDURE update_created_column_date(); - -ALTER TABLE instances ADD CONSTRAINT "UQ_instances_uuid" UNIQUE ("uuid"); - - --- +goose Down -DROP TABLE instances; diff --git a/migrations_temp/00003_2018-04-05_create_modules_table.sql b/migrations_temp/00003_2018-04-05_create_modules_table.sql deleted file mode 100644 index 43f4ed5..0000000 --- a/migrations_temp/00003_2018-04-05_create_modules_table.sql +++ /dev/null @@ -1,24 +0,0 @@ --- +goose Up -CREATE TABLE modules ( - id serial4 NOT NULL PRIMARY KEY, - instance_id int4 NOT NULL, - "name" varchar(255) NOT NULL, - "active" bool DEFAULT true, - created_at timestamp DEFAULT (now() at time zone 'utc') NOT NULL, - last_connected_at timestamp, - last_disconnected_at timestamp -); - -ALTER TABLE modules - ADD CONSTRAINT "FK_modules_instanceId_instances_id" - FOREIGN KEY ("instance_id") REFERENCES instances ("id") - ON DELETE CASCADE ON UPDATE CASCADE; -CREATE INDEX IX_modules_instanceId ON modules USING hash (instance_id); - -CREATE TRIGGER update_customer_modtime BEFORE INSERT OR UPDATE ON modules - FOR EACH ROW EXECUTE PROCEDURE update_created_column_date(); - -ALTER TABLE modules ADD CONSTRAINT "UQ_modules_instanceId_name" UNIQUE ("instance_id", "name"); - --- +goose Down -DROP TABLE modules; diff --git a/migrations_temp/00004_2018-04-05_create_configs_table.sql b/migrations_temp/00004_2018-04-05_create_configs_table.sql deleted file mode 100644 index 672cf30..0000000 --- a/migrations_temp/00004_2018-04-05_create_configs_table.sql +++ /dev/null @@ -1,70 +0,0 @@ --- +goose Up -CREATE TABLE configs ( - id serial8 NOT NULL PRIMARY KEY, - module_id int4 NOT NULL, - "version" int4 NOT NULL, - "active" bool DEFAULT false, - created_at timestamp DEFAULT (now() at time zone 'utc') NOT NULL, - updated_at timestamp DEFAULT (now() at time zone 'utc') NOT NULL, - "data" jsonb NOT NULL DEFAULT '{}' -); - -ALTER TABLE configs - ADD CONSTRAINT "FK_configs_moduleId_modules_id" - FOREIGN KEY ("module_id") REFERENCES modules ("id") - ON DELETE CASCADE ON UPDATE CASCADE; - -CREATE INDEX IX_configs_moduleId ON configs USING hash (module_id); - --- +goose StatementBegin -CREATE OR REPLACE FUNCTION deactivate_config() - RETURNS TRIGGER AS -$body$ -DECLARE - last_version integer; -BEGIN - NEW.updated_at = (now() at time zone 'utc'); - IF TG_OP = 'INSERT' - THEN - EXECUTE format(' - SELECT version - FROM %I.configs - WHERE module_id = ' || NEW.module_id || ' - ORDER BY created_at DESC - LIMIT 1; - ', TG_TABLE_SCHEMA) INTO last_version; - IF last_version IS NOT NULL - THEN - NEW.version = last_version + 1; - ELSE - NEW.version = 1; - END IF; - ELSE - NEW.version = OLD.version; - NEW.created_at = OLD.created_at; - END IF; - - IF NEW.active = TRUE - THEN - EXECUTE format(' - UPDATE %I.configs - SET active = FALSE, - updated_at = (now() at time zone ''utc'') - WHERE active = TRUE AND ' || NEW.id || ' != id AND module_id = ' || NEW.module_id || '; - ', TG_TABLE_SCHEMA); - END IF; - RETURN NEW; -END; -$body$ LANGUAGE plpgsql; --- +goose StatementEnd - -CREATE TRIGGER "deactivate_config" - BEFORE INSERT OR UPDATE ON configs - FOR EACH ROW EXECUTE PROCEDURE deactivate_config(); - -CREATE TRIGGER update_config_create_time BEFORE INSERT OR UPDATE ON configs - FOR EACH ROW EXECUTE PROCEDURE update_created_column_date(); - --- +goose Down -DROP TABLE configs; -DROP FUNCTION deactivate_config; diff --git a/migrations_temp/00005_2018-06-14_add_default_instance.sql b/migrations_temp/00005_2018-06-14_add_default_instance.sql deleted file mode 100644 index a34223c..0000000 --- a/migrations_temp/00005_2018-06-14_add_default_instance.sql +++ /dev/null @@ -1,6 +0,0 @@ --- +goose Up -INSERT INTO instances VALUES (1, 'bf482806-0c3d-4e0d-b9d4-12c037b12d70', 'main', NULL); -SELECT setval(pg_get_serial_sequence('instances', 'id'), 2, FALSE); - --- +goose Down -DELETE FROM instances WHERE id=1 diff --git a/migrations_temp/00006_2018-06-14_add_default_system_modules.sql b/migrations_temp/00006_2018-06-14_add_default_system_modules.sql deleted file mode 100644 index 5974380..0000000 --- a/migrations_temp/00006_2018-06-14_add_default_system_modules.sql +++ /dev/null @@ -1,10 +0,0 @@ --- +goose Up -INSERT INTO modules VALUES (1, 1, 'auth', 't', NULL, NULL, NULL); -INSERT INTO modules VALUES (2, 1, 'converter', 't', NULL, NULL, NULL); -INSERT INTO modules VALUES (3, 1, 'router', 't', NULL, NULL, NULL); -INSERT INTO modules VALUES (4, 1, 'system', 't', NULL, NULL, NULL); -INSERT INTO modules VALUES (5, 1, 'admin', 't', NULL, NULL, NULL); -SELECT setval(pg_get_serial_sequence('modules', 'id'), 6, FALSE); - --- +goose Down -DELETE FROM modules WHERE id IN (1,2,3,4,5); diff --git a/migrations_temp/00007_2018-06-14_add_default_modules.sql b/migrations_temp/00007_2018-06-14_add_default_modules.sql deleted file mode 100644 index b3dce86..0000000 --- a/migrations_temp/00007_2018-06-14_add_default_modules.sql +++ /dev/null @@ -1,11 +0,0 @@ --- +goose Up -INSERT INTO modules VALUES (6, 1, 'user', 't', NULL, NULL, NULL); -INSERT INTO modules VALUES (7, 1, 'mobile', 't', NULL, NULL, NULL); -INSERT INTO modules VALUES (8, 1, 'awip', 't', NULL, NULL, NULL); -INSERT INTO modules VALUES (9, 1, 'mongo-backend', 't', NULL, NULL, NULL); -INSERT INTO modules VALUES (10, 1, 'sql-backend', 't', NULL, NULL, NULL); -INSERT INTO modules VALUES (11, 1, 'events', 't', NULL, NULL, NULL); -SELECT setval(pg_get_serial_sequence('modules', 'id'), 12, FALSE); - --- +goose Down -DELETE FROM modules WHERE id IN (6,7,8,9,10,11); diff --git a/migrations_temp/00008_2018-06-14_add_default_system_module_configs.sql b/migrations_temp/00008_2018-06-14_add_default_system_module_configs.sql deleted file mode 100644 index 8b83bcc..0000000 --- a/migrations_temp/00008_2018-06-14_add_default_system_module_configs.sql +++ /dev/null @@ -1,58 +0,0 @@ --- +goose Up -set migration.db_host = 'msk-pgsql.isp.mobi'; -set migration.db_port = '5432'; -set migration.db_dbname = 'isp-alpha'; -set migration.db_user = 'isp-alpha'; -set migration.db_pass = 'JxY96xLF8zfh3g8EWvSDtLUBw'; - -set migration.redis_host = '10.250.9.117'; -set migration.redis_port = '6379'; - --- auth -INSERT INTO configs VALUES (1, 1, NULL, 't', NULL, NULL, ('{"redis": {' || - '"ip": "' || current_setting('migration.redis_host') || '", ' || - '"port": ' || current_setting('migration.redis_port') || - '}, "header": {"token": {"user": "X-USER-TOKEN", "device": "X-DEVICE-TOKEN", "application": "X-APPLICATION-TOKEN"}, "identity": {"user": "X-USER-IDENTITY", "device": "X-DEVICE-IDENTITY", "domain": "X-DOMAIN-IDENTITY", "system": "X-SYSTEM-IDENTITY", "service": "X-SERVICE-IDENTITY", "application": "X-APPLICATION-IDENTITY"}}, "unauthorized.html": "

401 Unauthorized BAD CREDENTIALS

"}')::jsonb); --- converter -INSERT INTO configs VALUES (2, 2, NULL, 't', NULL, NULL, ('{"metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9553"}}}')::jsonb); --- router -INSERT INTO configs VALUES (3, 3, NULL, 't', NULL, NULL, ('{"database": {' || - '"port": "' || current_setting('migration.db_port') || '", ' || - '"schema": "admin_service", ' || - '"address": "' || current_setting('migration.db_host') || '", ' || - '"database": "' || current_setting('migration.db_dbname') || '", ' || - '"password": "' || current_setting('migration.db_pass') || '", ' || - '"username": "' || current_setting('migration.db_user') || '", ' || - '"createSchema": true}, ' || - '"metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9554"}}' || - '}')::jsonb); --- system -INSERT INTO configs VALUES (4, 4, NULL, 't', NULL, NULL, ('{"db": {' || - '"port": "' || current_setting('migration.db_port') || '", ' || - '"schema": "system_service", ' || - '"address": "' || current_setting('migration.db_host') || '", ' || - '"database": "' || current_setting('migration.db_dbname') || '", ' || - '"password": "' || current_setting('migration.db_pass') || '", ' || - '"username": "' || current_setting('migration.db_user') || '", ' || - '"createSchema": true}, "RedisAddress": {' || - '"ip": "' || current_setting('migration.redis_host') || '", ' || - '"port": "' || current_setting('migration.redis_port') || '"' || - '}, ' || - '"metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9555"}}' || - '}')::jsonb); --- admin -INSERT INTO configs VALUES (5, 5, NULL, 't', NULL, NULL, ('{"database": {' || - '"port": "' || current_setting('migration.db_port') || '", ' || - '"schema": "admin_service", ' || - '"address": "' || current_setting('migration.db_host') || '", ' || - '"database": "' || current_setting('migration.db_dbname') || '", ' || - '"password": "' || current_setting('migration.db_pass') || '", ' || - '"username": "' || current_setting('migration.db_user') || '", ' || - '"createSchema": true}, ' || - '"metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9557"}}' || - '}')::jsonb); - -SELECT setval(pg_get_serial_sequence('configs', 'id'), 6, FALSE); - --- +goose Down -DELETE FROM configs WHERE id IN (1,2,3,4,5) diff --git a/migrations_temp/00009_2018-06-14_add_default_configs.sql b/migrations_temp/00009_2018-06-14_add_default_configs.sql deleted file mode 100644 index 00d8972..0000000 --- a/migrations_temp/00009_2018-06-14_add_default_configs.sql +++ /dev/null @@ -1,127 +0,0 @@ --- +goose Up -set migration.db_host = 'msk-pgsql.isp.mobi'; -set migration.db_port = '5432'; -set migration.db_dbname = 'isp-alpha'; -set migration.db_user = 'isp-alpha'; -set migration.db_pass = 'JxY96xLF8zfh3g8EWvSDtLUBw'; - -set migration.redis_host = '10.250.9.117'; -set migration.redis_port = '6379'; - --- user -INSERT INTO configs VALUES (6, 6, NULL, 't', NULL, NULL, (format('{ - "metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9556"}}, - "database": { - "username": "%s", - "createSchema": true, - "port": "%s", - "schema": "user_service", - "address": "%s", - "database": "%s", - "password": "%s" - }, - "redisAddress": { - "ip": "%s", - "port": "%s" - }, - "userTokenExpireMs": -1, - "authSmsSystemSender": "", - "authSmsTextTemplate": "Your code {{code}}", - "deviceTokenExpireMs": -1, - "authSmsShortCodeLength": 4, - "authSmsShortCodeExpireMs": 300000 -}', current_setting('migration.db_user'), - current_setting('migration.db_port'), - current_setting('migration.db_host'), - current_setting('migration.db_dbname'), - current_setting('migration.db_pass'), - current_setting('migration.redis_host'), - current_setting('migration.redis_port') -)) :: jsonb); --- mobile -INSERT INTO configs VALUES (7, 7, NULL, 't', NULL, NULL, ('{"database": {' || - '"port": "' || current_setting('migration.db_port') || '", ' || - '"schema": "mobile_service", ' || - '"address": "' || current_setting('migration.db_host') || '", ' || - '"database": "' || current_setting('migration.db_dbname') || '", ' || - '"password": "' || current_setting('migration.db_pass') || '", ' || - '"username": "' || current_setting('migration.db_user') || '", ' || - '"createSchema": true}, ' || - '"metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9562"}}' || - '}')::jsonb); --- awip -INSERT INTO configs VALUES (8, 8, NULL, 't', NULL, NULL, '{ - "backends": [ - { - "id": "450e754f-aafb-4a9c-8d87-23c6a2da9833", - "url": "http://{{ cname }}-nginx.isp.mobi:18888/ru.isp.starter.awip.backend.ws/backend?wsdl", - "name": "citymatica_user_new", - "wrapList": true, - "createDate": "2018-09-07T09:41:03.853Z", - "clientPoolSize": 0, - "requestTimeout": 30000, - "systemIdentity": "1" - }, - { - "id": "74d76314-b28b-11e8-96f8-529269fb1459", - "url": "http://{{ cname }}-nginx.isp.mobi:18880/ru.mp.storage.backend.ws/backend?wsdl", - "name": "citymatica_user_old", - "wrapList": true, - "createDate": "2018-09-07T09:41:03.853Z", - "clientPoolSize": 0, - "requestTimeout": 30000, - "systemIdentity": "1" - }, - { - "id": "74d7659e-b28b-11e8-96f8-529269fb1459", - "url": "http://{{ cname }}-nginx.isp.mobi:18890/ru.isp.starter.awip.backend.ws/backend?wsdl", - "name": "citymatica_user_object_storage", - "wrapList": true, - "createDate": "2018-09-07T09:41:03.853Z", - "clientPoolSize": 0, - "requestTimeout": 30000, - "systemIdentity": "1" - }, - { - "id": "74d75cc0-b28b-11e8-96f8-529269fb1459", - "url": "http://{{ cname }}-nginx.isp.mobi:18891/ru.isp.starter.awip.backend.ws/backend?wsdl", - "name": "citymatica_user_events", - "wrapList": true, - "createDate": "2018-09-07T09:41:03.853Z", - "clientPoolSize": 0, - "requestTimeout": 30000, - "systemIdentity": "1" - }, - { - "id": "d5575047-6588-46d9-be58-b487d42d217c", - "url": "http://{{ cname }}-nginx.isp.mobi:18889/ru.isp.starter.awip.backend.ws/backend?wsdl", - "name": "citymatica_operator", - "wrapList": true, - "createDate": "2018-09-07T09:41:03.853Z", - "clientPoolSize": 0, - "requestTimeout": 30000, - "systemIdentity": "1" - }, - { - "id": "74d76094-b28b-11e8-96f8-529269fb1459", - "url": "http://{{ cname }}-nginx.isp.mobi:18895/ru.isp.starter.awip.backend.ws/backend?wsdl", - "name": "citymatica_operator_metrics", - "wrapList": true, - "createDate": "2018-09-07T09:41:03.853Z", - "clientPoolSize": 0, - "requestTimeout": 30000, - "systemIdentity": "1" - } - ] -}'); --- mongo-backend -INSERT INTO configs VALUES (9, 9, NULL, 't', NULL, NULL, '{"connections": [],"metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9563"}}}'); --- sql-backend -INSERT INTO configs VALUES (10, 10, NULL, 't', NULL, NULL, '{"connections": [], "metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9566"}}}'); --- events -INSERT INTO configs VALUES (11, 11, NULL, 't', NULL, NULL, '{"eventRoutes": [{"handlers": {}, "applicationGroupId": 1}, {"handlers": {}, "applicationGroupId": 5}], "queueEndpoints": []}'); - -SELECT setval(pg_get_serial_sequence('configs', 'id'), 12, FALSE); - --- +goose Down -DELETE FROM configs WHERE id IN (6,7,8,9,10,11) diff --git a/migrations_temp/00010_2018-07-31_add_name_for_configs.sql b/migrations_temp/00010_2018-07-31_add_name_for_configs.sql deleted file mode 100644 index 4f29754..0000000 --- a/migrations_temp/00010_2018-07-31_add_name_for_configs.sql +++ /dev/null @@ -1,9 +0,0 @@ --- +goose Up -ALTER TABLE configs - ADD COLUMN name VARCHAR(255) NOT NULL DEFAULT 'unnamed', - ADD COLUMN description TEXT; - --- +goose Down -ALTER TABLE configs - DROP COLUMN name, - DROP COLUMN description; diff --git a/migrations_temp/00011_2018-07-31_config_sheme_table.sql b/migrations_temp/00011_2018-07-31_config_sheme_table.sql deleted file mode 100644 index d6d3d97..0000000 --- a/migrations_temp/00011_2018-07-31_config_sheme_table.sql +++ /dev/null @@ -1,23 +0,0 @@ --- +goose Up -CREATE TABLE config_schemas ( - id SERIAL4 PRIMARY KEY, - module_id INTEGER NOT NULL, - version VARCHAR(255) NOT NULL, - schema JSONB NOT NULL DEFAULT '{}', - created_at TIMESTAMP NOT NULL DEFAULT (now() at time zone 'utc'), - updated_at TIMESTAMP NOT NULL DEFAULT (now() at time zone 'utc'), - CONSTRAINT FK_module_id__module_id FOREIGN KEY (module_id) - REFERENCES modules (id) ON UPDATE CASCADE ON DELETE CASCADE -); - -CREATE TRIGGER update_schema_create_time - BEFORE INSERT OR UPDATE - ON config_schemas - FOR EACH ROW EXECUTE PROCEDURE update_created_column_date(); - -CREATE INDEX IX_schemes_moduleId - ON config_schemas - USING hash (module_id); - --- +goose Down -DROP TABLE config_schemas; diff --git a/migrations_temp/00012_2018-08-17_add_default_template_module_config.sql b/migrations_temp/00012_2018-08-17_add_default_template_module_config.sql deleted file mode 100644 index b5deb19..0000000 --- a/migrations_temp/00012_2018-08-17_add_default_template_module_config.sql +++ /dev/null @@ -1,43 +0,0 @@ --- +goose Up -set migration.db_host = 'msk-pgsql.isp.mobi'; -set migration.db_port = '5432'; -set migration.db_dbname = 'isp-alpha'; -set migration.db_user = 'isp-alpha'; -set migration.db_pass = 'JxY96xLF8zfh3g8EWvSDtLUBw'; - -WITH moduleVar AS ( - INSERT INTO modules (instance_id, name, active) VALUES (1, 'template', 't') RETURNING id -) - -INSERT INTO configs (module_id, active, data) VALUES ( - (SELECT id FROM moduleVar), - 't', - ('{"database": {' || - '"port": "' || current_setting('migration.db_port') || '", ' || - '"schema": "template_service", ' || - '"address": "' || current_setting('migration.db_host') || '", ' || - '"database": "' || current_setting('migration.db_dbname') || '", ' || - '"password": "' || current_setting('migration.db_pass') || '", ' || - '"username": "' || current_setting('migration.db_user') || '", ' || - '"createSchema": true}, "defaultLanguage": "en", ' || - '"metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9567"}}' || - '}')::jsonb); - -WITH moduleVar AS ( - INSERT INTO modules (instance_id, name, active) VALUES (1, 'message-bundle', 't') RETURNING id -) -INSERT INTO configs (module_id, active, data) VALUES ( - (SELECT id FROM moduleVar), - 't', - ('{"database": {' || - '"port": "' || current_setting('migration.db_port') || '", ' || - '"schema": "message_bundle_service", ' || - '"address": "' || current_setting('migration.db_host') || '", ' || - '"database": "' || current_setting('migration.db_dbname') || '", ' || - '"password": "' || current_setting('migration.db_pass') || '", ' || - '"username": "' || current_setting('migration.db_user') || '", ' || - '"createSchema": true}, "defaultLanguage": "en", ' || - '"metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9560"}}' || - '}')::jsonb); - --- +goose Down diff --git a/migrations_temp/00013_2018-08-29_add_default_config_for_senders.sql b/migrations_temp/00013_2018-08-29_add_default_config_for_senders.sql deleted file mode 100644 index 85b3a44..0000000 --- a/migrations_temp/00013_2018-08-29_add_default_config_for_senders.sql +++ /dev/null @@ -1,88 +0,0 @@ --- +goose Up -set migration.nats_host = '10.250.9.117'; -set migration.nats_port = '4223'; -set migration.nats_cluster_id = 'test-cluster'; - -WITH moduleVar AS (INSERT INTO modules (instance_id, name, active) VALUES (1, 'mobile-push', 't') RETURNING id) -INSERT INTO configs (module_id, active, data) -VALUES ((SELECT id FROM moduleVar), 't', ( - format('{ - "metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9561"}}, - "firebaseConfig": { - "token_uri": "https://accounts.google.com/o/oauth2/token", - "client_id": "115553569331708875508", - "auth_uri": "https://accounts.google.com/o/oauth2/auth", - "client_email": "firebase-adminsdk-f70qo@test-ccdab.iam.gserviceaccount.com", - "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCM7Rl7AmGQSOxx\nUdQs+yY7cwaUmqi2khmsre0/kfJU2zCJxotbYNeyfWJZk3D8hngxnmI6hrYqWEq3\nyy/J8rhI7AmcY3eXC1yyL/sKTClFjyZVEoDcBWTn0HOuM8YAQAqRAx2vznKDquoj\nLgUHl09qTxsVRmPdfc7fKE45OZBdetA/kdIEd4S5J+CKeYB7tpuT+0eL4QUNOzE1\n6SGqYnhA97QD7K3ylhWxKC8U0Ozyqub/OTg7WRLEYV36Z+6Ok0BZkYiCXbUNukST\nXaKc8DGAFrzcu7jW8rJIRZ/uc/Im5judjuMRznzu1SMPVT6pL8HfduGFc23FIAL/\nGjmcDwWbAgMBAAECggEAETe6oDvHPcCbGrE7sg8xOZwxFqDasguhlWZekSC8sb9h\n68NVLWHkmIsXJAiOilvHfZBzQeFJilzlLBVoDk1YVJh6CCBi8RJTTfXsvvJVLIlz\nznsHQVprXKMsLwFmVIt+fv8ZdmxLs2iDWK77sFS9QCjQD0ZdVydSyhL7k6RDzhfP\nw6It0H3JyyqD8W7DOvYSUfi/oZKZvufBAkEauhuiVVyite97cJtV8YNmiVCznOtK\nOw0OpuzemKez0rh673VtEEvUgrvOy5WNtjunoRkNKZkW1JiAWYpf6FpOOFub/lG3\nQPFwjLZeEUa8xc/E2JJP6HQMON0qF5zvtKr4QH/9uQKBgQDByXfLh+56Cu+6E0CL\nigH0GmagwZQnw7/+zhi1AhC2DjxAmXq9Y0kFrmpwr6FXqtRJm5AANOipASsRknaq\n5kAlDCGdqHnw1LDlNbrxywDvTYADo13ebx2cXfxESDfx0gofXehGhfFfOyXJ0lwp\ngXbgxIQFNjv2QWjSdb637ZaOrQKBgQC6KzmZcMAWo7j+eGo0WoAVTCVu/SDcV/sG\nF4+NxhLjMYSuMbBF7BdMy1rJ6g3SrdULGzw0KDeEqo1XzneOyzHOnEiZFKTkgIPQ\n347fWOYTBKMNEJd37jAIHKrrFiyD/pvL2ZLu1mSnCHsi/v5u02gqpf8Vkvwo/5ME\n4BuhB/PWZwKBgQC7V0adl+rfR0VcURJcE+4xi3hdvua4zpAFCD9wde+r4PU0ymuT\nPbGxcV1rVQ8YTojuJBrBaGToRb3aPgrEytWGO0UgQmiofyYIYLo62LMtpXG1krDD\nwg4RRfcEGAEloZWxnzpXO1QOaYLtqpT4dzVys+ihlT3AoplwpO3cqC6d/QKBgEGu\nkmnSX9Mc/F27eizyaRIahXJ9GCTlXYkustUgNvW1OMyEd16UBzxu2p82Vp4n+mwq\ntbjpH31M9wUtsPzOL8pnVS29HNgJh3ggB7ZBFRtMnYI0glwrywJxqtO6RQZkw+7N\n2ostVOGhmmAkevv61luFqVOhQhns4Z/suZK8zYitAoGAHwLWUQViCy0HFkhED5GV\nWrZZFRH2ucpK+ljOp7dbbUPA+dTD2qu/hho3QCaT5odJWap42TbSL6YhZg/7jN7h\nOSQW8DiDPzjUtL1gfqOxJdQavrgR2a2AW054loM0R508699Vx6Hir/ayD4nZ9IUo\nm2meeJVZcknz/L9LXOOIUBk=\n-----END PRIVATE KEY-----\n", - "private_key_id": "88d1af761304de758388747d72931c3457df54ef", - "project_id": "test-ccdab", - "type": "service_account", - "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", - "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-f70qo%%40test-ccdab.iam.gserviceaccount.com" - }, - "concurrentSendersCount": 6, - "natsConfig": { - "address": { - "port": "%s", - "ip": "%s" - }, - "clusterId": "%s" - } -}', current_setting('migration.nats_port'), - current_setting('migration.nats_host'), - current_setting('migration.nats_cluster_id') -)) :: jsonb); - -WITH moduleVar AS (INSERT INTO modules (instance_id, name, active) VALUES (1, 'sms', 't') RETURNING id) -INSERT INTO configs (module_id, active, data) -VALUES ((SELECT id FROM moduleVar), 't', (format('{ - "natsConfig": { - "clusterId": "%s", - "address": { - "ip": "%s", - "port": "%s" - } - }, - "smppClients": [ - { - "default": true, - "poolSize": 1, - "connection": { - "password": "1q2w3e!", - "user": "isp", - "address": { - "ip": "5.187.0.65", - "port": "9931" - } - }, - "ResponseTimeoutMs": 5000, - "concurrentSendersCount": 2, - "name": "smsc" - } - ], - "metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9565"}} -}', current_setting('migration.nats_cluster_id'), - current_setting('migration.nats_host'), - current_setting('migration.nats_port') -)) :: jsonb); - -WITH moduleVar AS (INSERT INTO modules (instance_id, name, active) VALUES (1, 'email', 't') RETURNING id) -INSERT INTO configs (module_id, active, data) -VALUES ((SELECT id FROM moduleVar), 't', (format('{ - "natsConfig": { - "clusterId": "%s", - "address": { - "ip": "%s", - "port": "%s" - } - }, - "smtpClients": [ - - ], - "metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9558"}} -}', current_setting('migration.nats_cluster_id'), - current_setting('migration.nats_host'), - current_setting('migration.nats_port') -)) :: jsonb); - --- +goose Down diff --git a/migrations_temp/00014_2018-08-29_add_default_config_for_fs_rest.sql b/migrations_temp/00014_2018-08-29_add_default_config_for_fs_rest.sql deleted file mode 100644 index 64d5ad8..0000000 --- a/migrations_temp/00014_2018-08-29_add_default_config_for_fs_rest.sql +++ /dev/null @@ -1,27 +0,0 @@ --- +goose Up -WITH moduleVar AS (INSERT INTO modules (instance_id, name, active) VALUES (1, 'file-storage', 't') -RETURNING id) -INSERT INTO configs (module_id, active, data) -VALUES ((SELECT id FROM moduleVar), 't', '{ - "imageSizeList": [ - 75, - 130, - 200, - 320, - 510, - 604, - 807 - ], - "rootDirectory": "./files/", - "maxRequestBodySizeInBytes": 1073741824, - "metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9559"}} -}' :: jsonb); - -WITH moduleVar AS (INSERT INTO modules (instance_id, name, active) VALUES (1, 'rest-backend', 't') -RETURNING id) -INSERT INTO configs (module_id, active, data) -VALUES ((SELECT id FROM moduleVar), 't', '{ - "backends": [], "metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9564"}} -}' :: jsonb); - --- +goose Down diff --git a/migrations_temp/00015_2018-10-05_add_default_config_for_mdm_module.sql b/migrations_temp/00015_2018-10-05_add_default_config_for_mdm_module.sql deleted file mode 100644 index 365af45..0000000 --- a/migrations_temp/00015_2018-10-05_add_default_config_for_mdm_module.sql +++ /dev/null @@ -1,54 +0,0 @@ --- +goose Up -set migrationRead.db_host = 'msk-pgsql.isp.mobi'; -set migrationRead.db_port = '5432'; -set migrationRead.db_dbname = 'isp-alpha'; -set migrationRead.db_user = 'isp-alpha'; -set migrationRead.db_pass = 'JxY96xLF8zfh3g8EWvSDtLUBw'; - -set migrationWrite.db_host = 'msk-pgsql.isp.mobi'; -set migrationWrite.db_port = '5432'; -set migrationWrite.db_dbname = 'isp-alpha'; -set migrationWrite.db_user = 'isp-alpha'; -set migrationWrite.db_pass = 'JxY96xLF8zfh3g8EWvSDtLUBw'; - -set migrationNotification.db_host = 'msk-pgsql.isp.mobi'; -set migrationNotification.db_port = '5432'; -set migrationNotification.db_dbname = 'isp-alpha'; -set migrationNotification.db_user = 'isp-alpha'; -set migrationNotification.db_pass = 'JxY96xLF8zfh3g8EWvSDtLUBw'; - -WITH moduleVar AS ( - INSERT INTO modules (instance_id, name, active) VALUES (1, 'mdm', 't') RETURNING id -) - -INSERT INTO configs (module_id, active, data) VALUES ( - (SELECT id FROM moduleVar), - 't', - ('{"databaseRead": {' || - '"port": "' || current_setting('migrationRead.db_port') || '", ' || - '"schema": "mdm_service", ' || - '"address": "' || current_setting('migrationRead.db_host') || '", ' || - '"database": "' || current_setting('migrationRead.db_dbname') || '", ' || - '"password": "' || current_setting('migrationRead.db_pass') || '", ' || - '"username": "' || current_setting('migrationRead.db_user') || '", ' || - '"createSchema": true},' || - '"metrics": {"gc": true, "memory": true, "address": {"ip": "0.0.0.0", "path": "/metrics", "port": "9568"}},' || - '"databaseWrite": {' || - '"port": "' || current_setting('migrationWrite.db_port') || '", ' || - '"schema": "mdm_service", ' || - '"address": "' || current_setting('migrationWrite.db_host') || '", ' || - '"database": "' || current_setting('migrationWrite.db_dbname') || '", ' || - '"password": "' || current_setting('migrationWrite.db_pass') || '", ' || - '"username": "' || current_setting('migrationWrite.db_user') || '", ' || - '"createSchema": true},' || - '"databaseNotifications": {' || - '"port": "' || current_setting('migrationNotification.db_port') || '", ' || - '"schema": "mdm_service", ' || - '"address": "' || current_setting('migrationNotification.db_host') || '", ' || - '"database": "' || current_setting('migrationNotification.db_dbname') || '", ' || - '"password": "' || current_setting('migrationNotification.db_pass') || '", ' || - '"username": "' || current_setting('migrationNotification.db_user') || '", ' || - '"createSchema": true}}')::jsonb); - --- +goose Down - diff --git a/migrations_temp/00016_2018-11-07_add_default_config_for_mdm_notify_module.sql b/migrations_temp/00016_2018-11-07_add_default_config_for_mdm_notify_module.sql deleted file mode 100644 index e53a7c5..0000000 --- a/migrations_temp/00016_2018-11-07_add_default_config_for_mdm_notify_module.sql +++ /dev/null @@ -1,90 +0,0 @@ --- +goose Up -set migration.nats_host = '10.250.9.117'; -set migration.nats_port = '4223'; -set migration.nats_cluster_id = 'test-cluster'; - -set migration.rabbit_host = '10.250.9.117'; -set migration.rabbit_port = '5672'; -set migration.rabbit_user = 'guest'; -set migration.rabbit_password = 'guest'; -set migration.rabbit_system_queue_prefix = 'test'; - -WITH moduleVar AS ( - INSERT INTO modules (instance_id, name, active) VALUES (1, 'mdm-notify', 't') RETURNING id -) - -INSERT INTO configs (module_id, active, data) VALUES ( - (SELECT id FROM moduleVar), - 't', - ('{ - "notifyConfigurations":[], - "logger": { - "sendAddRequestSudirV1IsOn": true, - "sendFindRequestSudirV1IsOn": true, - "sendUpdateRequestSudirV1IsOn": true, - "sendUpdateRequestSudirV2IsOn": true, - "creatingSystemNotificationsIsOn": true, - "sendErlRequestQueueIsOn": true, - "sendJsonRequestQueueIsOn": true, - "syncLogger": { - "enable": false, - "filename": "/opt/isp/isp-mdm-notify-service/events_logs/events.log.gz" - }, - "asyncLogger": { - "enable": false, - "nats": { - "address": { - "ip": "mdm-taxcom-test-nats.isp.mobi", - "port": "4222" - }, - "clusterId": "work-cluster" - } - }, - "sendAddRequestSudirV1IsOn": true - }, - "metrics":{ - "gc": true, - "memory": true, - "address": { - "port": "9572", - "ip": "0.0.0.0", - "path": "/metrics" - } - }, - "rabbit": { - "routingKey": "notification", - "exchangeName": "notifications", - "systemQueuesPrefix": "' || current_setting('migration.rabbit_system_queue_prefix') || '", - "declareQueueAndExchange": true, - "password": "' || current_setting('migration.rabbit_password') || '", - "user": "' || current_setting('migration.rabbit_user') || '", - "address": { - "ip": "' || current_setting('migration.rabbit_host') || '", - "port": "' || current_setting('migration.rabbit_port') || '" - } - "queue": { - "name": "notifier.queue", - "prefetchCount": 1000 - }, - }, - "logRabbitEnabled": true, - "logRabbit": { - "address": { - "ip": "10.250.9.50", - "port": "5672" - }, - "password": "ohk7athXehev3aiGfic2ZeiD", - "routingKey": "mdm-taxcom-test.notify.log", - "exchangeName": "mdm-taxcom-test.notify.log", - "systemQueuesPrefix": "mdm-taxcom-test", - "declareQueueAndExchange": true, - "user": "isp", - "queue": { - "name": "mdm-taxcom-test.notify.log.queue", - "prefetchCount": 300 - } - } - }')::jsonb); - --- +goose Down - diff --git a/migrations_temp/00017_2018-11-07_add_default_config_for_mdm_converter_module.sql b/migrations_temp/00017_2018-11-07_add_default_config_for_mdm_converter_module.sql deleted file mode 100644 index ca2ea62..0000000 --- a/migrations_temp/00017_2018-11-07_add_default_config_for_mdm_converter_module.sql +++ /dev/null @@ -1,105 +0,0 @@ --- +goose Up -WITH moduleVar AS ( - INSERT INTO modules (instance_id, name, active) VALUES (1, 'mdm-notify', 't') RETURNING id -) - -INSERT INTO configs (module_id, active, data) VALUES ( - (SELECT id FROM moduleVar), - 't', - ('{ - "rules": { - "1": [ - "etalon_id", - "last_name", - "$$documents.#passport", - "vehicles", - "addresses" - ] - }, - "mappingSchema": { - "$$documents.1000019.ref_num": "DRIVER_LICENSE.DriverLicense", - "gkupays.mesmeter": "[]HOUSE.MesMeterNumber", - "$$documents.1000016.start_dt": "PASSPORT_RF.PassportIssueDate", - "$$addresses.1000009.moscow_district_id": "[]REG_ADDRESS.RegAddressDistrictId", - "$$addresses.7.unom": "[]ADDRESS.RealAddressUnom", - "$$addresses.1000009.unom": "[]REG_ADDRESS.RegAddressUnom", - "$$addresses.1000009.moscow_area_ext_id": "[]REG_ADDRESS.RegAddressAreaId", - "$$addresses.7.moscow_area_ext_id": "[]ADDRESS.RealAddressAreaId", - "$$escredentials.1000004.etalon_id": "[]OLYMPIAD.OlympiadId", - "last_name": "FIO.LastName", - "vehicles.reg_number": "[]VEHICLE.VehicleRegistrationNumber", - "$$contacts.1.ref_num": "REG_DATA.Phone", - "$$addresses.7.corpus_no": "[]ADDRESS.RealAddressCorpus", - "$$users.NOT_SSO.id_value": "USER.LoginName", - "$$addresses.7.residence_num": "[]ADDRESS.RealAddressFlat", - "$$users.SSO.id_value": "USER.LoginName", - "birth_place_line_one": "PASSPORT_RF.PassportBirthPlace", - "$$addresses.7.house_no": "[]ADDRESS.RealAddressHouse", - "$$addresses.1000009.street_name_ex": "[]REG_ADDRESS.RegAddressStreet", - "gkupays.mesaccount": "[]HOUSE.MesAccountNumber", - "vehicles.etalon_id": "[]VEHICLE.VehicleId", - "$$addresses.7.street_id": "[]ADDRESS.RealAddressStreetId", - "$$documents.1000014.ref_num": "COMPLEX_OMS.oms", - "$$addresses.1000009.stroenie_no": "[]REG_ADDRESS.RegAddressBuilding", - "$$addresses.7.moscow_district_id": "[]ADDRESS.RealAddressDistrictId", - "$$addresses.7.unad": "[]ADDRESS.RealAddressUnad", - "vehicles.pts_number": "[]VEHICLE.VehiclePTSNumber", - "$$documents.1000016.identification_issuer": "PASSPORT_RF.PassportIssuer", - "etalon_id": "USER.LoginName", - "$$addresses.1000009.street_id": "[]REG_ADDRESS.RegAddressStreetId", - "$$escredentials.1000003.etalon_id": "[]GIA.GIAId", - "$$addresses.1000009.moscow_district_name": "[]REG_ADDRESS.RegAddressDistrict", - "given_name_one": "FIO.FirstName", - "vehicles.vin_number": "[]VEHICLE.VehicleVin", - "$$escredentials.1000004.login": "[]OLYMPIAD.OlympiadLogin", - "$$escredentials.1000003.doc_number": "[]GIA.GIADocNumber", - "$$addresses.1000009.moscow_area_name": "[]REG_ADDRESS.RegAddressArea", - "gkupays.gkupay_address_rel": "[]HOUSE.EpdAddressId", - "$$addresses.7.building_name": "[]ADDRESS.RealAddressHouseId", - "$$addresses.7.moscow_area_name": "[]ADDRESS.RealAddressArea", - "$$addresses.7.moscow_district_name": "[]ADDRESS.RealAddressDistrict", - "gender_tp_code": "PERSON.Gender", - "$$addresses.7.stroenie_no": "[]ADDRESS.RealAddressBuilding", - "$$documents.1000013.ref_num": "TAX_INFO.INN", - "$$addresses.1000009.building_name": "[]REG_ADDRESS.RegAddressHouseId", - "$$escredentials.1000004.description": "[]OLYMPIAD.OlympiadComment", - "birth_dt": "PERSON.Birthday", - "gkupays.epd": "[]HOUSE.EpdAddressNumber", - "$$addresses.1000009.house_no": "[]REG_ADDRESS.RegAddressHouse", - "$$addresses.1000009.street_omk": "[]REG_ADDRESS.RegAddressStreetOMK", - "$$citizen_relatives.OTHERS.etalon_id": "[]RELATIVES.RltvId", - "vehicles.stsnumber": "[]VEHICLE.VehicleSTSNumber", - "vehicles.description": "[]VEHICLE.VehicleDescription", - "$$addresses.1000009.unad": "[]REG_ADDRESS.RegAddressUnad", - "$$escredentials.1000004.password": "[]OLYMPIAD.OlympiadPassword", - "gkupays.phone": "[]HOUSE.EpdAddressCityPhone", - "$$addresses.7.street_omk": "[]ADDRESS.RealAddressStreetOMK", - "$$documents.1000019.start_dt": "DRIVER_LICENSE.DriverLicenseIssueDate", - "$$addresses.1000009.corpus_no": "[]REG_ADDRESS.RegAddressCorpus", - "$$citizen_relatives.1000004.etalon_id": "[]CHILDREN.ChildId", - "$$documents.1000016.identification_issuer_code": "PASSPORT_RF.PassportIssuerCode", - "$$escredentials.1000003.login": "[]GIA.GIARegCode", - "$$addresses.1000009.residence_num": "[]REG_ADDRESS.RegAddressFlat", - "given_name_two": "FIO.MiddleName", - "$$contacts.2.ref_num": "REG_DATA.Email", - "$$documents.1000015.ref_num": "SNILS.snils", - "$$documents.1000016.ref_num": "PASSPORT_RF.PassportNumber", - "$$addresses.7.street_name_ex": "[]ADDRESS.RealAddressStreet", - "$$documents.1000014.etalon_id": "COMPLEX_OMS.OmsId", - "$$escredentials.1000003.description": "[]GIA.GIAComment", - "$$citizen_relatives.1000003.etalon_id": "[]CHILDREN.ChildId", - "$$documents.1000016.identification_passport_birth_place": "PASSPORT_RF.PassportBirthPlace" - }, - "metrics": { - "memory": true, - "address": { - "path": "/metrics", - "port": "9571", - "ip": "0.0.0.0" - }, - "gc": true - } - }')::jsonb); - --- +goose Down - diff --git a/migrations_temp/00018_2018-11-07_add_default_config_for_mdm_adapter_module.sql b/migrations_temp/00018_2018-11-07_add_default_config_for_mdm_adapter_module.sql deleted file mode 100644 index 7087f49..0000000 --- a/migrations_temp/00018_2018-11-07_add_default_config_for_mdm_adapter_module.sql +++ /dev/null @@ -1,66 +0,0 @@ --- +goose Up -set migration.nats_host = '10.250.9.117'; -set migration.nats_port = '4223'; -set migration.nats_cluster_id = 'test-cluster'; - -set migration.rabbit_host = '10.250.9.117'; -set migration.rabbit_port = '5672'; -set migration.rabbit_user = 'guest'; -set migration.rabbit_password = 'guest'; - - -WITH moduleVar AS ( - INSERT INTO modules (instance_id, name, active) VALUES (1, 'mdm-notify', 't') RETURNING id -) - -INSERT INTO configs (module_id, active, data) VALUES ( - (SELECT id FROM moduleVar), - 't', - ('{ - "isNatsLoggerEnabled": false, - "nats": { - "address": { - "port": "' || current_setting('migration.nats_port') || '", - "ip": "' || current_setting('migration.nats_host') || '" - }, - "clusterId": "' || current_setting('migration.nats_cluster_id') || '" - }, - "queue": { - "init": { - "concurrentConsumers": 8, - "name": "init", - "prefetchCount": 10 - }, - "tempQueue": { - "name": "tempt", - "prefetchCount": 10, - "concurrentConsumers": 128 - }, - "defaultQueue": { - "concurrentConsumers": 128, - "name": "events", - "prefetchCount": 10 - } - }, - "rabbit": { - "password": "' || current_setting('migration.rabbit_password') || '", - "reconnectionTimeoutMs": 0, - "user": "' || current_setting('migration.rabbit_user') || '", - "address": { - "ip": "' || current_setting('migration.rabbit_host') || '", - "port": "' || current_setting('migration.rabbit_port') || '" - } - }, - "metrics": { - "memory": true, - "address": { - "path": "/metrics", - "port": "9569", - "ip": "0.0.0.0" - }, - "gc": true - } -}')::jsonb); - --- +goose Down - diff --git a/migrations_temp/00019_2018-11-07_add_default_config_for_mdm_api_module.sql b/migrations_temp/00019_2018-11-07_add_default_config_for_mdm_api_module.sql deleted file mode 100644 index a34d0d4..0000000 --- a/migrations_temp/00019_2018-11-07_add_default_config_for_mdm_api_module.sql +++ /dev/null @@ -1,14 +0,0 @@ --- +goose Up -WITH moduleVar AS ( - INSERT INTO modules (instance_id, name, active) VALUES (1, 'mdm-api', 't') RETURNING id -) - -INSERT INTO configs (module_id, active, data) VALUES ( - (SELECT id FROM moduleVar), - 't', - ('{' || - '"pKAttributeName": "id"' || - '}')::jsonb); - --- +goose Down - diff --git a/migrations_temp/00020_2018-11-23_add_default_config_for_mdm_search_module.sql b/migrations_temp/00020_2018-11-23_add_default_config_for_mdm_search_module.sql deleted file mode 100644 index adc350a..0000000 --- a/migrations_temp/00020_2018-11-23_add_default_config_for_mdm_search_module.sql +++ /dev/null @@ -1,61 +0,0 @@ --- +goose Up -set rabbit.host = '10.250.9.117'; -set rabbit.port = '5672'; -set rabbit.user = 'guest'; -set rabbit.password = 'guest'; - -set elastic.url = 'http://10.250.9.48:9200'; - -WITH moduleVar AS ( - INSERT INTO modules (instance_id, name, active) VALUES (1, 'mdm-search', 't') RETURNING id -) - -INSERT INTO configs (module_id, active, data) VALUES ( - (SELECT id FROM moduleVar), - 't', - ((format('{ - "queue": { - "prefetchSize": 1000, - "searcherQueue": "searcher.queue", - "concurrentConsumers": 4 - }, - "rabbit": { - "user": "%s", - "address": { - "ip": "%s", - "port": "%s" - }, - "password": "%s" - }, - "elastic": { - "uRL": "%s", - "shards": 1 - }, - "metrics": { - "address": { - "ip": "0.0.0.0", - "path": "/metrics", - "port": "9573" - }, - "gc": true, - "memory": true - }, - "isFieldsListWhite": false, - "fieldsList": [ - "documents", - "citizen_relatives", - "contacts", - "addresses", - "escredentials", - "users" - ] -}', current_setting('rabbit.user'), - current_setting('rabbit.host'), - current_setting('rabbit.port'), - current_setting('rabbit.password'), - - current_setting('elastic.url') -)) :: jsonb)); - --- +goose Down - diff --git a/model/instance.go b/model/instance.go deleted file mode 100644 index 35ff25c..0000000 --- a/model/instance.go +++ /dev/null @@ -1,73 +0,0 @@ -package model - -import ( - "isp-config-service/entity" - - "github.com/go-pg/pg" - "github.com/go-pg/pg/orm" -) - -type InstanceRepository struct { - DB orm.DB -} - -func (r *InstanceRepository) GetInstances(identities []int32) ([]entity.Instance, error) { - var instances []entity.Instance - var err error - if len(identities) > 0 { - err = r.DB.Model(&instances). - Where("id IN (?)", pg.In(identities)). - Order("created_at DESC"). - Limit(500). - Select() - } else { - err = r.DB.Model(&instances). - Order("created_at DESC"). - Limit(500). - Select() - } - return instances, err -} - -func (r *InstanceRepository) CreateInstance(instance entity.Instance) (entity.Instance, error) { - _, err := r.DB.Model(&instance). - Returning("id"). - Returning("created_at"). - Insert() - return instance, err -} - -func (r *InstanceRepository) UpdateInstance(instance entity.Instance) (entity.Instance, error) { - _, err := r.DB.Model(&instance).WherePK(). - Returning("id"). - Returning("created_at"). - Update() - return instance, err -} - -func (r *InstanceRepository) DeleteInstance(identities []int32) (int, error) { - result, err := r.DB.Exec("DELETE FROM "+schema+".instances WHERE id IN (?)", pg.In(identities)) - return result.RowsAffected(), err -} - -func (r *InstanceRepository) GetInstanceById(identity int32) (entity.Instance, error) { - var module entity.Instance - err := r.DB.Model(&module). - Where("id = ?", identity). - First() - if err != nil && err == pg.ErrNoRows { - return module, nil - } - return module, err -} - -func (r *InstanceRepository) GetInstanceByUuid(instanceUuid string) (entity.Instance, error) { - var instance entity.Instance - err := r.DB.Model(&instance). - Where("uuid = ?", instanceUuid). - First() - if err != nil && err == pg.ErrNoRows { - return instance, nil - } - return instance, err -} diff --git a/model/root.go b/model/root.go deleted file mode 100644 index 34d90d0..0000000 --- a/model/root.go +++ /dev/null @@ -1,24 +0,0 @@ -package model - -import ( - "github.com/go-pg/pg" -) - -var ( - schema = "" - ConfigRep ConfigRepository - ModulesRep ModulesRepository - InstanceRep InstanceRepository - SchemaRep SchemaRepository -) - -func SetSchema(s string) { - schema = s -} - -func InitDbManager(db *pg.DB) { - ConfigRep = ConfigRepository{db} - ModulesRep = ModulesRepository{db} - InstanceRep = InstanceRepository{db} - SchemaRep = SchemaRepository{db} -} diff --git a/module/moduleService.go b/module/moduleService.go deleted file mode 100644 index 23218ba..0000000 --- a/module/moduleService.go +++ /dev/null @@ -1,134 +0,0 @@ -package module - -import ( - "github.com/integration-system/isp-lib/config" - "isp-config-service/conf" - "isp-config-service/domain" - st "isp-config-service/entity" - "isp-config-service/model" - "isp-config-service/socket" - "sort" - "time" -) - -var ( - startAt = time.Now() - Version = "0.1.0" -) - -func GetAggregatedModuleInfo(instanceUuid string) ([]*domain.ModuleInfo, error) { - modules, err := model.ModulesRep.GetModulesByInstanceUuid(instanceUuid) - if err != nil { - return nil, err - } - config := config.Get().(*conf.Configuration) - modules = append(modules, st.Module{ - Id: -1, - Name: config.ModuleName, - Active: true, - CreatedAt: startAt, - InstanceId: -1, - }) - l := len(modules) - res := make([]*domain.ModuleInfo, l) - m := make(map[int32]*domain.ModuleInfo, l) - idList := make([]int32, l) - for i, module := range modules { - idList[i] = module.Id - info := &domain.ModuleInfo{ - Id: module.Id, - Name: module.Name, - Active: module.Active, - CreatedAt: module.CreatedAt, - LastConnectedAt: module.LastConnectedAt, - LastDisconnectedAt: module.LastDisconnectedAt, - } - m[module.Id] = info - res[i] = info - } - - configs, err := model.ConfigRep.GetConfigsByModulesId(idList) - if err != nil { - return nil, err - } - for _, cfg := range configs { - info := m[cfg.ModuleId] - info.Configs = append(info.Configs, cfg) - } - - schemas, err := model.SchemaRep.GetSchemasByModulesId(idList) - if err != nil { - return nil, err - } - for _, s := range schemas { - info := m[s.ModuleId] - schema := s.Schema - info.ConfigSchema = &schema - } - - connMap := socket.GetModuleConnectionIdMapByInstanceId(instanceUuid) - routes := socket.GetRoutes().Routes - //converters := socket.GetConverters() - //routers := socket.GetRouters() - roomsStat := socket.GetRoomsCount() - for _, info := range res { - if info.Id == -1 { - info.Status = append(info.Status, domain.Connection{ - Address: config.GrpcOuterAddress, - Version: Version, - Endpoints: socket.ConfigServiceBackendDeclaration.Endpoints, - LibVersion: socket.ConfigServiceBackendDeclaration.LibVersion, - EstablishedAt: startAt, - }) - } else if conns, connected := connMap[info.Name]; connected { - for _, conId := range conns { - hasRoutes := false - var data *domain.Connection - if backend, ok := routes[conId]; ok { - data = &domain.Connection{ - Version: backend.Version, - LibVersion: backend.LibVersion, - Address: backend.Address, - Endpoints: backend.Endpoints, - } - - hasRoutes = true - } else if roomsStat[instanceUuid][info.Name] <= 0 { - continue - } - if c, ok := socket.GetConnectionById(instanceUuid, conId); ok { - if !hasRoutes { - data = &domain.Connection{ - Version: "unknown", - } - /*if router, ok := routers[conId]; ok { - data.Address = router - } else if converter, ok := converters[conId]; ok { - data.Address = converter - }*/ - } - - data.EstablishedAt = c.EstablishedAt - } - - info.Status = append(info.Status, *data) - } - } - } - - for _, s := range res { - sort.Slice(s.Status, func(i, j int) bool { - return s.Status[i].EstablishedAt.Before(s.Status[j].EstablishedAt) - }) - for _, con := range s.Status { - sort.Slice(con.Endpoints, func(i, j int) bool { - return con.Endpoints[i].Path < con.Endpoints[j].Path - }) - } - } - sort.Slice(res, func(i, j int) bool { - return res[i].Name < res[j].Name - }) - - return res, nil -} diff --git a/proto/backend_service.proto b/proto/backend_service.proto deleted file mode 100644 index 3037bee..0000000 --- a/proto/backend_service.proto +++ /dev/null @@ -1,28 +0,0 @@ -syntax = "proto3"; -// /home/andrey/Applications/protoc/bin/protoc -I ./ proto/system.proto --go_out=plugins=grpc:./ -option java_multiple_files = true; -option java_package = "io.grpc.convertService"; -option java_outer_classname = "ConvertServiceProto"; - -package isp; - -import "google/api/annotations.proto"; -import "google/protobuf/struct.proto"; - -message Message { - oneof body { - google.protobuf.Struct structBody = 1; - google.protobuf.ListValue listBody = 2; - google.protobuf.NullValue NullBody = 3; - } -} - -service BackendService { - // ===== SYSTEM ===== - rpc Request (Message) returns (Message) { - option (google.api.http) = { - post: "/api" - body: "*" - }; - } -} diff --git a/proto/backend_service.swagger.json b/proto/backend_service.swagger.json deleted file mode 100644 index 8569d81..0000000 --- a/proto/backend_service.swagger.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "proto/backend_service.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/api": { - "post": { - "summary": "===== SYSTEM =====", - "operationId": "Request", - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/ispMessage" - } - } - }, - "parameters": [ - { - "name": "Grpc-Metadata-proxy_method_name", - "in": "header", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ispMessage" - } - } - ], - "tags": [ - "BackendService" - ] - } - } - }, - "definitions": { - "ispMessage": { - "type": "object", - "properties": { - "structBody": { - "$ref": "#/definitions/protobufStruct" - }, - "listBody": { - "$ref": "#/definitions/protobufListValue" - }, - "NullBody": { - "$ref": "#/definitions/protobufNullValue" - } - } - }, - "protobufListValue": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Repeated field of dynamically typed values." - } - }, - "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "protobufStruct": { - "type": "object", - "properties": { - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Unordered map of dynamically typed values." - } - }, - "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." - }, - "protobufValue": { - "type": "object", - "properties": { - "null_value": { - "$ref": "#/definitions/protobufNullValue", - "description": "Represents a null value." - }, - "number_value": { - "type": "number", - "format": "double", - "description": "Represents a double value." - }, - "string_value": { - "type": "string", - "description": "Represents a string value." - }, - "bool_value": { - "type": "boolean", - "format": "boolean", - "description": "Represents a boolean value." - }, - "struct_value": { - "$ref": "#/definitions/protobufStruct", - "description": "Represents a structured value." - }, - "list_value": { - "$ref": "#/definitions/protobufListValue", - "description": "Represents a repeated `Value`." - } - }, - "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." - } - } -} diff --git a/proto/config_service.proto b/proto/config_service.proto deleted file mode 100644 index d23b696..0000000 --- a/proto/config_service.proto +++ /dev/null @@ -1,164 +0,0 @@ -syntax = "proto3"; -// /home/andrey/Applications/protoc/bin/protoc -I ./ proto/system.proto --go_out=plugins=grpc:./ -option java_multiple_files = true; -option java_package = "io.grpc.configService"; -option java_outer_classname = "ConfigServiceProto"; - -package config.service; - -import "google/api/annotations.proto"; -import "google/protobuf/struct.proto"; - -service ConfigService { - // ===== INSTANCE ===== - rpc GetInstances (RequestByIdentities) returns (InstancesResponse) { - option (google.api.http) = { - post: "/api/instances" - body: "*" - }; - } - - rpc CreateUpdateInstance (Instance) returns (Instance) { - option (google.api.http) = { - post: "/api/instances/save" - body: "*" - }; - } - - rpc DeleteInstance (RequestByIdentities) returns (DeleteResponse) { - option (google.api.http) = { - post: "/api/instances/delete" - body: "*" - }; - } - // ===== INSTANCE END ===== - - // ===== MODULE ===== - rpc GetModules (RequestByIdentities) returns (ModulesResponse) { - option (google.api.http) = { - post: "/api/modules" - body: "*" - }; - } - - rpc GetActiveModules (Empty) returns (ModulesResponse) { - option (google.api.http).get = "/api/modules/actives"; - } - - rpc CreateUpdateModule (Module) returns (Module) { - option (google.api.http) = { - post: "/api/modules/save" - body: "*" - }; - } - - rpc DeleteModule (RequestByIdentities) returns (DeleteResponse) { - option (google.api.http) = { - post: "/api/modules/delete" - body: "*" - }; - } - - rpc GetConnectedModules (Empty) returns (ConnectedModules) { - option (google.api.http).get = "/api/modules/connected"; - } - // ===== MODULE END ===== - - // ===== CONFIG ===== - rpc GetConfigs (RequestByIdentities) returns (ConfigsResponse) { - option (google.api.http) = { - post: "/api/configs" - body: "*" - }; - } - - rpc GetConfigByInstanceUUIDAndModuleName (RequestConfig) returns (Config) { - option (google.api.http).get = "/api/configs_by_module_names/{name}"; - } - - rpc CreateUpdateConfig (Config) returns (Config) { - option (google.api.http) = { - post: "/api/configs/save" - body: "*" - }; - } - - rpc DeleteConfig (RequestByIdentities) returns (DeleteResponse) { - option (google.api.http) = { - post: "/api/configs/delete" - body: "*" - }; - } - - rpc MarkConfigAsActive (RequestByLongIdentity) returns (Config) { - option (google.api.http) = { - post: "/api/configs/active" - body: "*" - }; - } - // ===== CONFIG END ===== -} - -message RequestByLongIdentity { - int64 id = 1; -} - -message RequestByIdentities { - repeated int32 ids = 1; -} - -message RequestConfig { - string instanceUuid = 1; - string name = 2; -} - -message ConnectedModules { - google.protobuf.Struct items = 1; -} - -message Instance { - int32 id = 1; - string uuid = 2; - string name = 3; - string createdAt = 4; -} - -message Module { - int32 id = 1; - int32 instanceId = 2; - string name = 3; - bool active = 4; - string createdAt = 5; - string lastConnectedAt = 6; - string lastDisconnectedAt = 7; -} - -message Config { - int64 id = 1; - int32 moduleId = 2; - int32 version = 3; - bool active = 4; - string createdAt = 5; - string updatedAt = 6; - google.protobuf.Struct data = 7; -} - -message InstancesResponse { - repeated Instance items = 1; -} - -message ModulesResponse { - repeated Module items = 1; -} - -message ConfigsResponse { - repeated Config items = 1; -} - -message DeleteResponse { - int32 deleted = 1; -} - -message Empty { - -} diff --git a/service/routerTable.go b/service/routerTable.go deleted file mode 100644 index fdbf5af..0000000 --- a/service/routerTable.go +++ /dev/null @@ -1,63 +0,0 @@ -package service - -import ( - "sync" - - libSt "github.com/integration-system/isp-lib/structure" -) - -type RouterTables struct { - Routes map[string]libSt.BackendDeclaration - sync.RWMutex -} - -func (routerTables *RouterTables) DeleteRoute(socketId string) bool { - routerTables.Lock() - defer routerTables.Unlock() - - changed := false - for k := range (*routerTables).Routes { - if k == socketId { - delete((*routerTables).Routes, k) - changed = true - } - } - return changed -} - -func (routerTables *RouterTables) GetRoutes() *libSt.RoutingConfig { - routerTables.RLock() - defer routerTables.RUnlock() - - var routes = libSt.RoutingConfig{} - for _, v := range (*routerTables).Routes { - routes = append(routes, v) - } - return &routes -} - -func (routerTables *RouterTables) AddAddressOrUpdate(socketId string, backendConfig libSt.BackendDeclaration) bool { - routerTables.Lock() - defer routerTables.Unlock() - - exists := false - changed := false - for k, v := range (*routerTables).Routes { - if k == socketId { - if !v.IsPathsEqual(backendConfig.Endpoints) { - (*routerTables).Routes[socketId] = backendConfig - changed = true - } - exists = true - } - } - if !exists { - if (*routerTables).Routes != nil { - (*routerTables).Routes[socketId] = backendConfig - } else { - (*routerTables).Routes = map[string]libSt.BackendDeclaration{socketId: backendConfig} - } - changed = true - } - return changed -} diff --git a/service/socketService.go b/service/socketService.go deleted file mode 100644 index 81913da..0000000 --- a/service/socketService.go +++ /dev/null @@ -1,88 +0,0 @@ -package service - -import ( - "errors" - "fmt" - "net/url" - "time" - - "isp-config-service/entity" - "isp-config-service/model" - - "github.com/integration-system/isp-lib/logger" - "github.com/integration-system/isp-lib/utils" -) - -func Disonnect(instanceUuid string, moduleName string) error { - err := model.ModulesRep.UpdateModuleDisconnect(instanceUuid, moduleName) - if err != nil { - logger.Warn(err) - return errors.New(utils.ServiceError) - } - return nil -} - -func NewConnection(instanceUuid string, moduleName string) (*entity.Config, error) { - - instance, err := model.InstanceRep.GetInstanceByUuid(instanceUuid) - if err != nil { - logger.Error(err) - return nil, errors.New(utils.ServiceError) - } - if instance.Id == 0 { - return nil, errors.New(fmt.Sprintf("The instance with uuid: %s not found", instanceUuid)) - } - module, err := model.ModulesRep.GetModuleByInstanceIdAndName(instance.Id, moduleName) - if err != nil { - logger.Error(err) - return nil, errors.New(utils.ServiceError) - } - if module.Id == 0 { - module.Name = moduleName - module.InstanceId = instance.Id - module.LastConnectedAt = time.Now() - module, err = model.ModulesRep.CreateModule(module) - if err != nil { - logger.Error(err) - return nil, errors.New(utils.ServiceError) - } - } else { - module.LastConnectedAt = time.Now() - module, err = model.ModulesRep.UpdateModule(module) - if err != nil { - logger.Error(err) - return nil, errors.New(utils.ServiceError) - } - } - - return GetConfig(instanceUuid, moduleName) -} - -func GetConfig(instanceUuid string, moduleName string) (*entity.Config, error) { - config, err := model.ConfigRep.GetConfigByInstanceUUIDAndModuleName(instanceUuid, moduleName) - if err != nil { - logger.Error(err) - return nil, errors.New(utils.ServiceError) - } - if config == nil { - errorMessage := "Active config for " + instanceUuid + ":" + moduleName + " not found" - logger.Warn(errorMessage) - return nil, errors.New(errorMessage) - } - return config, nil -} - -func ParseParameters(queryRaw string) (instanceUUID string, moduleName string, error error) { - parsedParams, _ := url.ParseQuery(queryRaw) - moduleName = parsedParams.Get("module_name") - instanceUuid := parsedParams.Get("instance_uuid") - if moduleName == "" || instanceUuid == "" || !utils.IsValidUUID(instanceUuid) { - err := fmt.Sprintf("SocketIO not received all parameters, module_name: %s, instance_uuid: %s", - moduleName, - instanceUuid, - ) - logger.Debug(err) - return "", "", errors.New(err) - } - return instanceUuid, moduleName, nil -} diff --git a/socket/broadcaster.go b/socket/broadcaster.go deleted file mode 100644 index ac6c0de..0000000 --- a/socket/broadcaster.go +++ /dev/null @@ -1,99 +0,0 @@ -package socket - -import ( - "github.com/googollee/go-socket.io" - "github.com/integration-system/isp-lib/utils" - "sync" - "time" -) - -const ( - defaultTimeout = 1 * time.Second -) - -type Record struct { - data interface{} - future *time.Timer -} - -type broadcaster struct { - Server *socketio.Server - AwaitNewRecordTimeout time.Duration - - configMap map[string]*Record - routesMap map[string]*Record - converterMap map[string]*Record - routerMap map[string]*Record - - configLock sync.Mutex - routesLock sync.Mutex - converterLock sync.Mutex - routerLock sync.Mutex -} - -func (b *broadcaster) BroadcastConfig(moduleKey string, data interface{}, callback func(data interface{})) { - b.doBroadcast(moduleKey, data, utils.ConfigSendConfigChanged, &b.configLock, b.configMap, callback) -} - -func (b *broadcaster) BroadcastRoutes(instanceId string, data interface{}, callback func(data interface{})) { - b.doBroadcast(instanceId, data, utils.ConfigSendRoutesChanged, &b.routesLock, b.routesMap, callback) -} - -/*func (b *broadcaster) BroadcastConverterAddressList(instanceId string, data interface{}, callback func(data interface{})) { - b.doBroadcast(instanceId, data, utils.SendNewConverterConnected, &b.converterLock, b.converterMap, callback) -} - -func (b *broadcaster) BroadcastRouterAddressList(instanceId string, data interface{}, callback func(data interface{})) { - b.doBroadcast(instanceId, data, utils.SendNewRouterConnected, &b.routerLock, b.routerMap, callback) -}*/ - -func (b *broadcaster) doBroadcast( - key string, - data interface{}, - event string, - lock *sync.Mutex, - store map[string]*Record, - callback func(data interface{}), -) { - lock.Lock() - defer lock.Unlock() - - if r, present := store[key]; present { - r.data = data - if r.future.Stop() { - r.future.Reset(b.AwaitNewRecordTimeout) - } - } else { - r := &Record{ - data: data, - } - r.future = time.AfterFunc(b.AwaitNewRecordTimeout, func() { - lock.Lock() - if r.data != nil { - b.Server.BroadcastTo(key, event, r.data) - if callback != nil { - callback(r.data) - } - } - delete(store, key) - lock.Unlock() - }) - - store[key] = r - } -} - -func NewBroadcaster(server *socketio.Server, awaitNewRecordTimeout time.Duration) *broadcaster { - timeout := awaitNewRecordTimeout - if timeout <= 0 { - timeout = defaultTimeout - } - return &broadcaster{ - Server: server, - AwaitNewRecordTimeout: timeout, - configMap: map[string]*Record{}, - routesMap: map[string]*Record{}, - converterMap: map[string]*Record{}, - routerMap: map[string]*Record{}, - } -} diff --git a/socket/discovery.go b/socket/discovery.go deleted file mode 100644 index 613a9e3..0000000 --- a/socket/discovery.go +++ /dev/null @@ -1,154 +0,0 @@ -package socket - -import ( - "encoding/json" - "github.com/cenkalti/backoff" - "github.com/googollee/go-socket.io" - "github.com/integration-system/isp-lib/logger" - "github.com/integration-system/isp-lib/structure" - "github.com/integration-system/isp-lib/utils" - "sync" - "time" -) - -var ( - discoverersMap = make(map[string]*Discoverer) - discoverersLock sync.RWMutex -) - -type channelIdList []string - -type Discoverer struct { - subs map[string]channelIdList - instanceId string - lock sync.RWMutex -} - -func (d *Discoverer) OnDisconnection(channelId string) { - d.lock.Lock() - defer d.lock.Unlock() - - newSubs := make(map[string]channelIdList, len(d.subs)) - - for event, list := range d.subs { - newList := make(channelIdList, 0) - for _, id := range list { - if id != channelId { - newList = append(newList, id) - } - } - if len(newList) > 0 { - newSubs[event] = newList - } - } - - d.subs = newSubs -} - -func (d *Discoverer) Subscribe(events []string, socket socketio.Socket) { - if len(events) == 0 { - return - } - channelId := socket.Id() - - d.lock.Lock() - defer d.lock.Unlock() - - connectedModulesEvents := getConnectedModulesEventMap(d.instanceId) - - for _, event := range events { - if list, ok := d.subs[event]; ok { - d.subs[event] = append(list, channelId) - } else { - d.subs[event] = []string{channelId} - } - - if addrList, ok := connectedModulesEvents[event]; ok { - d.sendAddrList(socket, event, addrList) - } - } -} - -func (d *Discoverer) BroadcastModuleAddresses(moduleName string) { - d.lock.RLock() - defer d.lock.RUnlock() - - event := utils.ModuleConnected(moduleName) - connectedModulesEvents := getConnectedModulesEventMap(d.instanceId) - addrList := connectedModulesEvents[event] - channelList, channelListPresent := d.subs[event] - if channelListPresent { - for _, id := range channelList { - if s, ok := GetConnectionById(d.instanceId, id); ok { - d.sendAddrList(s, event, addrList) - } - } - } -} - -func (d *Discoverer) sendAddrList(socket socketio.Socket, event string, addressList []structure.AddressConfiguration) { - if addressList == nil { - addressList = []structure.AddressConfiguration{} - } - if bytes, err := json.Marshal(addressList); err != nil { - logger.Warn(err) - } else { - bf := backoff.WithMaxRetries(backoff.NewConstantBackOff(100*time.Millisecond), 3) - err := backoff.Retry(func() error { - return socket.Emit(event, string(bytes)) - }, bf) - if err != nil { - logger.Error(err) - } - } -} - -func GetModuleAddressList(instanceId string, moduleName string) []structure.AddressConfiguration { - event := utils.ModuleConnected(moduleName) - connectedModulesEvents := getConnectedModulesEventMap(instanceId) - addrList := connectedModulesEvents[event] - if addrList == nil { - return make([]structure.AddressConfiguration, 0) - } - return addrList -} - -func getConnectedModulesEventMap(instanceId string) map[string][]structure.AddressConfiguration { - connectedModulesEventMap := make(map[string][]structure.AddressConfiguration) - connMap := GetModuleConnectionIdMapByInstanceId(instanceId) - - for moduleName, channelIdList := range connMap { - event := utils.ModuleConnected(moduleName) - addrList := make([]structure.AddressConfiguration, 0) - - backendConfigs := GetRoutes().Routes - for _, id := range channelIdList { - if cfg, ok := backendConfigs[id]; ok { - addrList = append(addrList, cfg.Address) - } - } - connectedModulesEventMap[event] = addrList - } - return connectedModulesEventMap -} - -func getOrRegisterDiscoverer(instanceId string) *Discoverer { - discoverersLock.RLock() - d, ok := discoverersMap[instanceId] - discoverersLock.RUnlock() - if ok { - return d - } - - discoverersLock.Lock() - defer discoverersLock.Unlock() - if d, ok := discoverersMap[instanceId]; ok { - return d - } - d = &Discoverer{ - subs: make(map[string]channelIdList), - instanceId: instanceId, - } - discoverersMap[instanceId] = d - return d -} diff --git a/socket/event.go b/socket/event.go deleted file mode 100644 index 4c314ad..0000000 --- a/socket/event.go +++ /dev/null @@ -1,212 +0,0 @@ -package socket - -import ( - "encoding/json" - "github.com/asaskevich/govalidator" - "github.com/integration-system/isp-lib/bootstrap" - "github.com/integration-system/isp-lib/structure" - - "isp-config-service/service" - - "github.com/googollee/go-socket.io" - "github.com/integration-system/isp-lib/config/schema" - "github.com/integration-system/isp-lib/logger" - "github.com/integration-system/isp-lib/utils" - "isp-config-service/entity" - "isp-config-service/model" -) - -const ( - routesSubscribers = ":routes_subs" -) - -func RoutesSubscribersRoom(instanceUuid string) string { - return instanceUuid + routesSubscribers -} - -func onError(so socketio.Socket, err error) { - logger.Warnf("error: %s", err) -} - -func onDisconnect(so socketio.Socket) { - logger.Debugf("onDisconnect: %s", so.Id()) - instanceUuid, moduleName, err := service.ParseParameters(so.Request().URL.RawQuery) - if err != nil { - logger.Warn(err) - return - } - - must(so.Leave(instanceUuid + moduleName)) - must(so.Leave(instanceUuid)) - must(so.Leave(RoutesSubscribersRoom(instanceUuid))) - must(service.Disonnect(instanceUuid, moduleName)) - - discoverer := getOrRegisterDiscoverer(instanceUuid) - discoverer.OnDisconnection(so.Id()) - discoverer.BroadcastModuleAddresses(moduleName) - if backendRoutes.DeleteRoute(so.Id()) { - BroadcastRoutesSnapshot(instanceUuid) - } -} - -func onConnect(so socketio.Socket) { - logger.Debugf("onConnect: %s", so.Id()) - - instanceUuid, moduleName, err := service.ParseParameters(so.Request().URL.RawQuery) - if err != nil { - _ = so.Emit(utils.ConfigError, err.Error()) - return - } - - config, err := service.NewConnection(instanceUuid, moduleName) - if err != nil { - _ = so.Emit(utils.ConfigError, err.Error()) - return - } - - must(so.Join(instanceUuid + moduleName)) - must(so.Join(instanceUuid)) - _ = so.Emit( - utils.ConfigSendConfigWhenConnected, config.Data.ToJSON(), func(so socketio.Socket, data string) { - logger.Debug("Client ACK with data: ", data) - }, - ) -} - -func onReceivedModuleRequirements(so socketio.Socket, msg string) { - logger.Debugf("onReceivedModuleRequirements: %s %s", so.Id(), msg) - - instanceUuid, _, err := service.ParseParameters(so.Request().URL.RawQuery) - if err != nil { - _ = so.Emit(utils.ErrorConnection, map[string]string{"error": err.Error()}) - return - } - - declaration := bootstrap.ModuleRequirements{} - err = json.Unmarshal([]byte(msg), &declaration) - if err != nil { - _ = so.Emit(utils.ErrorConnection, map[string]string{"error": err.Error()}) - logger.Debugf("onReceivedModuleRequirements: %s, error parse json data: %s", so.Id(), err.Error()) - return - } - - if declaration.RequireRoutes { - must(so.Join(RoutesSubscribersRoom(instanceUuid))) - SendRoutesSnapshot(so) - } - discoverer := getOrRegisterDiscoverer(instanceUuid) - discoverer.Subscribe(declaration.RequiredModules, so) -} - -func onReceiveModuleReady(so socketio.Socket, msg string) { - logger.Debugf("onReceiveModuleReady: %s", so.Id()) - - handleModuleDeclaration(so, msg) -} - -func onReceiveRoutesUpdate(so socketio.Socket, msg string) { - logger.Debugf("onReceiveRoutesUpdate: %s", so.Id()) - - handleModuleDeclaration(so, msg) -} - -func onReceiveRemoteConfigSchema(so socketio.Socket, msg string) { - logger.Debugf("onReceiveRemoteConfigSchema: %s %s", so.Id(), msg) - - instanceUuid, moduleName, err := service.ParseParameters(so.Request().URL.RawQuery) - if err != nil { - logger.Warn(err) - return - } - - module, err := model.ModulesRep.GetModulesByInstanceUuidAndName(instanceUuid, moduleName) - if err != nil { - logger.Warn(err) - return - } - if module == nil { - logger.Warnf("Module '%s' in instance '%s' not found", moduleName, instanceUuid) - return - } - - s := new(schema.ConfigSchema) - if err := json.Unmarshal([]byte(msg), s); err != nil { - logger.Warn(err) - return - } - res, err := model.SchemaRep.GetSchemasByModulesId([]int32{module.Id}) - if err != nil { - logger.Warn(err) - return - } - if len(res) > 0 { - schema := &res[0] - if s.Version > schema.Version { - schema.Version = s.Version - schema.Schema = s.Schema - if _, err := model.SchemaRep.UpdateConfigSchema(schema); err != nil { - logger.Warn(err) - } - } - } else { - cs := &entity.ConfigSchema{ - Version: s.Version, - Schema: s.Schema, - ModuleId: module.Id, - } - if _, err := model.SchemaRep.InsertConfigSchema(cs); err != nil { - logger.Warn(err) - } - } -} - -func handleModuleDeclaration(so socketio.Socket, msg string) { - instanceUuid, moduleName, err := service.ParseParameters(so.Request().URL.RawQuery) - if err != nil { - _ = so.Emit(utils.ErrorConnection, map[string]string{"error": err.Error()}) - return - } - - declaration := structure.BackendDeclaration{} - err = json.Unmarshal([]byte(msg), &declaration) - if err != nil { - _ = so.Emit(utils.ErrorConnection, map[string]string{"error": err.Error()}) - logger.Warnf("handleModuleDeclaration: %s, error parse json data: %s", so.Id(), err.Error()) - return - } - - _, err = govalidator.ValidateStruct(declaration) - if err != nil { - errors := govalidator.ErrorsByField(err) - _ = so.Emit(utils.ErrorConnection, map[string]map[string]string{"error": errors}) - logger.Warnf("SOCKET ROUTES ERROR, handleModuleDeclaration: %s, error validate routes data: %s", so.Id(), errors) - } else if backendRoutes.AddAddressOrUpdate(so.Id(), declaration) { - BroadcastRoutesSnapshot(instanceUuid) - - discoverer := getOrRegisterDiscoverer(instanceUuid) - discoverer.BroadcastModuleAddresses(moduleName) - } -} - -func onRequestConfig(so socketio.Socket) { - logger.Debugf("onRequestConfig: %s", so.Id()) - - instanceUuid, moduleName, err := service.ParseParameters(so.Request().URL.RawQuery) - if err != nil { - _ = so.Emit(utils.ErrorConnection, map[string]string{"error": err.Error()}) - return - } - config, err := service.GetConfig(instanceUuid, moduleName) - if err != nil { - _ = so.Emit(utils.ErrorConnection, map[string]string{"error": err.Error()}) - return - } - - _ = so.Emit( - utils.ConfigSendConfigOnRequest, - config.Data.ToJSON(), - func(so socketio.Socket, data string) { - logger.Debug("Client ACK with data: ", data) - }, - ) -} diff --git a/socket/utils.go b/socket/utils.go deleted file mode 100644 index ed5af58..0000000 --- a/socket/utils.go +++ /dev/null @@ -1,7 +0,0 @@ -package socket - -func must(err error) { - if err != nil { - panic(err) - } -} diff --git a/socket/webSocket.go b/socket/webSocket.go deleted file mode 100644 index 973fae4..0000000 --- a/socket/webSocket.go +++ /dev/null @@ -1,111 +0,0 @@ -package socket - -import ( - "encoding/json" - "github.com/googollee/go-socket.io" - "github.com/integration-system/isp-lib/config" - "github.com/integration-system/isp-lib/logger" - sck "github.com/integration-system/isp-lib/socket" - str "github.com/integration-system/isp-lib/structure" - "github.com/integration-system/isp-lib/utils" - "isp-config-service/conf" - "isp-config-service/entity" - "isp-config-service/model" - "isp-config-service/service" -) - -var ( - server *socketio.Server - br *broadcaster - socketRoomStats = sck.NewRoomStats() - backendRoutes = &service.RouterTables{} - ConfigServiceBackendDeclaration = &str.BackendDeclaration{} -) - -func init() { - newServer, err := socketio.NewServer(nil) - if err != nil { - logger.Fatal(err) - } - sessionStore := sck.NewSessionStore(sck.WithOnRemoveCallback(func(id string) { - socketRoomStats.RemoveSocketConn(id) - })) - newServer.SetSessionManager(sessionStore) - newServer.SetAdaptor(socketRoomStats) - - must(newServer.On("connection", onConnect)) - must(newServer.On("disconnection", onDisconnect)) - must(newServer.On("error", onError)) - must(newServer.On(utils.ModuleSendRequirements, onReceivedModuleRequirements)) - must(newServer.On(utils.ModuleReady, onReceiveModuleReady)) - must(newServer.On(utils.ModuleSendConfigSchema, onReceiveRemoteConfigSchema)) - must(newServer.On(utils.ModuleUpdateRoutes, onReceiveRoutesUpdate)) - - server = newServer - br = NewBroadcaster(server, 0) -} - -func Get() *socketio.Server { - return server -} - -func GetRoutes() *service.RouterTables { - return backendRoutes -} - -func SetBackendMethods(backendConfig *str.BackendDeclaration) { - ConfigServiceBackendDeclaration = backendConfig - - moduleName := config.Get().(*conf.Configuration).ModuleName - backendRoutes.AddAddressOrUpdate(moduleName, *ConfigServiceBackendDeclaration) - instances, err := model.InstanceRep.GetInstances(nil) - if err != nil { - logger.Warn("Error receiving instance from db", err) - } else { - for _, v := range instances { - BroadcastRoutesSnapshot(v.Uuid) - } - } -} - -func GetRoomsCount() map[string]map[string]int { - return socketRoomStats.RoomsCount() -} - -func GetModuleConnectionIdMapByInstanceId(instanceId string) map[string][]string { - return socketRoomStats.GetModuleConnectionMap()[instanceId] -} - -func GetConnectionById(instanceId, sockId string) (*sck.SocketConn, bool) { - return socketRoomStats.GetConnection(instanceId, sockId) -} - -func SendNewConfig(instanceUuid string, moduleName string, config *entity.Config) { - moduleKey := instanceUuid + moduleName - br.BroadcastConfig(moduleKey, config.Data.ToJSON(), nil) -} - -func SendRoutesSnapshot(so socketio.Socket) { - bytes, err := json.Marshal(backendRoutes.GetRoutes()) - if err != nil { - logger.Warn("Error when serializing Backend Routes", err) - return - } - - if err := so.Emit(utils.ConfigSendRoutesWhenConnected, string(bytes)); err != nil { - logger.Warn(err) - } -} - -func BroadcastRoutesSnapshot(instanceUuid string) { - bytes, err := json.Marshal(backendRoutes.GetRoutes()) - if err != nil { - logger.Warn("Error when serializing Backend Routes", err) - return - } - - br.BroadcastRoutes(RoutesSubscribersRoom(instanceUuid), string(bytes), func(data interface{}) { - logger.Infof("Send %d routes", len(*backendRoutes.GetRoutes())) - logger.Debugf("Send Routes: %v", *backendRoutes.GetRoutes()) - }) -} diff --git a/static/swagger-ui/config_service.swagger.json b/static/swagger-ui/config_service.swagger.json deleted file mode 100644 index bc2a92e..0000000 --- a/static/swagger-ui/config_service.swagger.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "proto/backend_service.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/api": { - "post": { - "summary": "===== MAIN REQUEST =====", - "operationId": "Request", - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/ispMessage" - } - } - }, - "parameters": [ - { - "name": "Grpc-Metadata-proxy_method_name", - "in": "header", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ispMessage" - } - } - ], - "tags": [ - "BackendService" - ] - } - } - }, - "definitions": { - "ispMessage": { - "type": "object", - "properties": { - "structBody": { - "$ref": "#/definitions/protobufStruct" - }, - "listBody": { - "$ref": "#/definitions/protobufListValue" - }, - "NullBody": { - "$ref": "#/definitions/protobufNullValue" - } - } - }, - "protobufListValue": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Repeated field of dynamically typed values." - } - }, - "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "protobufStruct": { - "type": "object", - "properties": { - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Unordered map of dynamically typed values." - } - }, - "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." - }, - "protobufValue": { - "type": "object", - "properties": { - "null_value": { - "$ref": "#/definitions/protobufNullValue", - "description": "Represents a null value." - }, - "number_value": { - "type": "number", - "format": "double", - "description": "Represents a double value." - }, - "string_value": { - "type": "string", - "description": "Represents a string value." - }, - "bool_value": { - "type": "boolean", - "format": "boolean", - "description": "Represents a boolean value." - }, - "struct_value": { - "$ref": "#/definitions/protobufStruct", - "description": "Represents a structured value." - }, - "list_value": { - "$ref": "#/definitions/protobufListValue", - "description": "Represents a repeated `Value`." - } - }, - "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." - } - } -} diff --git a/static/swagger-ui/favicon-16x16.png b/static/swagger-ui/favicon-16x16.png deleted file mode 100644 index 0f7e13b..0000000 Binary files a/static/swagger-ui/favicon-16x16.png and /dev/null differ diff --git a/static/swagger-ui/favicon-32x32.png b/static/swagger-ui/favicon-32x32.png deleted file mode 100644 index b0a3352..0000000 Binary files a/static/swagger-ui/favicon-32x32.png and /dev/null differ diff --git a/static/swagger-ui/index.html b/static/swagger-ui/index.html deleted file mode 100644 index 3147da3..0000000 --- a/static/swagger-ui/index.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - Swagger UI - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - diff --git a/static/swagger-ui/oauth2-redirect.html b/static/swagger-ui/oauth2-redirect.html deleted file mode 100644 index fb68399..0000000 --- a/static/swagger-ui/oauth2-redirect.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - diff --git a/static/swagger-ui/swagger-ui-bundle.js b/static/swagger-ui/swagger-ui-bundle.js deleted file mode 100644 index 400d51d..0000000 --- a/static/swagger-ui/swagger-ui-bundle.js +++ /dev/null @@ -1,93 +0,0 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUIBundle=t():e.SwaggerUIBundle=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist",t(t.s=1229)}([function(e,t,n){"use strict";e.exports=n(92)},function(e,t,n){e.exports=n(1009)()},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(337),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function v(){return!0}function g(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function y(e,t){return b(e,t,0)}function _(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function x(e){this.next=e}function w(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function k(){return{value:void 0,done:!0}}function E(e){return!!A(e)}function S(e){return e&&"function"==typeof e.next}function C(e){var t=A(e);return t&&t.call(e)}function A(e){var t=e&&(wn&&e[wn]||e[kn]);if("function"==typeof t)return t}function D(e){return e&&"number"==typeof e.length}function O(e){return null===e||void 0===e?B():o(e)?e.toSeq():z(e)}function M(e){return null===e||void 0===e?B().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():L(e)}function T(e){return null===e||void 0===e?B():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():q(e)}function P(e){return(null===e||void 0===e?B():o(e)?a(e)?e.entrySeq():e:q(e)).toSetSeq()}function I(e){this._array=e,this.size=e.length}function R(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function N(e){this._iterator=e,this._iteratorCache=[]}function F(e){return!(!e||!e[Sn])}function B(){return Cn||(Cn=new I([]))}function L(e){var t=Array.isArray(e)?new I(e).fromEntrySeq():S(e)?new N(e).fromEntrySeq():E(e)?new j(e).fromEntrySeq():"object"==typeof e?new R(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function q(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function z(e){var t=U(e)||"object"==typeof e&&new R(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function U(e){return D(e)?new I(e):S(e)?new N(e):E(e)?new j(e):void 0}function W(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function V(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new x(function(){var e=i[n?o-a:a];return a++>o?k():w(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function H(e,t){return t?J(t,e,"",{"":e}):G(e)}function J(e,t,n,r){return Array.isArray(t)?e.call(r,n,T(t).map(function(n,r){return J(e,n,r,t)})):K(t)?e.call(r,n,M(t).map(function(n,r){return J(e,n,r,t)})):t}function G(e){return Array.isArray(e)?T(e).map(G).toList():K(e)?M(e).map(G).toMap():e}function K(e){return e&&(e.constructor===Object||void 0===e.constructor)}function X(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Y(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&X(i[1],e)&&(n||X(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var c=e;e=t,t=c}var p=!0,f=t.__iterate(function(t,r){if(n?!e.has(t):i?!X(t,e.get(r,vn)):!X(e.get(r,vn),t))return p=!1,!1});return p&&e.size===f}function $(e,t){if(!(this instanceof $))return new $(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(An)return An;An=this}}function Z(e,t){if(!e)throw new Error(t)}function Q(e,t,n){if(!(this instanceof Q))return new Q(e,t,n);if(Z(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function oe(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!==e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return ie(n)}if("string"===t)return e.length>Nn?ae(e):se(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return ue(e);if("function"==typeof e.toString)return se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Ln[e];return void 0===t&&(t=se(e),Bn===Fn&&(Bn=0,Ln={}),Bn++,Ln[e]=t),t}function se(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){Z(e!==1/0,"Cannot perform this action with an infinite size.")}function pe(e){return null===e||void 0===e?we():fe(e)&&!l(e)?e:we().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function fe(e){return!(!e||!e[qn])}function he(e,t){this.ownerID=e,this.entries=t}function de(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function me(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ye(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&be(e._root)}function _e(e,t){return w(e,t[0],t[1])}function be(e,t){return{node:e,index:0,__prev:t}}function xe(e,t,n,r){var i=Object.create(zn);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function we(){return Un||(Un=xe(0))}function ke(e,t,n){var r,i;if(e._root){var o=c(gn),a=c(yn);if(r=Ee(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===vn?-1:1:0)}else{if(n===vn)return e;i=1,r=new he(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?xe(i,r):we()}function Ee(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===vn?e:(p(s),p(a),new ge(t,r,[i,o]))}function Se(e){return e.constructor===ge||e.constructor===ve}function Ce(e,t,n,r,i){if(e.keyHash===r)return new ve(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&mn,s=(0===n?r:r>>>n)&mn;return new de(t,1<>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new me(e,o+1,a)}function Me(e,t,r){for(var i=[],a=0;a>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ne(e,t,n,r){var i=r?e:h(e);return i[t]=n,i}function Fe(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s0&&io?0:o-n,l=a-n;return l>dn&&(l=dn),function(){if(i===l)return Xn;var e=t?--l:i++;return r&&r[e]}}function i(e,r,i){var s,u=e&&e.array,l=i>o?0:o-i>>r,c=1+(a-i>>r);return c>dn&&(c=dn),function(){for(;;){if(s){var e=s();if(e!==Xn)return e;s=null}if(l===c)return Xn;var o=t?--c:l++;s=n(u&&u[o],r-hn,i+(o<=e.size||t<0)return e.withMutations(function(e){t<0?Xe(e,t).set(0,n):Xe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=c(yn);return t>=$e(e._capacity)?r=Je(r,e.__ownerID,0,t,n,o):i=Je(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):We(e._origin,e._capacity,e._level,i,r):e}function Je(e,t,n,r,i,o){var a=r>>>n&mn,s=e&&a0){var l=e&&e.array[a],c=Je(l,t,n-hn,r,i,o);return c===l?e:(u=Ge(e,t),u.array[a]=c,u)}return s&&e.array[a]===i?e:(p(o),u=Ge(e,t),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function Ge(e,t){return t&&e&&t===e.ownerID?e:new ze(e?e.array.slice():[],t)}function Ke(e,t){if(t>=$e(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&mn],r-=hn;return n}}function Xe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new f,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new ze(l&&l.array.length?[void 0,l]:[],r),u+=hn,c+=1<=1<p?new ze([],r):d;if(d&&h>p&&ahn;g-=hn){var y=p>>>g&mn;v=v.array[y]=Ge(v.array[y],r)}v.array[p>>>hn&mn]=d}if(s=h)a-=h,s-=h,u=hn,l=null,m=m&&m.removeBefore(r,0,a);else if(a>i||h>>u&mn;if(_!==h>>>u&mn)break;_&&(c+=(1<i&&(l=l.removeBefore(r,u,a-c)),l&&ha&&(a=l.size),o(u)||(l=l.map(function(e){return H(e)})),i.push(l)}return a>e.size&&(e=e.setSize(a)),Ie(e,t,i)}function $e(e){return e>>hn<=dn&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):et(r,i)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function st(e){var t=Dt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Ot,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===xn){var r=e.__iterator(t,n);return new x(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===bn?_n:bn,n)},t}function ut(e,t,n){var r=Dt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,vn);return o===vn?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(xn,i);return new x(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return w(r,s,t.call(n,a[1],s,e),i)})},r}function lt(e,t){var n=Dt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=st(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Ot,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var i=Dt(e);return r&&(i.has=function(r){var i=e.get(r,vn);return i!==vn&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,vn);return o!==vn&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(xn,o),s=0;return new x(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return w(i,r?l:s++,c,o)}})},i}function pt(e,t,n){var r=pe().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}function ft(e,t,n){var r=a(e),i=(l(e)?Ze():pe()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return e=e||[],e.push(r?[a,o]:o),e})});var o=At(e);return i.map(function(t){return Et(e,o(t))})}function ht(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),g(t,n,i))return e;var o=y(t,i),a=_(n,i);if(o!==o||a!==a)return ht(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u===u&&(s=u<0?0:u);var l=Dt(e);return l.size=0===s?s:e.size&&s||void 0,!r&&F(e)&&s>=0&&(l.get=function(t,n){return t=m(this,t),t>=0&&ts)return k();var e=i.next();return r||t===bn?e:t===_n?w(t,u-1,void 0,e):w(t,u-1,e.value[1],e)})},l}function dt(e,t,n){var r=Dt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(xn,i),s=!0;return new x(function(){if(!s)return k();var e=a.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,o)?r===xn?e:w(r,u,l,e):(s=!1,k())})},r}function mt(e,t,n,r){var i=Dt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,l){if(!s||!(s=t.call(n,e,o,l)))return u++,i(e,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(xn,o),u=!0,l=0;return new x(function(){var e,o,c;do{if(e=s.next(),e.done)return r||i===bn?e:i===_n?w(i,l++,void 0,e):w(i,l++,e.value[1],e);var p=e.value;o=p[0],c=p[1],u&&(u=t.call(n,c,o,a))}while(u);return i===xn?e:w(i,o,c,e)})},i}function vt(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?L(e):q(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var u=i[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new I(i);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}function gt(e,t,n){var r=Dt(e);return r.__iterateUncached=function(r,i){function a(e,l){var c=this;e.__iterate(function(e,i){return(!t||l0}function kt(e,n,r){var i=Dt(e);return i.size=new I(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(bn,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),C(i?e.reverse():e)}),a=0,s=!1;return new x(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?k():w(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function Et(e,t){return F(e)?t:e.constructor(t)}function St(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ct(e){return ce(e.size),d(e)}function At(e){return a(e)?n:s(e)?r:i}function Dt(e){return Object.create((a(e)?M:s(e)?T:P).prototype)}function Ot(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):O.prototype.cacheResult.call(this)}function Mt(e,t){return e>t?1:et?-1:0}function on(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0;return an(e.__iterate(n?t?function(e,t){r=31*r+sn(oe(e),oe(t))|0}:function(e,t){r=r+sn(oe(e),oe(t))|0}:t?function(e){r=31*r+oe(e)|0}:function(e){r=r+oe(e)|0}),r)}function an(e,t){return t=Mn(t,3432918353),t=Mn(t<<15|t>>>-15,461845907),t=Mn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Mn(t^t>>>16,2246822507),t=Mn(t^t>>>13,3266489909),t=ie(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var un=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=i;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",pn="@@__IMMUTABLE_INDEXED__@@",fn="@@__IMMUTABLE_ORDERED__@@",hn=5,dn=1<r?k():w(e,i,n[t?r-i++:i++])})},e(R,M),R.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},R.prototype.has=function(e){return this._object.hasOwnProperty(e)},R.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},R.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new x(function(){var a=r[t?i-o:o];return o++>i?k():w(e,a,n[a])})},R.prototype[fn]=!0,e(j,T),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=C(n),i=0;if(S(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=C(n);if(!S(r))return new x(k);var i=0;return new x(function(){var t=r.next();return t.done?t:w(e,i++,t.value)})},e(N,T),N.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return w(e,i,r[i++])})};var Cn;e($,T),$.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},$.prototype.get=function(e,t){return this.has(e)?this._value:t},$.prototype.includes=function(e){return X(this._value,e)},$.prototype.slice=function(e,t){var n=this.size;return g(e,t,n)?this:new $(this._value,_(t,n)-y(e,n))},$.prototype.reverse=function(){return this},$.prototype.indexOf=function(e){return X(this._value,e)?0:-1},$.prototype.lastIndexOf=function(e){return X(this._value,e)?this.size:-1},$.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?k():w(e,o++,a)})},Q.prototype.equals=function(e){return e instanceof Q?this._start===e._start&&this._end===e._end&&this._step===e._step:Y(this,e)};var Dn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var On,Mn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Tn=Object.isExtensible,Pn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),In="function"==typeof WeakMap;In&&(On=new WeakMap);var Rn=0,jn="__immutablehash__";"function"==typeof Symbol&&(jn=Symbol(jn));var Nn=16,Fn=255,Bn=0,Ln={};e(pe,te),pe.of=function(){var e=un.call(arguments,0);return we().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},pe.prototype.toString=function(){return this.__toString("Map {","}")},pe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},pe.prototype.set=function(e,t){return ke(this,e,t)},pe.prototype.setIn=function(e,t){return this.updateIn(e,vn,function(){return t})},pe.prototype.remove=function(e){return ke(this,e,vn)},pe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return vn})},pe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},pe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Re(this,Tt(e),t,n);return r===vn?void 0:r},pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):we()},pe.prototype.merge=function(){return Me(this,void 0,arguments)},pe.prototype.mergeWith=function(e){return Me(this,e,un.call(arguments,1))},pe.prototype.mergeIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,we(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},pe.prototype.mergeDeep=function(){return Me(this,Te,arguments)},pe.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return Me(this,Pe(e),t)},pe.prototype.mergeDeepIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,we(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},pe.prototype.sort=function(e){return Ze(bt(this,e))},pe.prototype.sortBy=function(e,t){return Ze(bt(this,t,e))},pe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},pe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new f)},pe.prototype.asImmutable=function(){return this.__ensureOwner()},pe.prototype.wasAltered=function(){return this.__altered},pe.prototype.__iterator=function(e,t){return new ye(this,e,t)},pe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},pe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?xe(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},pe.isMap=fe;var qn="@@__IMMUTABLE_MAP__@@",zn=pe.prototype;zn[qn]=!0,zn.delete=zn.remove,zn.removeIn=zn.deleteIn,he.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=Wn)return Ae(e,u,r,i);var d=e&&e===this.ownerID,m=d?u:h(u);return f?s?l===c-1?m.pop():m[l]=m.pop():m[l]=[r,i]:m.push([r,i]),d?(this.entries=m,this):new he(e,m)}},de.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=1<<((0===e?t:t>>>e)&mn),o=this.bitmap;return 0==(o&i)?r:this.nodes[je(o&i-1)].get(e+hn,t,n,r)},de.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=(0===t?n:n>>>t)&mn,u=1<=Vn)return Oe(e,f,l,s,d);if(c&&!d&&2===f.length&&Se(f[1^p]))return f[1^p];if(c&&d&&1===f.length&&Se(d))return d;var m=e&&e===this.ownerID,v=c?d?l:l^u:l|u,g=c?d?Ne(f,p,d,m):Be(f,p,m):Fe(f,p,d,m);return m?(this.bitmap=v,this.nodes=g,this):new de(e,v,g)},me.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=(0===e?t:t>>>e)&mn,o=this.nodes[i];return o?o.get(e+hn,t,n,r):r},me.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=(0===t?n:n>>>t)&mn,u=i===vn,l=this.nodes,c=l[s];if(u&&!c)return this;var p=Ee(c,e,t+hn,n,r,i,o,a);if(p===c)return this;var f=this.count;if(c){if(!p&&--f=0&&e>>t&mn;if(r>=this.array.length)return new ze([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-hn,n))===a&&o)return this}if(o&&!i)return this;var s=Ge(this,e);if(!o)for(var u=0;u>>t&mn;if(r>=this.array.length)return this;var i;if(t>0){var o=this.array[r];if((i=o&&o.removeAfter(e,t-hn,n))===o&&r===this.array.length-1)return this}var a=Ge(this,e);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Kn,Xn={};e(Ze,pe),Ze.of=function(){return this(arguments)},Ze.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ze.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ze.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Ze.prototype.set=function(e,t){return nt(this,e,t)},Ze.prototype.remove=function(e){return nt(this,e,vn)},Ze.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ze.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ze.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ze.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ze.isOrderedMap=Qe,Ze.prototype[fn]=!0,Ze.prototype.delete=Ze.prototype.remove;var Yn;e(rt,M),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=lt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=ut(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Ct(this):0,function(i){return e(i,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(bn,t),r=t?Ct(this):0;return new x(function(){var i=n.next();return i.done?i:w(e,t?--r:r++,i.value,i)})},rt.prototype[fn]=!0,e(it,T),it.prototype.includes=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(bn,t),r=0;return new x(function(){var t=n.next();return t.done?t:w(e,r++,t.value,t)})},e(ot,P),ot.prototype.has=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(bn,t);return new x(function(){var t=n.next();return t.done?t:w(e,t.value,t.value,t)})},e(at,M),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){St(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(bn,t);return new x(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){St(r);var i=o(r);return w(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},it.prototype.cacheResult=rt.prototype.cacheResult=ot.prototype.cacheResult=at.prototype.cacheResult=Ot,e(Pt,te),Pt.prototype.toString=function(){return this.__toString(Rt(this)+" {","}")},Pt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Pt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Pt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=It(this,we()))},Pt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Rt(this));if(this._map&&!this._map.has(e)){if(t===this._defaultValues[e])return this}var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:It(this,n)},Pt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:It(this,t)},Pt.prototype.wasAltered=function(){return this._map.wasAltered()},Pt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},Pt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},Pt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?It(this,t,e):(this.__ownerID=e,this._map=t,this)};var $n=Pt.prototype;$n.delete=$n.remove,$n.deleteIn=$n.removeIn=zn.removeIn,$n.merge=zn.merge,$n.mergeWith=zn.mergeWith,$n.mergeIn=zn.mergeIn,$n.mergeDeep=zn.mergeDeep,$n.mergeDeepWith=zn.mergeDeepWith,$n.mergeDeepIn=zn.mergeDeepIn,$n.setIn=zn.setIn,$n.update=zn.update,$n.updateIn=zn.updateIn,$n.withMutations=zn.withMutations,$n.asMutable=zn.asMutable,$n.asImmutable=zn.asImmutable,e(Ft,re),Ft.of=function(){return this(arguments)},Ft.fromKeys=function(e){return this(n(e).keySeq())},Ft.prototype.toString=function(){return this.__toString("Set {","}")},Ft.prototype.has=function(e){return this._map.has(e)},Ft.prototype.add=function(e){return Lt(this,this._map.set(e,!0))},Ft.prototype.remove=function(e){return Lt(this,this._map.remove(e))},Ft.prototype.clear=function(){return Lt(this,this._map.clear())},Ft.prototype.union=function(){var e=un.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Kt(e,t)},Jt.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;ce(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Kt(t,n)},Jt.prototype.pop=function(){return this.slice(1)},Jt.prototype.unshift=function(){return this.push.apply(this,arguments)},Jt.prototype.unshiftAll=function(e){return this.pushAll(e)},Jt.prototype.shift=function(){return this.pop.apply(this,arguments)},Jt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Xt()},Jt.prototype.slice=function(e,t){if(g(e,t,this.size))return this;var n=y(e,this.size);if(_(t,this.size)!==this.size)return ne.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Kt(r,i)},Jt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Jt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Jt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new x(function(){if(r){var t=r.value;return r=r.next,w(e,n++,t)}return k()})},Jt.isStack=Gt;var rr="@@__IMMUTABLE_STACK__@@",ir=Jt.prototype;ir[rr]=!0,ir.withMutations=zn.withMutations,ir.asMutable=zn.asMutable,ir.asImmutable=zn.asImmutable,ir.wasAltered=zn.wasAltered;var or;t.Iterator=x,Yt(t,{toArray:function(){ce(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new it(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return pe(this.toKeyedSeq())},toObject:function(){ce(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ze(this.toKeyedSeq())},toOrderedSet:function(){return Ut(a(this)?this.valueSeq():this)},toSet:function(){return Ft(a(this)?this.valueSeq():this)},toSetSeq:function(){return new ot(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Jt(a(this)?this.valueSeq():this)},toList:function(){return Le(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Et(this,vt(this,un.call(arguments,0)))},includes:function(e){return this.some(function(t){return X(t,e)})},entries:function(){return this.__iterator(xn)},every:function(e,t){ce(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return Et(this,ct(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ce(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ce(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(_n)},map:function(e,t){return Et(this,ut(this,e,t))},reduce:function(e,t,n){ce(this.size);var r,i;return arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Et(this,lt(this,!0))},slice:function(e,t){return Et(this,ht(this,e,t,!0))},some:function(e,t){return!this.every(Qt(e),t)},sort:function(e){return Et(this,bt(this,e))},values:function(){return this.__iterator(bn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return pt(this,e,t)},equals:function(e){return Y(this,e)},entrySeq:function(){var e=this;if(e._cache)return new I(e._cache);var t=e.toSeq().map(Zt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Qt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(v)},flatMap:function(e,t){return Et(this,yt(this,e,t))},flatten:function(e){return Et(this,gt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,n){return X(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=Tt(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,vn):vn)===vn)return t}return r},groupBy:function(e,t){return ft(this,e,t)},has:function(e){return this.get(e,vn)!==vn},hasIn:function(e){return this.getIn(e,vn)!==vn},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"==typeof e.isSubset?e:t(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return X(t,e)})},keySeq:function(){return this.toSeq().map($t).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return xt(this,e)},maxBy:function(e,t){return xt(this,t,e)},min:function(e){return xt(this,e?en(e):rn)},minBy:function(e,t){return xt(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Et(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Et(this,mt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Qt(e),t)},sortBy:function(e,t){return Et(this,bt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Et(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Et(this,dt(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Qt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var ar=t.prototype;ar[ln]=!0,ar[En]=ar.values,ar.__toJS=ar.toArray,ar.__toStringMapper=tn,ar.inspect=ar.toSource=function(){return this.toString()},ar.chain=ar.flatMap,ar.contains=ar.includes,Yt(n,{flip:function(){return Et(this,st(this))},mapEntries:function(e,t){var n=this,r=0;return Et(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Et(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var sr=n.prototype;return sr[cn]=!0,sr[En]=ar.entries,sr.__toJS=ar.toObject,sr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Yt(r,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return Et(this,ct(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Et(this,lt(this,!1))},slice:function(e,t){return Et(this,ht(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=y(e,e<0?this.count():this.size);var r=this.slice(0,e);return Et(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Et(this,gt(this,e,!1))},get:function(e,t){return e=m(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=m(this,e))>=0&&(void 0!==this.size?this.size===1/0||e5e3)return e.textContent;return function(e){for(var n,r,i,o,a,s=e.textContent,u=0,l=s[0],c=1,p=e.innerHTML="",f=0;r=n,n=f<7&&"\\"==n?1:c;){if(c=l,l=s[++u],o=p.length>1,!c||f>8&&"\n"==c||[/\S/.test(c),1,1,!/[$\w]/.test(c),("/"==n||"\n"==n)&&o,'"'==n&&o,"'"==n&&o,s[u-4]+r+n=="--\x3e",r+n=="*/"][f])for(p&&(e.appendChild(a=t.createElement("span")).setAttribute("style",["color: #555; font-weight: bold;","","","color: #555;",""][f?f<3?2:f>6?4:f>3?3:+/^(a(bstract|lias|nd|rguments|rray|s(m|sert)?|uto)|b(ase|egin|ool(ean)?|reak|yte)|c(ase|atch|har|hecked|lass|lone|ompl|onst|ontinue)|de(bugger|cimal|clare|f(ault|er)?|init|l(egate|ete)?)|do|double|e(cho|ls?if|lse(if)?|nd|nsure|num|vent|x(cept|ec|p(licit|ort)|te(nds|nsion|rn)))|f(allthrough|alse|inal(ly)?|ixed|loat|or(each)?|riend|rom|unc(tion)?)|global|goto|guard|i(f|mp(lements|licit|ort)|n(it|clude(_once)?|line|out|stanceof|t(erface|ernal)?)?|s)|l(ambda|et|ock|ong)|m(icrolight|odule|utable)|NaN|n(amespace|ative|ext|ew|il|ot|ull)|o(bject|perator|r|ut|verride)|p(ackage|arams|rivate|rotected|rotocol|ublic)|r(aise|e(adonly|do|f|gister|peat|quire(_once)?|scue|strict|try|turn))|s(byte|ealed|elf|hort|igned|izeof|tatic|tring|truct|ubscript|uper|ynchronized|witch)|t(emplate|hen|his|hrows?|ransient|rue|ry|ype(alias|def|id|name|of))|u(n(checked|def(ined)?|ion|less|signed|til)|se|sing)|v(ar|irtual|oid|olatile)|w(char_t|hen|here|hile|ith)|xor|yield)$/.test(p):0]),a.appendChild(t.createTextNode(p))),i=f&&f<7?f:i,p="",f=11;![1,/[\/{}[(\-+*=<>:;|\\.,?!&@~]/.test(c),/[\])]/.test(c),/[$\w]/.test(c),"/"==c&&i<2&&"<"!=n,'"'==c,"'"==c,c+l+s[u+1]+s[u+2]=="\x3c!--",c+l=="/*",c+l=="//","#"==c][--f];);p+=c}}(e)}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q.default.Map();if(!q.default.Map.isMap(e)||!e.size)return q.default.List();if(Array.isArray(t)||(t=[t]),t.length<1)return e.merge(n);var r=q.default.List(),i=t[0],o=!0,a=!1,s=void 0;try{for(var u,l=(0,P.default)(e.entries());!(o=(u=l.next()).done);o=!0){var c=u.value,p=(0,M.default)(c,2),f=p[0],h=p[1],d=b(h,t.slice(1),n.set(i,f));r=q.default.List.isList(d)?r.concat(d):r.push(d)}}catch(e){a=!0,s=e}finally{try{!o&&l.return&&l.return()}finally{if(a)throw s}}return r}function x(e){var t=/filename="([^;]*);?"/i.exec(e);return null===t&&(t=/filename=([^;]*);?/i.exec(e)),null!==t&&t.length>1?t[1]:null}function w(e){return(0,H.default)((0,W.default)(e))}function k(e){return w(e.replace(/\.[^.\/]*$/,""))}function E(e){return"string"!=typeof e||""===e?"":(0,z.sanitizeUrl)(e)}function S(e){if(!q.default.OrderedMap.isOrderedMap(e))return null;if(!e.size)return null;var t=e.find(function(e,t){return t.startsWith("2")&&(0,N.default)(e.get("content")||{}).length>0}),n=e.get("default")||q.default.OrderedMap(),r=(n.get("content")||q.default.OrderedMap()).keySeq().toJS(),i=r.length?n:null;return t||i}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0};if("object"!==(void 0===e?"undefined":(0,B.default)(e))||Array.isArray(e)||!t)return e;var r=(0,R.default)({},e);return(0,N.default)(r).forEach(function(e){if(e===t&&n(r[e],e))return void delete r[e];r[e]=C(r[e],t,n)}),r}Object.defineProperty(t,"__esModule",{value:!0}),t.getExtensions=t.escapeDeepLinkPath=t.createDeepLinkPath=t.shallowEqualKeys=t.buildFormData=t.sorters=t.btoa=t.serializeSearch=t.parseSearch=t.getSampleSchema=t.validateParam=t.validatePattern=t.validateMinLength=t.validateMaxLength=t.validateGuid=t.validateDateTime=t.validateString=t.validateBoolean=t.validateFile=t.validateInteger=t.validateNumber=t.validateMinimum=t.validateMaximum=t.propChecker=t.memoize=t.isImmutable=void 0;var A=n(37),D=r(A),O=n(18),M=r(O),T=n(96),P=r(T),I=n(27),R=r(I),j=n(42),N=r(j),F=n(48),B=r(F);t.isJSONObject=i,t.objectify=o,t.arrayify=a,t.fromJSOrdered=s,t.bindToState=u,t.normalizeArray=l,t.isFn=c,t.isObject=p,t.isFunc=f,t.isArray=h,t.objMap=d,t.objReduce=m,t.systemThunkMiddleware=v,t.defaultStatusCode=g,t.getList=y,t.highlight=_,t.mapToList=b,t.extractFileNameFromContentDispositionHeader=x,t.pascalCase=w,t.pascalCaseFilename=k,t.sanitizeUrl=E,t.getAcceptControllingResponse=S,t.deeplyStripKey=C;var L=n(7),q=r(L),z=n(520),U=n(952),W=r(U),V=n(440),H=r(V),J=n(436),G=r(J),K=n(227),X=r(K),Y=n(970),$=r(Y),Z=n(118),Q=r(Z),ee=n(174),te=n(36),ne=r(te),re=n(710),ie=r(re),oe="default",ae=t.isImmutable=function(e){return q.default.Iterable.isIterable(e)},se=(t.memoize=G.default,t.propChecker=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return(0,N.default)(e).length!==(0,N.default)(t).length||((0,$.default)(e,function(e,n){if(r.includes(n))return!1;var i=t[n];return q.default.Iterable.isIterable(e)?!q.default.is(e,i):("object"!==(void 0===e?"undefined":(0,B.default)(e))||"object"!==(void 0===i?"undefined":(0,B.default)(i)))&&e!==i})||n.some(function(n){return!(0,Q.default)(e[n],t[n])}))},t.validateMaximum=function(e,t){if(e>t)return"Value must be less than Maximum"}),ue=t.validateMinimum=function(e,t){if(et)return"Value must be less than MaxLength"},ge=t.validateMinLength=function(e,t){if(e.length2&&void 0!==arguments[2]&&arguments[2],r=[],i=t&&"body"===e.get("in")?e.get("value_xml"):e.get("value"),o=e.get("required"),a=n?e.get("schema"):e;if(!a)return r;var s=a.get("maximum"),u=a.get("minimum"),l=a.get("type"),c=a.get("format"),p=a.get("maxLength"),f=a.get("minLength"),h=a.get("pattern");if(l&&(o||i)){var d="string"===l&&i,m="array"===l&&Array.isArray(i)&&i.length,v="array"===l&&q.default.List.isList(i)&&i.count(),g="file"===l&&i instanceof ne.default.File,y="boolean"===l&&(i||!1===i),_="number"===l&&(i||0===i),b="integer"===l&&(i||0===i);if(o&&!(d||m||v||g||y||_||b))return r.push("Required field is not provided"),r;if(h){var x=ye(i,h);x&&r.push(x)}if(p||0===p){var w=ve(i,p);w&&r.push(w)}if(f){var k=ge(i,f);k&&r.push(k)}if(s||0===s){var E=se(i,s);E&&r.push(E)}if(u||0===u){var S=ue(i,u);S&&r.push(S)}if("string"===l){var C=void 0;if(!(C="date-time"===c?de(i):"uuid"===c?me(i):he(i)))return r;r.push(C)}else if("boolean"===l){var A=fe(i);if(!A)return r;r.push(A)}else if("number"===l){var D=le(i);if(!D)return r;r.push(D)}else if("integer"===l){var O=ce(i);if(!O)return r;r.push(O)}else if("array"===l){var M=void 0;if(!v||!i.count())return r;M=a.getIn(["items","type"]),i.forEach(function(e,t){var n=void 0;"number"===M?n=le(e):"integer"===M?n=ce(e):"string"===M&&(n=he(e)),n&&r.push({index:t,error:n})})}else if("file"===l){var T=pe(i);if(!T)return r;r.push(T)}}return r},t.getSampleSchema=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(/xml/.test(t)){if(!e.xml||!e.xml.name){if(e.xml=e.xml||{},!e.$$ref)return e.type||e.items||e.properties||e.additionalProperties?'\n\x3c!-- XML example cannot be generated --\x3e':null;var r=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=r[1]}return(0,ee.memoizedCreateXMLExample)(e,n)}return(0,D.default)((0,ee.memoizedSampleFromSchema)(e,n),null,2)},t.parseSearch=function(){var e={},t=ne.default.location.search;if(!t)return{};if(""!=t){var n=t.substr(1).split("&");for(var r in n)n.hasOwnProperty(r)&&(r=n[r].split("="),e[decodeURIComponent(r[0])]=r[1]&&decodeURIComponent(r[1])||"")}return e},t.serializeSearch=function(e){return(0,N.default)(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")},t.btoa=function(t){var n=void 0;return n=t instanceof e?t:new e(t.toString(),"utf-8"),n.toString("base64")},t.sorters={operationsSorter:{alpha:function(e,t){return e.get("path").localeCompare(t.get("path"))},method:function(e,t){return e.get("method").localeCompare(t.get("method"))}},tagsSorter:{alpha:function(e,t){return e.localeCompare(t)}}},t.buildFormData=function(e){var t=[];for(var n in e){var r=e[n];void 0!==r&&""!==r&&t.push([n,"=",encodeURIComponent(r).replace(/%20/g,"+")].join(""))}return t.join("&")},t.shallowEqualKeys=function(e,t,n){return!!(0,X.default)(n,function(n){return(0,Q.default)(e[n],t[n])})},t.createDeepLinkPath=function(e){return"string"==typeof e||e instanceof String?e.trim().replace(/\s/g,"_"):""});t.escapeDeepLinkPath=function(e){return(0,ie.default)(_e(e))},t.getExtensions=function(e){return e.filter(function(e,t){return/^x-/.test(t)})}}).call(t,n(43).Buffer)},function(e,t,n){"use strict";var r=n(33),i=r;e.exports=i},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r6?s-6:0),l=6;l5?l-5:0),p=5;p5?a-5:0),u=5;u key("+c[p]+")"].concat(s));if(h instanceof Error)return h}}return i(t)}function u(e){return a(e,"List",b.List.isList)}function l(e,t,n,r){function o(){for(var i=arguments.length,o=Array(i),u=0;u5?s-5:0),l=5;l5?l-5:0),p=5;p>",w={listOf:u,mapOf:c,orderedMapOf:p,setOf:f,orderedSetOf:h,stackOf:d,iterableOf:m,recordOf:v,shape:y,contains:y,mapContains:_,list:o("List",b.List.isList),map:o("Map",b.Map.isMap),orderedMap:o("OrderedMap",b.OrderedMap.isOrderedMap),set:o("Set",b.Set.isSet),orderedSet:o("OrderedSet",b.OrderedSet.isOrderedSet),stack:o("Stack",b.Stack.isStack),seq:o("Seq",b.Seq.isSeq),record:o("Record",function(e){return e instanceof b.Record}),iterable:o("Iterable",b.Iterable.isIterable)};e.exports=w},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/* -object-assign -(c) Sindre Sorhus -@license MIT -*/ -var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=r(e),l=1;l=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function l(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function c(e,t){var n=0;return o(y,t)?y[t]:35===t.charCodeAt(0)&&g.test(t)&&(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),u(n))?l(n):e}function p(e){return e.indexOf("&")<0?e:e.replace(v,c)}function f(e){return x[e]}function h(e){return _.test(e)?e.replace(b,f):e}var d=Object.prototype.hasOwnProperty,m=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,v=/&([a-z#][a-z0-9]{1,31});/gi,g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,y=n(501),_=/[&<>"]/,b=/[&<>"]/g,x={"&":"&","<":"<",">":">",'"':"""};t.assign=a,t.isString=i,t.has=o,t.unescapeMd=s,t.isValidEntityCode=u,t.fromCodePoint=l,t.replaceEntities=p,t.escapeHtml=h},function(e,t,n){e.exports={default:n(602),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(337),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(32),i=n(63),o=n(64),a=n(78),s=n(135),u=function(e,t,n){var l,c,p,f,h=e&u.F,d=e&u.G,m=e&u.S,v=e&u.P,g=e&u.B,y=d?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,_=d?i:i[t]||(i[t]={}),b=_.prototype||(_.prototype={});d&&(n=t);for(l in n)c=!h&&y&&void 0!==y[l],p=(c?y:n)[l],f=g&&c?s(p,r):v&&"function"==typeof p?s(Function.call,p):p,y&&a(y,l,p,e&u.U),_[l]!=p&&o(_,l,f),v&&b[l]!=p&&(b[l]=p)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(30),i=n(107),o=n(58),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+i+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){m&&h&&(m=!1,h.length?d=h.concat(d):v=-1,d.length&&s())}function s(){if(!m){var e=i(a);m=!0;for(var t=d.length;t;){for(h=d,d=[];++v1)for(var n=1;n=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),o.alloc(+e)}function v(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return V(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}var l;if(i){var c=-1;for(l=n;ls&&(n=s-u),l=n;l>=0;l--){for(var p=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,l,c,p;switch(s){case 1:o<128&&(a=o);break;case 2:u=e[i+1],128==(192&u)&&(p=(31&o)<<6|63&u)>127&&(a=p);break;case 3:u=e[i+1],l=e[i+2],128==(192&u)&&128==(192&l)&&(p=(15&o)<<12|(63&u)<<6|63&l)>2047&&(p<55296||p>57343)&&(a=p);break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],128==(192&u)&&128==(192&l)&&128==(192&c)&&(p=(15&o)<<18|(63&u)<<12|(63&l)<<6|63&c)>65535&&p<1114112&&(a=p)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return O(r)}function O(e){var t=e.length;if(t<=Q)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function B(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,i){return i||B(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,i){return i||B(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(e,t,n,r,52,8),n+8}function z(e){if(e=U(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function U(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function G(e){return Y.toByteArray(z(e))}function K(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function X(e){return e!==e}/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -var Y=n(583),$=n(779),Z=n(396);t.Buffer=o,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,n){return a(null,e,t,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,n){return u(null,e,t,n)},o.allocUnsafe=function(e){return l(null,e)},o.allocUnsafeSlow=function(e){return l(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},o.prototype.compare=function(e,t,n,r,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,s=n-t,u=Math.min(a,s),l=this.slice(r,i),c=e.slice(t,n),p=0;pi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;o.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o=i&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),$.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),$.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),$.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),$.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){j(this,e,t,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a0&&(a=this.buffer[u-1],e.call(r,a)<0);)if(u--,this.pointer-u>n/2-1){o=" ... ",u+=5;break}for(l="",i=this.pointer;in/2-1){l=" ... ",i-=5;break}return""+new Array(t).join(" ")+o+this.buffer.slice(u,i)+l+"\n"+new Array(t+this.pointer-u+o.length).join(" ")+"^"},t.prototype.toString=function(){var e,t;return e=this.get_snippet(),t=" on line "+(this.line+1)+", column "+(this.column+1),e?t:t+":\n"+e},t}(),this.YAMLError=function(e){function n(e){this.message=e,n.__super__.constructor.call(this),this.stack=this.toString()+"\n"+(new Error).stack.split("\n").slice(1).join("\n")}return t(n,e),n.prototype.toString=function(){return this.message},n}(Error),this.MarkedYAMLError=function(e){function n(e,t,r,i,o){this.context=e,this.context_mark=t,this.problem=r,this.problem_mark=i,this.note=o,n.__super__.constructor.call(this)}return t(n,e),n.prototype.toString=function(){var e;return e=[],null!=this.context&&e.push(this.context),null==this.context_mark||null!=this.problem&&null!=this.problem_mark&&this.context_mark.line===this.problem_mark.line&&this.context_mark.column===this.problem_mark.column||e.push(this.context_mark.toString()),null!=this.problem&&e.push(this.problem),null!=this.problem_mark&&e.push(this.problem_mark.toString()),null!=this.note&&e.push(this.note),e.join("\n")},n}(this.YAMLError)}).call(this)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(581),o=r(i),a=n(580),s=r(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(o.default)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":u(e)}},function(e,t,n){e.exports=!n(55)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";function r(e,t,n){return n?[e,t]:e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var i=this.constructor.Interface;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];s?this[o]=s(n):"target"===o?this.target=r:this[o]=n[o]}var u=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;return this.isDefaultPrevented=u?a.thatReturnsTrue:a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse,this}var i=n(13),o=n(70),a=n(33),s=(n(10),["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),u={type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};i(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n1?t-1:0),i=1;i2?n-2:0),o=2;o=n?e:e.length+1===n?""+t+e:""+new Array(n-e.length+1).join(t)+e},this.to_hex=function(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e.toString(16)}}).call(this)}).call(t,n(16))},function(e,t,n){var r=n(77);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=e.exports={version:"2.5.4"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(138),i=n(367);e.exports=n(106)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var r=n(740),i=Math.max;e.exports=function(e){return i(0,r(e))}},function(e,t,n){function r(e){return null==e?void 0===e?u:s:l&&l in Object(e)?o(e):a(e)}var i=n(82),o=n(907),a=n(936),s="[object Null]",u="[object Undefined]",l=i?i.toStringTag:void 0;e.exports=r},function(e,t,n){function r(e,t){var n=o(e,t);return i(n)?n:void 0}var i=n(868),o=n(908);e.exports=r},function(e,t,n){function r(e){return a(e)?i(e):o(e)}var i=n(403),o=n(871),a=n(86);e.exports=r},function(e,t,n){"use strict"},function(e,t,n){"use strict";var r=n(11),i=(n(8),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),o=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n),i}return new r(e,t,n)},s=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},u=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>",u="]",l=new RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|]|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|[<][?].*?[?][>]|]*>|)","i"),c=/[\\&]/,p="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",f=new RegExp("\\\\"+p+"|"+a,"gi"),h=new RegExp('[&<>"]',"g"),d=new RegExp(a+'|[&<>"]',"gi"),m=function(e){return 92===e.charCodeAt(0)?e.charAt(1):o(e)},v=function(e){return c.test(e)?e.replace(f,m):e},g=function(e){try{return r(i(e))}catch(t){return e}},y=function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}},_=function(e,t){return h.test(e)?t?e.replace(d,y):e.replace(h,y):e};e.exports={unescapeString:v,normalizeURI:g,escapeXml:_,reHtmlTag:l,OPENTAG:s,CLOSETAG:u,ENTITY:a,ESCAPABLE:p}},function(e,t){e.exports={}},function(e,t,n){var r=n(184),i=n(181);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(181);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(32),i=n(64),o=n(137),a=n(205)("src"),s=Function.toString,u=(""+s).split("toString");n(63).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){"use strict";var r=n(380)();e.exports=function(e){return e!==r&&null!==e}},function(e,t,n){"use strict";function r(e){return void 0===e||null===e}function i(e){return"object"==typeof e&&null!==e}function o(e){return Array.isArray(e)?e:r(e)?[]:[e]}function a(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>",u="]",l=new RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|]|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|[<][?].*?[?][>]|]*>|)","i"),c=/[\\&]/,p="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",f=new RegExp("\\\\"+p+"|"+a,"gi"),h=new RegExp('[&<>"]',"g"),d=new RegExp(a+'|[&<>"]',"gi"),m=function(e){return 92===e.charCodeAt(0)?e.charAt(1):o(e)},v=function(e){return c.test(e)?e.replace(f,m):e},g=function(e){try{return r(i(e))}catch(t){return e}},y=function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}},_=function(e,t){return h.test(e)?t?e.replace(d,y):e.replace(h,y):e};e.exports={unescapeString:v,normalizeURI:g,escapeXml:_,reHtmlTag:l,OPENTAG:s,CLOSETAG:u,ENTITY:a,ESCAPABLE:p}},function(e,t,n){"use strict";var r=n(13),i=n(487),o=n(1115),a=n(1116),s=n(93),u=n(1117),l=n(1118),c=n(1119),p=n(1123),f=s.createElement,h=s.createFactory,d=s.cloneElement,m=r,v=function(e){return e},g={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:p},Component:i.Component,PureComponent:i.PureComponent,createElement:f,cloneElement:d,isValidElement:s.isValidElement,PropTypes:u,createClass:c,createFactory:h,createMixin:v,DOM:a,version:l,__spread:m};e.exports=g},function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function i(e){return void 0!==e.key}var o=n(13),a=n(53),s=(n(10),n(491),Object.prototype.hasOwnProperty),u=n(489),l={key:!0,ref:!0,__self:!0,__source:!0},c=function(e,t,n,r,i,o,a){var s={$$typeof:u,type:e,key:t,ref:n,props:a,_owner:o};return s};c.createElement=function(e,t,n){var o,u={},p=null,f=null;if(null!=t){r(t)&&(f=t.ref),i(t)&&(p=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source;for(o in t)s.call(t,o)&&!l.hasOwnProperty(o)&&(u[o]=t[o])}var h=arguments.length-2;if(1===h)u.children=n;else if(h>1){for(var d=Array(h),m=0;m1){for(var g=Array(v),y=0;y=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(352),i=n(183);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(44).f,i=n(56),o=n(21)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(630)(!0);n(346)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){n(635);for(var r=n(24),i=n(57),o=n(74),a=n(21)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u0?i(r(e),9007199254740991):0}},function(e,t,n){(function(e){function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function r(e){return"boolean"==typeof e}function i(e){return null===e}function o(e){return null==e}function a(e){return"number"==typeof e}function s(e){return"string"==typeof e}function u(e){return"symbol"==typeof e}function l(e){return void 0===e}function c(e){return"[object RegExp]"===v(e)}function p(e){return"object"==typeof e&&null!==e}function f(e){return"[object Date]"===v(e)}function h(e){return"[object Error]"===v(e)||e instanceof Error}function d(e){return"function"==typeof e}function m(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function v(e){return Object.prototype.toString.call(e)}t.isArray=n,t.isBoolean=r,t.isNull=i,t.isNullOrUndefined=o,t.isNumber=a,t.isString=s,t.isSymbol=u,t.isUndefined=l,t.isRegExp=c,t.isObject=p,t.isDate=f,t.isError=h,t.isFunction=d,t.isPrimitive=m,t.isBuffer=e.isBuffer}).call(t,n(43).Buffer)},function(e,t,n){"use strict";function r(e){return"string"==typeof e&&i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=/-webkit-|-moz-|-ms-/;e.exports=t.default},function(e,t){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},function(e,t,n){var r=n(726),i=n(725);t.decode=function(e,t){return(!t||t<=0?i.XML:i.HTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?i.XML:i.HTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?r.XML:r.HTML)(e)},t.encodeXML=r.XML,t.encodeHTML4=t.encodeHTML5=t.encodeHTML=r.HTML,t.decodeXML=t.decodeXMLStrict=i.XML,t.decodeHTML4=t.decodeHTML5=t.decodeHTML=i.HTML,t.decodeHTML4Strict=t.decodeHTML5Strict=t.decodeHTMLStrict=i.HTMLStrict,t.escape=r.escape},function(e,t,n){"use strict";var r=n(79);e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,n){function r(t,n){return delete e.exports[t],e.exports[t]=n,n}var i=n(389),o=n(715);e.exports={Parser:i,Tokenizer:n(390),ElementType:n(112),DomHandler:o,get FeedHandler(){return r("FeedHandler",n(775))},get Stream(){return r("Stream",n(777))},get WritableStream(){return r("WritableStream",n(391))},get ProxyHandler(){return r("ProxyHandler",n(776))},get DomUtils(){return r("DomUtils",n(717))},get CollectingHandler(){return r("CollectingHandler",n(774))},DefaultHandler:o,get RssHandler(){return r("RssHandler",this.FeedHandler)},parseDOM:function(e,t){var n=new o(t);return new i(n,t).end(e),n.dom},parseFeed:function(t,n){var r=new e.exports.FeedHandler(n);return new i(r,n).end(t),r.dom},createDomStream:function(e,t,n){var r=new o(e,t,n);return new i(r,t)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},function(e,t,n){"use strict";function r(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=r},function(e,t,n){"use strict";var r=n(81);e.exports=new r({include:[n(397)],implicit:[n(829),n(822)],explicit:[n(814),n(824),n(825),n(827)]})},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t){function n(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')}function r(e){var t=e.match(y);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var n=e,o=r(e);if(o){if(!o.path)return e;n=o.path}for(var a,s=t.isAbsolute(n),u=n.split(/\/+/),l=0,c=u.length-1;c>=0;c--)a=u[c],"."===a?u.splice(c,1):".."===a?l++:l>0&&(""===a?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return n=u.join("/"),""===n&&(n=s?"/":"."),o?(o.path=n,i(o)):n}function a(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),a=r(e);if(a&&(e=a.path||"/"),n&&!n.scheme)return a&&(n.scheme=a.scheme),i(n);if(n||t.match(_))return t;if(a&&!a.host&&!a.path)return a.host=t,i(a);var s="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=s,i(a)):s}function s(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)}function u(e){return e}function l(e){return p(e)?"$"+e:e}function c(e){return p(e)?e.slice(1):e}function p(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function f(e,t,n){var r=d(e.source,t.source);return 0!==r?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)||n?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:(r=e.generatedLine-t.generatedLine,0!==r?r:d(e.name,t.name))}function h(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=d(e.source,t.source))?r:0!==(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,0!==r?r:d(e.name,t.name))}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function m(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=d(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:d(e.name,t.name))}function v(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}function g(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var s=r(n);if(!s)throw new Error("sourceMapURL could not be parsed");if(s.path){var u=s.path.lastIndexOf("/");u>=0&&(s.path=s.path.substring(0,u+1))}t=a(i(s),t)}return o(t)}t.getArg=n;var y=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,_=/^data:.+\,.+$/;t.urlParse=r,t.urlGenerate=i,t.normalize=o,t.join=a,t.isAbsolute=function(e){return"/"===e.charAt(0)||y.test(e)},t.relative=s;var b=function(){return!("__proto__"in Object.create(null))}();t.toSetString=b?u:l,t.fromSetString=b?u:c,t.compareByOriginalPositions=f,t.compareByGeneratedPositionsDeflated=h,t.compareByGeneratedPositionsInflated=m,t.parseSourceMapInput=v,t.computeSourceURL=g},function(e,t,n){"use strict";function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function i(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(t));default:return!1}}var o=n(11),a=n(246),s=n(247),u=n(251),l=n(475),c=n(476),p=(n(8),{}),f=null,h=function(e,t){e&&(s.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},d=function(e){return h(e,!0)},m=function(e){return h(e,!1)},v=function(e){return"."+e._rootNodeID},g={injection:{injectEventPluginOrder:a.injectEventPluginOrder,injectEventPluginsByName:a.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n&&o("94",t,typeof n);var r=v(e);(p[t]||(p[t]={}))[r]=n;var i=a.registrationNameModules[t];i&&i.didPutListener&&i.didPutListener(e,t,n)},getListener:function(e,t){var n=p[t];if(i(t,e._currentElement.type,e._currentElement.props))return null;var r=v(e);return n&&n[r]},deleteListener:function(e,t){var n=a.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=p[t];if(r){delete r[v(e)]}},deleteAllListeners:function(e){var t=v(e);for(var n in p)if(p.hasOwnProperty(n)&&p[n][t]){var r=a.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete p[n][t]}},extractEvents:function(e,t,n,r){for(var i,o=a.plugins,s=0;s0&&void 0!==arguments[0]?arguments[0]:{};return{type:g,payload:e}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return{type:y,payload:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CLEAR_BY=t.CLEAR=t.NEW_AUTH_ERR=t.NEW_SPEC_ERR_BATCH=t.NEW_SPEC_ERR=t.NEW_THROWN_ERR_BATCH=t.NEW_THROWN_ERR=void 0,t.newThrownErr=r,t.newThrownErrBatch=i,t.newSpecErr=o,t.newSpecErrBatch=a,t.newAuthErr=s,t.clear=u,t.clearBy=l;var c=n(268),p=function(e){return e&&e.__esModule?e:{default:e}}(c),f=t.NEW_THROWN_ERR="err_new_thrown_err",h=t.NEW_THROWN_ERR_BATCH="err_new_thrown_err_batch",d=t.NEW_SPEC_ERR="err_new_spec_err",m=t.NEW_SPEC_ERR_BATCH="err_new_spec_err_batch",v=t.NEW_AUTH_ERR="err_new_auth_err",g=t.CLEAR="err_clear",y=t.CLEAR_BY="err_clear_by"},function(e,t,n){e.exports={default:n(608),__esModule:!0}},function(e,t,n){var r=n(54),i=n(345),o=n(343),a=n(38),s=n(132),u=n(196),l={},c={},t=e.exports=function(e,t,n,p,f){var h,d,m,v,g=f?function(){return e}:u(e),y=r(n,p,t?2:1),_=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(h=s(e.length);h>_;_++)if((v=t?y(a(d=e[_])[0],d[1]):y(e[_]))===l||v===c)return v}else for(m=g.call(e);!(d=m.next()).done;)if((v=i(m,y,d.value,t))===l||v===c)return v};t.BREAK=l,t.RETURN=c},function(e,t){e.exports=!0},function(e,t,n){var r=n(133)("meta"),i=n(29),o=n(56),a=n(44).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(55)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},f=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},h=function(e){return l&&d.NEED&&u(e)&&!o(e,r)&&c(e),e},d=e.exports={KEY:r,NEED:!1,fastKey:p,getWeak:f,onFreeze:h}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(192),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(134);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(64),i=n(78),o=n(107),a=n(58),s=n(19);e.exports=function(e,t,n){var u=s(e),l=n(a,u,""[e]),c=l[0],p=l[1];o(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,c),r(RegExp.prototype,u,2==t?function(e,t){return p.call(e,this,t)}:function(e){return p.call(e,this)}))}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(62),i=n(655),o=n(674),a=Object.defineProperty;t.f=n(106)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(657),i=n(58);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";var r,i=n(381),o=n(384),a=n(744),s=n(749);r=e.exports=function(e,t){var n,r,a,u,l;return arguments.length<2||"string"!=typeof e?(u=t,t=e,e=null):u=arguments[2],null==e?(n=a=!0,r=!1):(n=s.call(e,"c"),r=s.call(e,"e"),a=s.call(e,"w")),l={value:t,configurable:n,enumerable:r,writable:a},u?i(o(u),l):l},r.gs=function(e,t,n){var r,u,l,c;return"string"!=typeof e?(l=n,n=t,t=e,e=null):l=arguments[3],null==t?t=void 0:a(t)?null==n?n=void 0:a(n)||(l=n,n=void 0):(l=t,t=n=void 0),null==e?(r=!0,u=!1):(r=s.call(e,"c"),u=s.call(e,"e")),c={get:t,set:n,configurable:r,enumerable:u},l?i(o(l),c):c}},function(e,t,n){"use strict";e.exports=n(741)("forEach")},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!i(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,i,s,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(n=this._events[e],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),l=n.slice(),i=l.length,u=0;u0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r=n(81);e.exports=r.DEFAULT=new r({include:[n(117)],explicit:[n(820),n(819),n(818)]})},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e]/;e.exports=i},function(e,t,n){"use strict";var r,i=n(25),o=n(245),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(253),l=u(function(e,t){if(e.namespaceURI!==o.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(i.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=l},function(e,t,n){"use strict";function r(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o=-1,a=e.posMax,s=e.pos,u=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,n=1;e.pos1&&void 0!==arguments[1])||arguments[1];return e=(0,s.normalizeArray)(e),{type:p,payload:{thing:e,shown:t}}}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=(0,s.normalizeArray)(e),{type:c,payload:{thing:e,mode:t}}}Object.defineProperty(t,"__esModule",{value:!0}),t.SHOW=t.UPDATE_MODE=t.UPDATE_FILTER=t.UPDATE_LAYOUT=void 0,t.updateLayout=r,t.updateFilter=i,t.show=o,t.changeMode=a;var s=n(9),u=t.UPDATE_LAYOUT="layout_update_layout",l=t.UPDATE_FILTER="layout_update_filter",c=t.UPDATE_MODE="layout_update_mode",p=t.SHOW="layout_show"},function(e,t,n){"use strict";function r(e,t){return{type:u,payload:{selectedServerUrl:e,namespace:t}}}function i(e){var t=e.value,n=e.pathMethod;return{type:l,payload:{value:t,pathMethod:n}}}function o(e){var t=e.value,n=e.pathMethod;return{type:c,payload:{value:t,pathMethod:n}}}function a(e){var t=e.value,n=e.path,r=e.method;return{type:p,payload:{value:t,path:n,method:r}}}function s(e){var t=e.server,n=e.namespace,r=e.key,i=e.val;return{type:f,payload:{server:t,namespace:n,key:r,val:i}}}Object.defineProperty(t,"__esModule",{value:!0}),t.setSelectedServer=r,t.setRequestBodyValue=i,t.setRequestContentType=o,t.setResponseContentType=a,t.setServerVariableValue=s;var u=t.UPDATE_SELECTED_SERVER="oas3_set_servers",l=t.UPDATE_REQUEST_BODY_VALUE="oas3_set_request_body_value",c=t.UPDATE_REQUEST_CONTENT_TYPE="oas3_set_request_content_type",p=t.UPDATE_RESPONSE_CONTENT_TYPE="oas3_set_response_content_type",f=t.UPDATE_SERVER_VARIABLE_VALUE="oas3_set_server_variable_value"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=h(e,t);if(n)return(0,s.default)(n,{declaration:!0,indent:"\t"})}Object.defineProperty(t,"__esModule",{value:!0}),t.memoizedSampleFromSchema=t.memoizedCreateXMLExample=t.sampleXmlFromSchema=t.inferSchema=t.sampleFromSchema=void 0,t.createXMLExample=i;var o=n(9),a=n(1213),s=r(a),u=n(982),l=r(u),c={string:function(){return"string"},string_email:function(){return"user@example.com"},"string_date-time":function(){return(new Date).toISOString()},number:function(){return 0},number_float:function(){return 0},integer:function(){return 0},boolean:function(e){return"boolean"!=typeof e.default||e.default}},p=function(e){e=(0,o.objectify)(e);var t=e,n=t.type,r=t.format,i=c[n+"_"+r]||c[n];return(0,o.isFunc)(i)?i(e):"Unknown Type: "+e.type},f=t.sampleFromSchema=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,o.objectify)(t),i=r.type,a=r.example,s=r.properties,u=r.additionalProperties,l=r.items,c=n.includeReadOnly,f=n.includeWriteOnly;if(void 0!==a)return(0,o.deeplyStripKey)(a,"$$ref",function(e){return"string"==typeof e&&e.indexOf("#")>-1});if(!i)if(s)i="object";else{if(!l)return;i="array"}if("object"===i){var h=(0,o.objectify)(s),d={};for(var m in h)h[m].readOnly&&!c||h[m].writeOnly&&!f||(d[m]=e(h[m],n));if(!0===u)d.additionalProp1={};else if(u)for(var v=(0,o.objectify)(u),g=e(v,n),y=1;y<4;y++)d["additionalProp"+y]=g;return d}return"array"===i?Array.isArray(l.anyOf)?l.anyOf.map(function(t){return e(t,n)}):Array.isArray(l.oneOf)?l.oneOf.map(function(t){return e(t,n)}):[e(l,n)]:t.enum?t.default?t.default:(0,o.normalizeArray)(t.enum)[0]:"file"!==i?p(t):void 0},h=(t.inferSchema=function(e){return e.schema&&(e=e.schema),e.properties&&(e.type="object"),e},t.sampleXmlFromSchema=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,o.objectify)(t),i=r.type,a=r.properties,s=r.additionalProperties,u=r.items,l=r.example,c=n.includeReadOnly,f=n.includeWriteOnly,h=r.default,d={},m={},v=t.xml,g=v.name,y=v.prefix,_=v.namespace,b=r.enum,x=void 0,w=void 0;if(!i)if(a||s)i="object";else{if(!u)return;i="array"}if(g=g||"notagname",x=(y?y+":":"")+g,_){m[y?"xmlns:"+y:"xmlns"]=_}if("array"===i&&u){if(u.xml=u.xml||v||{},u.xml.name=u.xml.name||v.name,v.wrapped)return d[x]=[],Array.isArray(l)?l.forEach(function(t){u.example=t,d[x].push(e(u,n))}):Array.isArray(h)?h.forEach(function(t){u.default=t,d[x].push(e(u,n))}):d[x]=[e(u,n)],m&&d[x].push({_attr:m}),d;var k=[];return Array.isArray(l)?(l.forEach(function(t){u.example=t,k.push(e(u,n))}),k):Array.isArray(h)?(h.forEach(function(t){u.default=t,k.push(e(u,n))}),k):e(u,n)}if("object"===i){var E=(0,o.objectify)(a);d[x]=[],l=l||{};for(var S in E)if(E.hasOwnProperty(S)&&(!E[S].readOnly||c)&&(!E[S].writeOnly||f))if(E[S].xml=E[S].xml||{},E[S].xml.attribute){var C=Array.isArray(E[S].enum)&&E[S].enum[0],A=E[S].example,D=E[S].default;m[E[S].xml.name||S]=void 0!==A&&A||void 0!==l[S]&&l[S]||void 0!==D&&D||C||p(E[S])}else{E[S].xml.name=E[S].xml.name||S,void 0===E[S].example&&void 0!==l[S]&&(E[S].example=l[S]);var O=e(E[S]);Array.isArray(O)?d[x]=d[x].concat(O):d[x].push(O)}return!0===s?d[x].push({additionalProp:"Anything can be here"}):s&&d[x].push({additionalProp:p(s)}),m&&d[x].push({_attr:m}),d}return w=void 0!==l?l:void 0!==h?h:Array.isArray(b)?b[0]:p(t),d[x]=m?[{_attr:m},w]:w,d});t.memoizedCreateXMLExample=(0,l.default)(i),t.memoizedSampleFromSchema=(0,l.default)(f)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=se(e).replace(/\t/g," ");if("string"==typeof e)return{type:H,payload:t}}function o(e){return{type:ie,payload:e}}function a(e){return{type:J,payload:e}}function s(e){return{type:G,payload:e}}function u(e,t,n,r,i){return{type:K,payload:{path:e,value:r,paramName:t,paramIn:n,isXml:i}}}function l(e){return{type:ne,payload:{pathMethod:e}}}function c(e,t){return{type:re,payload:{path:e,value:t,key:"consumes_value"}}}function p(e,t){return{type:re,payload:{path:e,value:t,key:"produces_value"}}}function f(e,t){return{type:ee,payload:{path:e,method:t}}}function h(e,t){return{type:te,payload:{path:e,method:t}}}function d(e,t,n){return{type:ae,payload:{scheme:e,path:t,method:n}}}Object.defineProperty(t,"__esModule",{value:!0}),t.execute=t.executeRequest=t.logRequest=t.setMutatedRequest=t.setRequest=t.setResponse=t.validateParams=t.invalidateResolvedSubtreeCache=t.updateResolvedSubtree=t.requestResolvedSubtree=t.resolveSpec=t.parseToJson=t.SET_SCHEME=t.UPDATE_RESOLVED_SUBTREE=t.UPDATE_RESOLVED=t.UPDATE_OPERATION_META_VALUE=t.CLEAR_VALIDATE_PARAMS=t.CLEAR_REQUEST=t.CLEAR_RESPONSE=t.LOG_REQUEST=t.SET_MUTATED_REQUEST=t.SET_REQUEST=t.SET_RESPONSE=t.VALIDATE_PARAMS=t.UPDATE_PARAM=t.UPDATE_JSON=t.UPDATE_URL=t.UPDATE_SPEC=void 0;var m=n(20),v=r(m),g=n(97),y=r(g),_=n(27),b=r(_),x=n(42),w=r(x),k=n(127),E=r(k),S=n(339),C=r(S),A=n(338),D=r(A),O=n(48),M=r(O);t.updateSpec=i,t.updateResolved=o,t.updateUrl=a,t.updateJsonSpec=s,t.changeParam=u,t.clearValidateParams=l,t.changeConsumesValue=c,t.changeProducesValue=p,t.clearResponse=f,t.clearRequest=h,t.setScheme=d;var T=n(215),P=r(T),I=n(7),R=n(1201),j=r(R),N=n(268),F=r(N),B=n(433),L=r(B),q=n(956),z=r(q),U=n(969),W=r(U),V=n(9),H=t.UPDATE_SPEC="spec_update_spec",J=t.UPDATE_URL="spec_update_url",G=t.UPDATE_JSON="spec_update_json",K=t.UPDATE_PARAM="spec_update_param",X=t.VALIDATE_PARAMS="spec_validate_param",Y=t.SET_RESPONSE="spec_set_response",$=t.SET_REQUEST="spec_set_request",Z=t.SET_MUTATED_REQUEST="spec_set_mutated_request",Q=t.LOG_REQUEST="spec_log_request",ee=t.CLEAR_RESPONSE="spec_clear_response",te=t.CLEAR_REQUEST="spec_clear_request",ne=t.CLEAR_VALIDATE_PARAMS="spec_clear_validate_param",re=t.UPDATE_OPERATION_META_VALUE="spec_update_operation_meta_value",ie=t.UPDATE_RESOLVED="spec_update_resolved",oe=t.UPDATE_RESOLVED_SUBTREE="spec_update_resolved_subtree",ae=t.SET_SCHEME="set_scheme",se=function(e){return(0,L.default)(e)?e:""},ue=(t.parseToJson=function(e){return function(t){var n=t.specActions,r=t.specSelectors,i=t.errActions,o=r.specStr,a=null;try{e=e||o(),i.clear({source:"parser"}),a=P.default.safeLoad(e)}catch(e){return console.error(e),i.newSpecErr({source:"parser",level:"error",message:e.reason,line:e.mark&&e.mark.line?e.mark.line+1:void 0})}return a&&"object"===(void 0===a?"undefined":(0,M.default)(a))?n.updateJsonSpec(a):{}}},!1),le=(t.resolveSpec=function(e,t){return function(n){var r=n.specActions,i=n.specSelectors,o=n.errActions,a=n.fn,s=a.fetch,u=a.resolve,l=a.AST,c=n.getConfigs;ue||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),ue=!0);var p=c(),f=p.modelPropertyMacro,h=p.parameterMacro,d=p.requestInterceptor,m=p.responseInterceptor;void 0===e&&(e=i.specJson()),void 0===t&&(t=i.url());var v=l.getLineNumberForPath,g=i.specStr();return u({fetch:s,spec:e,baseDoc:t,modelPropertyMacro:f,parameterMacro:h,requestInterceptor:d,responseInterceptor:m}).then(function(e){var t=e.spec,n=e.errors;if(o.clear({type:"thrown"}),Array.isArray(n)&&n.length>0){var i=n.map(function(e){return console.error(e),e.line=e.fullPath?v(g,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",Object.defineProperty(e,"message",{enumerable:!0,value:e.message}),e});o.newThrownErrBatch(i)}return r.updateResolved(t)})}},[]),ce=(0,z.default)((0,D.default)(C.default.mark(function e(){var t,n,r,i,o,a,s,u,l,c,p,f,h,d,m;return C.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=le.system){e.next=4;break}return console.error("debResolveSubtrees: don't have a system to operate on, aborting."),e.abrupt("return");case 4:if(n=t.errActions,r=t.errSelectors,i=t.fn,o=i.resolveSubtree,a=i.AST.getLineNumberForPath,s=t.specSelectors,u=t.specActions,o){e.next=8;break}return console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing."),e.abrupt("return");case 8:return l=s.specStr(),c=t.getConfigs(),p=c.modelPropertyMacro,f=c.parameterMacro,h=c.requestInterceptor,d=c.responseInterceptor,e.prev=10,e.next=13,le.reduce(function(){var e=(0,D.default)(C.default.mark(function e(t,i){var u,c,m,v,g,y,_;return C.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:return u=e.sent,c=u.resultMap,m=u.specWithCurrentSubtrees,e.next=7,o(m,i,{baseDoc:s.url(),modelPropertyMacro:p,parameterMacro:f,requestInterceptor:h,responseInterceptor:d});case 7:return v=e.sent,g=v.errors,y=v.spec,r.allErrors().size&&n.clear({type:"thrown"}),Array.isArray(g)&&g.length>0&&(_=g.map(function(e){return e.line=e.fullPath?a(l,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",Object.defineProperty(e,"message",{enumerable:!0,value:e.message}),e}),n.newThrownErrBatch(_)),(0,W.default)(c,i,y),(0,W.default)(m,i,y),e.abrupt("return",{resultMap:c,specWithCurrentSubtrees:m});case 15:case"end":return e.stop()}},e,void 0)}));return function(t,n){return e.apply(this,arguments)}}(),E.default.resolve({resultMap:(s.specResolvedSubtree([])||(0,I.Map)()).toJS(),specWithCurrentSubtrees:s.specJson().toJS()}));case 13:m=e.sent,delete le.system,le=[],e.next=21;break;case 18:e.prev=18,e.t0=e.catch(10),console.error(e.t0);case 21:u.updateResolvedSubtree([],m.resultMap);case 22:case"end":return e.stop()}},e,void 0,[[10,18]])})),35),pe=(t.requestResolvedSubtree=function(e){return function(t){le.push(e),le.system=t,ce()}},t.updateResolvedSubtree=function(e,t){return{type:oe,payload:{path:e,value:t}}},t.invalidateResolvedSubtreeCache=function(){return{type:oe,payload:{path:[],value:(0,I.Map)()}}},t.validateParams=function(e,t){return{type:X,payload:{pathMethod:e,isOAS3:t}}},t.setResponse=function(e,t,n){return{payload:{path:e,method:t,res:n},type:Y}},t.setRequest=function(e,t,n){return{payload:{path:e,method:t,req:n},type:$}},t.setMutatedRequest=function(e,t,n){return{payload:{path:e,method:t,req:n},type:Z}},t.logRequest=function(e){return{payload:e,type:Q}},t.executeRequest=function(e){return function(t){var n=t.fn,r=t.specActions,i=t.specSelectors,o=t.getConfigs,a=t.oas3Selectors,s=e.pathName,u=e.method,l=e.operation,c=o(),p=c.requestInterceptor,f=c.responseInterceptor,h=l.toJS();if(e.contextUrl=(0,j.default)(i.url()).toString(),h&&h.operationId?e.operationId=h.operationId:h&&s&&u&&(e.operationId=n.opId(h,s,u)),i.isOAS3()){var d=s+":"+u;e.server=a.selectedServer(d)||a.selectedServer();var m=a.serverVariables({server:e.server,namespace:d}).toJS(),v=a.serverVariables({server:e.server}).toJS();e.serverVariables=(0,w.default)(m).length?m:v,e.requestContentType=a.requestContentType(s,u),e.responseContentType=a.responseContentType(s,u)||"*/*";var g=a.requestBodyValue(s,u);(0,V.isJSONObject)(g)?e.requestBody=JSON.parse(g):e.requestBody=g}var y=(0,b.default)({},e);y=n.buildRequest(y),r.setRequest(e.pathName,e.method,y);var _=function(t){var n=p.apply(this,[t]),i=(0,b.default)({},n);return r.setMutatedRequest(e.pathName,e.method,i),n};e.requestInterceptor=_,e.responseInterceptor=f;var x=Date.now();return n.execute(e).then(function(t){t.duration=Date.now()-x,r.setResponse(e.pathName,e.method,t)}).catch(function(t){return r.setResponse(e.pathName,e.method,{error:!0,err:(0,F.default)(t)})})}},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.path,n=e.method,r=(0,y.default)(e,["path","method"]);return function(e){var i=e.fn.fetch,o=e.specSelectors,a=e.specActions,s=o.specJsonWithResolvedSubtrees().toJS(),u=o.operationScheme(t,n),l=o.contentTypeValues([t,n]).toJS(),c=l.requestContentType,p=l.responseContentType,f=/xml/i.test(c),h=o.parameterValues([t,n],f).toJS();return a.executeRequest((0,v.default)({},r,{fetch:i,spec:s,pathName:t,method:n,parameters:h,requestContentType:c,scheme:u,responseContentType:p}))}});t.execute=pe},function(e,t,n){"use strict";function r(e,t,n,r){return t=t||[],e.getIn(["meta","paths"].concat((0,f.default)(t),["parameters"]),(0,m.fromJS)([])).find(function(e){return m.Map.isMap(e)&&e.get("name")===n&&e.get("in")===r})||(0,m.Map)()}function i(e,t,n){return t=t||[],j.apply(void 0,[e].concat((0,f.default)(t))).get("parameters",(0,m.List)()).reduce(function(e,t){var r=n&&"body"===t.get("in")?t.get("value_xml"):t.get("value");return e.set(t.get("in")+"."+t.get("name"),r)},(0,m.fromJS)({}))}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(m.List.isList(e))return e.some(function(e){return m.Map.isMap(e)&&e.get("in")===t})}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(m.List.isList(e))return e.some(function(e){return m.Map.isMap(e)&&e.get("type")===t})}function s(e,t){t=t||[];var n=b(e).getIn(["paths"].concat((0,f.default)(t)),(0,m.fromJS)({})),r=e.getIn(["meta","paths"].concat((0,f.default)(t)),(0,m.fromJS)({})),i=l(e,t),o=n.get("parameters")||new m.List,s=r.get("consumes_value")?r.get("consumes_value"):a(o,"file")?"multipart/form-data":a(o,"formData")?"application/x-www-form-urlencoded":void 0;return(0,m.fromJS)({requestContentType:s,responseContentType:i})}function u(e,t){return t=t||[],b(e).getIn(["paths"].concat((0,f.default)(t),["consumes"]),(0,m.fromJS)({}))}function l(e,t){t=t||[];var n=b(e).getIn(["paths"].concat((0,f.default)(t)),null);if(null!==n){var r=e.getIn(["meta","paths"].concat((0,f.default)(t),["produces_value"]),null),i=n.getIn(["produces",0],null);return r||i||"application/json"}}function c(e){return m.Map.isMap(e)?e:new m.Map}Object.defineProperty(t,"__esModule",{value:!0}),t.validateBeforeExecute=t.canExecuteScheme=t.operationScheme=t.hasHost=t.parameterWithMeta=t.operationWithMeta=t.allowTryItOutFor=t.mutatedRequestFor=t.requestFor=t.responseFor=t.mutatedRequests=t.requests=t.responses=t.taggedOperations=t.operationsWithTags=t.tagDetails=t.tags=t.operationsWithRootInherited=t.schemes=t.host=t.basePath=t.definitions=t.findDefinition=t.securityDefinitions=t.security=t.produces=t.consumes=t.operations=t.paths=t.semver=t.version=t.externalDocs=t.info=t.isOAS3=t.spec=t.specJsonWithResolvedSubtrees=t.specResolvedSubtree=t.specResolved=t.specJson=t.specSource=t.specStr=t.url=t.lastError=void 0;var p=n(72),f=function(e){return e&&e.__esModule?e:{default:e}}(p);t.getParameter=r,t.parameterValues=i,t.parametersIncludeIn=o,t.parametersIncludeType=a,t.contentTypeValues=s,t.operationConsumes=u,t.currentProducesFor=l;var h=n(60),d=n(9),m=n(7),v=["get","put","post","delete","options","head","patch","trace"],g=function(e){return e||(0,m.Map)()},y=(t.lastError=(0,h.createSelector)(g,function(e){return e.get("lastError")}),t.url=(0,h.createSelector)(g,function(e){return e.get("url")}),t.specStr=(0,h.createSelector)(g,function(e){return e.get("spec")||""}),t.specSource=(0,h.createSelector)(g,function(e){return e.get("specSource")||"not-editor"}),t.specJson=(0,h.createSelector)(g,function(e){return e.get("json",(0,m.Map)())})),_=(t.specResolved=(0,h.createSelector)(g,function(e){return e.get("resolved",(0,m.Map)())}),t.specResolvedSubtree=function(e,t){return e.getIn(["resolvedSubtrees"].concat((0,f.default)(t)),void 0)},function e(t,n){return m.Map.isMap(t)&&m.Map.isMap(n)?n.get("$$ref")?n:(0,m.OrderedMap)().mergeWith(e,t,n):n}),b=t.specJsonWithResolvedSubtrees=(0,h.createSelector)(g,function(e){return(0,m.OrderedMap)().mergeWith(_,e.get("json"),e.get("resolvedSubtrees"))}),x=t.spec=function(e){return y(e)},w=(t.isOAS3=(0,h.createSelector)(x,function(){return!1}),t.info=(0,h.createSelector)(x,function(e){return c(e&&e.get("info"))})),k=(t.externalDocs=(0,h.createSelector)(x,function(e){return c(e&&e.get("externalDocs"))}),t.version=(0,h.createSelector)(w,function(e){return e&&e.get("version")})),E=(t.semver=(0,h.createSelector)(k,function(e){return/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e).slice(1)}),t.paths=(0,h.createSelector)(b,function(e){return e.get("paths")})),S=t.operations=(0,h.createSelector)(E,function(e){if(!e||e.size<1)return(0,m.List)();var t=(0,m.List)();return e&&e.forEach?(e.forEach(function(e,n){if(!e||!e.forEach)return{};e.forEach(function(e,r){v.indexOf(r)<0||(t=t.push((0,m.fromJS)({path:n,method:r,operation:e,id:r+"-"+n})))})}),t):(0,m.List)()}),C=t.consumes=(0,h.createSelector)(x,function(e){return(0,m.Set)(e.get("consumes"))}),A=t.produces=(0,h.createSelector)(x,function(e){return(0,m.Set)(e.get("produces"))}),D=(t.security=(0,h.createSelector)(x,function(e){return e.get("security",(0,m.List)())}),t.securityDefinitions=(0,h.createSelector)(x,function(e){return e.get("securityDefinitions")}),t.findDefinition=function(e,t){var n=e.getIn(["resolvedSubtrees","definitions",t],null),r=e.getIn(["json","definitions",t],null);return n||r||null},t.definitions=(0,h.createSelector)(x,function(e){return e.get("definitions")||(0,m.Map)()}),t.basePath=(0,h.createSelector)(x,function(e){return e.get("basePath")}),t.host=(0,h.createSelector)(x,function(e){return e.get("host")}),t.schemes=(0,h.createSelector)(x,function(e){return e.get("schemes",(0,m.Map)())}),t.operationsWithRootInherited=(0,h.createSelector)(S,C,A,function(e,t,n){return e.map(function(e){return e.update("operation",function(e){if(e){if(!m.Map.isMap(e))return;return e.withMutations(function(e){return e.get("consumes")||e.update("consumes",function(e){return(0,m.Set)(e).merge(t)}),e.get("produces")||e.update("produces",function(e){return(0,m.Set)(e).merge(n)}),e})}return(0,m.Map)()})})})),O=t.tags=(0,h.createSelector)(x,function(e){return e.get("tags",(0,m.List)())}),M=t.tagDetails=function(e,t){return(O(e)||(0,m.List)()).filter(m.Map.isMap).find(function(e){return e.get("name")===t},(0,m.Map)())},T=t.operationsWithTags=(0,h.createSelector)(D,O,function(e,t){return e.reduce(function(e,t){var n=(0,m.Set)(t.getIn(["operation","tags"]));return n.count()<1?e.update("default",(0,m.List)(),function(e){return e.push(t)}):n.reduce(function(e,n){return e.update(n,(0,m.List)(),function(e){return e.push(t)})},e)},t.reduce(function(e,t){return e.set(t.get("name"),(0,m.List)())},(0,m.OrderedMap)()))}),P=(t.taggedOperations=function(e){return function(t){var n=t.getConfigs,r=n(),i=r.tagsSorter,o=r.operationsSorter;return T(e).sortBy(function(e,t){return t},function(e,t){var n="function"==typeof i?i:d.sorters.tagsSorter[i];return n?n(e,t):null}).map(function(t,n){var r="function"==typeof o?o:d.sorters.operationsSorter[o],i=r?t.sort(r):t;return(0,m.Map)({tagDetails:M(e,n),operations:i})})}},t.responses=(0,h.createSelector)(g,function(e){return e.get("responses",(0,m.Map)())})),I=t.requests=(0,h.createSelector)(g,function(e){return e.get("requests",(0,m.Map)())}),R=t.mutatedRequests=(0,h.createSelector)(g,function(e){return e.get("mutatedRequests",(0,m.Map)())}),j=(t.responseFor=function(e,t,n){return P(e).getIn([t,n],null)},t.requestFor=function(e,t,n){return I(e).getIn([t,n],null)},t.mutatedRequestFor=function(e,t,n){return R(e).getIn([t,n],null)},t.allowTryItOutFor=function(){return!0},t.operationWithMeta=function(e,t,n){var r=b(e).getIn(["paths",t,n],(0,m.Map)()),i=e.getIn(["meta","paths",t,n],(0,m.Map)()),o=r.get("parameters",(0,m.List)()).map(function(e){return(0,m.Map)().merge(e,i.getIn(["parameters",e.get("name")+"."+e.get("in")]))});return(0,m.Map)().merge(r,i).set("parameters",o)}),N=(t.parameterWithMeta=function(e,t,n,r){var i=b(e).getIn(["paths"].concat((0,f.default)(t),["parameters"]),(0,m.Map)()),o=e.getIn(["meta","paths"].concat((0,f.default)(t),["parameters"]),(0,m.Map)());return i.map(function(e){return(0,m.Map)().merge(e,o.get(e.get("name")+"."+e.get("in")))}).find(function(e){return e.get("in")===r&&e.get("name")===n},(0,m.Map)())},t.hasHost=(0,h.createSelector)(x,function(e){var t=e.get("host");return"string"==typeof t&&t.length>0&&"/"!==t[0]}),t.operationScheme=function(e,t,n){var r=e.get("url"),i=r.match(/^([a-z][a-z0-9+\-.]*):/),o=Array.isArray(i)?i[1]:null;return e.getIn(["scheme",t,n])||e.getIn(["scheme","_defaultScheme"])||o||""});t.canExecuteScheme=function(e,t,n){return["http","https"].indexOf(N(e,t,n))>-1},t.validateBeforeExecute=function(e,t){t=t||[];var n=e.getIn(["meta","paths"].concat((0,f.default)(t),["parameters"]),(0,m.fromJS)([])),r=!0;return n.forEach(function(e){var t=e.get("errors");t&&t.count()&&(r=!1)}),r}},function(e,t,n){"use strict";function r(e){switch(e._type){case"document":case"block_quote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"link":case"image":case"custom_inline":case"custom_block":return!0;default:return!1}}var i=function(e,t){this.current=e,this.entering=!0===t},o=function(){var e=this.current,t=this.entering;if(null===e)return null;var n=r(e);return t&&n?e._firstChild?(this.current=e._firstChild,this.entering=!0):this.entering=!1:e===this.root?this.current=null:null===e._next?(this.current=e._parent,this.entering=!1):(this.current=e._next,this.entering=!0),{entering:t,node:e}},a=function(e){return{current:e,root:e,entering:!0,next:o,resumeAt:i}},s=function(e,t){this._type=e,this._parent=null,this._firstChild=null,this._lastChild=null,this._prev=null,this._next=null,this._sourcepos=t,this._lastLineBlank=!1,this._open=!0,this._string_content=null,this._literal=null,this._listData={},this._info=null,this._destination=null,this._title=null,this._isFenced=!1,this._fenceChar=null,this._fenceLength=0,this._fenceOffset=null,this._level=null,this._onEnter=null,this._onExit=null},u=s.prototype;Object.defineProperty(u,"isContainer",{get:function(){return r(this)}}),Object.defineProperty(u,"type",{get:function(){return this._type}}),Object.defineProperty(u,"firstChild",{get:function(){return this._firstChild}}),Object.defineProperty(u,"lastChild",{get:function(){return this._lastChild}}),Object.defineProperty(u,"next",{get:function(){return this._next}}),Object.defineProperty(u,"prev",{get:function(){return this._prev}}),Object.defineProperty(u,"parent",{get:function(){return this._parent}}),Object.defineProperty(u,"sourcepos",{get:function(){return this._sourcepos}}),Object.defineProperty(u,"literal",{get:function(){return this._literal},set:function(e){this._literal=e}}),Object.defineProperty(u,"destination",{get:function(){return this._destination},set:function(e){this._destination=e}}),Object.defineProperty(u,"title",{get:function(){return this._title},set:function(e){this._title=e}}),Object.defineProperty(u,"info",{get:function(){return this._info},set:function(e){this._info=e}}),Object.defineProperty(u,"level",{get:function(){return this._level},set:function(e){this._level=e}}),Object.defineProperty(u,"listType",{get:function(){return this._listData.type},set:function(e){this._listData.type=e}}),Object.defineProperty(u,"listTight",{get:function(){return this._listData.tight},set:function(e){this._listData.tight=e}}),Object.defineProperty(u,"listStart",{get:function(){return this._listData.start},set:function(e){this._listData.start=e}}),Object.defineProperty(u,"listDelimiter",{get:function(){return this._listData.delimiter},set:function(e){this._listData.delimiter=e}}),Object.defineProperty(u,"onEnter",{get:function(){return this._onEnter},set:function(e){this._onEnter=e}}),Object.defineProperty(u,"onExit",{get:function(){return this._onExit},set:function(e){this._onExit=e}}),s.prototype.appendChild=function(e){e.unlink(),e._parent=this,this._lastChild?(this._lastChild._next=e,e._prev=this._lastChild,this._lastChild=e):(this._firstChild=e,this._lastChild=e)},s.prototype.prependChild=function(e){e.unlink(),e._parent=this,this._firstChild?(this._firstChild._prev=e,e._next=this._firstChild,this._firstChild=e):(this._firstChild=e,this._lastChild=e)},s.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next),this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev),this._parent=null,this._next=null,this._prev=null},s.prototype.insertAfter=function(e){e.unlink(),e._next=this._next,e._next&&(e._next._prev=e),e._prev=this,this._next=e,e._parent=this._parent,e._next||(e._parent._lastChild=e)},s.prototype.insertBefore=function(e){e.unlink(),e._prev=this._prev,e._prev&&(e._prev._next=e),e._next=this,this._prev=e,e._parent=this._parent,e._prev||(e._parent._firstChild=e)},s.prototype.walker=function(){return new a(this)},e.exports=s},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(54),i=n(184),o=n(76),a=n(132),s=n(615);e.exports=function(e,t){var n=1==e,u=2==e,l=3==e,c=4==e,p=6==e,f=5==e||p,h=t||s;return function(t,s,d){for(var m,v,g=o(t),y=i(g),_=r(s,d,3),b=a(y.length),x=0,w=n?h(t,b):u?h(t,0):void 0;b>x;x++)if((f||x in y)&&(m=y[x],v=_(m,x,g),e))if(n)w[x]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:w.push(m)}else if(c)return!1;return p?-1:l||c?c:w}}},function(e,t,n){var r=n(99),i=n(21)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(29),i=n(24).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(99);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";function r(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=i(t),this.reject=i(n)}var i=n(98);e.exports.f=function(e){return new r(e)}},function(e,t,n){var r=n(38),i=n(624),o=n(183),a=n(190)("IE_PROTO"),s=function(){},u=function(){var e,t=n(182)("iframe"),r=o.length;for(t.style.display="none",n(341).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("