From 2d0be5c500498657c20dfc4082ba4b317cbe9559 Mon Sep 17 00:00:00 2001 From: Yehor Datsenko Date: Tue, 5 Mar 2024 18:18:25 +0200 Subject: [PATCH] removed client go.mod and replaced it's dependencies --- app/api_config.go | 2 +- app/api_log.go | 2 +- app/config.go | 2 +- app/grpc_server.go | 2 +- app/log.go | 4 +- app/watchers.go | 2 +- go.mod | 11 +- go.sum | 19 +- pkg/client/Makefile | 21 - pkg/client/api/config_service.pb.go | 1420 ---------------------- pkg/client/api/config_service_grpc.pb.go | 442 ------- pkg/client/api/import.pb.go | 246 ---- pkg/client/go.mod | 21 - pkg/client/go.sum | 46 - pkg/client/grpc.go | 2 +- pkg/client/proto/config_service.proto | 186 --- pkg/client/proto/import.proto | 28 - pkg/client/protodep.lock | 10 - pkg/client/protodep.toml | 12 - 19 files changed, 24 insertions(+), 2454 deletions(-) delete mode 100644 pkg/client/Makefile delete mode 100644 pkg/client/api/config_service.pb.go delete mode 100644 pkg/client/api/config_service_grpc.pb.go delete mode 100644 pkg/client/api/import.pb.go delete mode 100644 pkg/client/go.mod delete mode 100644 pkg/client/go.sum delete mode 100644 pkg/client/proto/config_service.proto delete mode 100644 pkg/client/proto/import.proto delete mode 100644 pkg/client/protodep.lock delete mode 100644 pkg/client/protodep.toml diff --git a/app/api_config.go b/app/api_config.go index 9e1cd45..d668d0c 100644 --- a/app/api_config.go +++ b/app/api_config.go @@ -4,8 +4,8 @@ import ( "context" "github.com/webitel/engine/auth_manager" + proto "github.com/webitel/logger/api/native" "github.com/webitel/logger/model" - proto "github.com/webitel/protos/logger" errors "github.com/webitel/engine/model" ) diff --git a/app/api_log.go b/app/api_log.go index ac52ca7..92810b2 100644 --- a/app/api_log.go +++ b/app/api_log.go @@ -6,7 +6,7 @@ import ( "github.com/webitel/engine/auth_manager" "github.com/webitel/logger/model" - proto "github.com/webitel/protos/logger" + proto "github.com/webitel/logger/api/native" errors "github.com/webitel/engine/model" ) diff --git a/app/config.go b/app/config.go index 79dbf23..24dfb7c 100644 --- a/app/config.go +++ b/app/config.go @@ -12,8 +12,8 @@ import ( "github.com/webitel/engine/auth_manager" errors "github.com/webitel/engine/model" + proto "github.com/webitel/logger/api/native" "github.com/webitel/logger/model" - proto "github.com/webitel/protos/logger" ) func (a *App) UpdateConfig(ctx context.Context, in *proto.UpdateConfigRequest, domainId int, userId int) (*proto.Config, errors.AppError) { diff --git a/app/grpc_server.go b/app/grpc_server.go index 226d72c..f3d2a92 100644 --- a/app/grpc_server.go +++ b/app/grpc_server.go @@ -13,7 +13,7 @@ import ( errors "github.com/webitel/engine/model" "github.com/webitel/logger/model" - proto "github.com/webitel/protos/logger" + proto "github.com/webitel/logger/api/native" "github.com/webitel/wlog" "google.golang.org/grpc" "google.golang.org/grpc/codes" diff --git a/app/log.go b/app/log.go index 475b75f..b9d7543 100644 --- a/app/log.go +++ b/app/log.go @@ -5,13 +5,13 @@ import ( "fmt" "io" - strg "github.com/webitel/protos/storage" + strg "github.com/webitel/logger/api/storage" "github.com/webitel/logger/model" "time" - proto "github.com/webitel/protos/logger" + proto "github.com/webitel/logger/api/native" errors "github.com/webitel/engine/model" ) diff --git a/app/watchers.go b/app/watchers.go index dacdb48..1227765 100644 --- a/app/watchers.go +++ b/app/watchers.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - proto "github.com/webitel/protos/logger" + proto "github.com/webitel/logger/api/native" "github.com/webitel/wlog" diff --git a/go.mod b/go.mod index ce6ec01..8c0fbdd 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,6 @@ module github.com/webitel/logger go 1.20 - require ( github.com/BoRuDar/configuration/v4 v4.2.2 github.com/Masterminds/squirrel v1.5.4 @@ -14,9 +13,10 @@ require ( github.com/rabbitmq/amqp091-go v1.8.1 github.com/webitel/engine v0.0.0-20230929132314-e8f08f52c140 github.com/webitel/protos/logger v0.0.0-20231012100410-2e28f14ab59e - github.com/webitel/protos/storage v0.0.0-20231101132502-15455cfe862e github.com/webitel/wlog v0.0.0-20220608103744-93b33e61bd28 + google.golang.org/genproto/googleapis/api v0.0.0-20231009173412-8bfb1ae86b6c google.golang.org/grpc v1.58.3 + google.golang.org/protobuf v1.31.0 ) require ( @@ -88,7 +88,6 @@ require ( github.com/gostaticanalysis/comment v1.4.2 // indirect github.com/gostaticanalysis/forcetypeassert v0.1.0 // indirect github.com/gostaticanalysis/nilerr v0.1.1 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.2 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect @@ -97,6 +96,7 @@ require ( github.com/hashicorp/go-rootcerts v1.0.2 // indirect github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/golang-lru v0.5.4 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/hashicorp/serf v0.10.1 // indirect github.com/hexops/gotextdiff v1.0.3 // indirect @@ -111,6 +111,7 @@ require ( github.com/kisielk/errcheck v1.6.3 // indirect github.com/kisielk/gotool v1.0.0 // indirect github.com/kkHAIKE/contextcheck v1.1.4 // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/kulti/thelper v0.6.3 // indirect github.com/kunwardeep/paralleltest v1.0.6 // indirect github.com/kyoh86/exportloopref v0.1.11 // indirect @@ -191,7 +192,6 @@ require ( github.com/ultraware/funlen v0.0.3 // indirect github.com/ultraware/whitespace v0.0.5 // indirect github.com/uudashr/gocognit v1.0.6 // indirect - github.com/webitel/protos/engine v0.0.0-20230929083624-34e29d2feb6a // indirect github.com/yagipy/maintidx v1.0.0 // indirect github.com/yeya24/promlinter v0.2.0 // indirect gitlab.com/bosi/decorder v0.2.3 // indirect @@ -209,9 +209,8 @@ require ( golang.org/x/tools v0.7.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20231002182017-d307bd883b97 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20231009173412-8bfb1ae86b6c // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect - google.golang.org/protobuf v1.31.0 // indirect + gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index 5fc00e0..9d34e36 100644 --- a/go.sum +++ b/go.sum @@ -121,6 +121,7 @@ github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnht github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I= github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/curioswitch/go-reassign v0.2.0 h1:G9UZyOcpk/d7Gd6mqYgd8XYWFMw/znxwGDUstnC9DIo= github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= github.com/daixiang0/gci v0.10.1 h1:eheNA3ljF6SxnPD/vE4lCBusVHmV3Rs3dkKvFrJ7MR0= @@ -299,8 +300,6 @@ github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3 github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= github.com/gostaticanalysis/testutil v0.4.0 h1:nhdCmubdmDF6VEatUNjgUZBJKWRqugoISdUv3PPQgHY= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.2 h1:dygLcbEBA+t/P7ck6a8AkXv6juQ4cK0RHBoh32jxhHM= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.2/go.mod h1:Ap9RLCIJVtgQg1/BBgVEfypOAySvvlcpcVQkSzJCH4Y= github.com/hashicorp/consul/api v1.25.1 h1:CqrdhYzc8XZuPnhIYZWH45toM0LB9ZeYr/gvpLVI3PE= github.com/hashicorp/consul/api v1.25.1/go.mod h1:iiLVwR/htV7mas/sy0O+XSuEnrdBUUydemjxcUrAt4g= github.com/hashicorp/consul/sdk v0.14.1 h1:ZiwE2bKb+zro68sWzZ1SgHF3kRMBZ94TwOCFRF4ylPs= @@ -337,6 +336,8 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ 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/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= +github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= 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= @@ -389,10 +390,13 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxv 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.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kulti/thelper v0.6.3 h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs= github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= github.com/kunwardeep/paralleltest v1.0.6 h1:FCKYMF1OF2+RveWlABsdnmsvJrei5aoyZoaGS+Ugg8g= @@ -504,6 +508,7 @@ github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3v github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml/v2 v2.0.5 h1:ipoSadvV8oGUjnUbMub59IDPPwfxF694nG/jwbMiyQg= github.com/pelletier/go-toml/v2 v2.0.5/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaFVNZzmWyNfXas= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= 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= @@ -552,6 +557,7 @@ github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8 github.com/rabbitmq/amqp091-go v1.8.1 h1:RejT1SBUim5doqcL6s7iN6SBmsQqyTgXb1xMlH0h1hA= github.com/rabbitmq/amqp091-go v1.8.1/go.mod h1:+jPrT9iY2eLjRaMSRHUhc3z14E/l85kv/f+6luSD3pc= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -653,14 +659,10 @@ github.com/uudashr/gocognit v1.0.6 h1:2Cgi6MweCsdB6kpcVQp7EW4U23iBFQWfTXiWlyp842 github.com/uudashr/gocognit v1.0.6/go.mod h1:nAIUuVBnYU7pcninia3BHOvQkpQCeO76Uscky5BOwcY= github.com/webitel/engine v0.0.0-20230929132314-e8f08f52c140 h1:3lSm63Vo6hOADNCtg8cC/OHQTjatJuje9OAKi0RwPOU= github.com/webitel/engine v0.0.0-20230929132314-e8f08f52c140/go.mod h1:hEYpfgh7CREolnKy1Hhaesyn2re/Oa7XXAeRiRWQLdw= -github.com/webitel/protos/engine v0.0.0-20230929083624-34e29d2feb6a h1:rvTwN/P8Nq4R0c2nfn/x49M8gqdmf5i5pwQNb/4K0RY= -github.com/webitel/protos/engine v0.0.0-20230929083624-34e29d2feb6a/go.mod h1:1lEriDhFFtxFDbsQVTBUFuP9q1+OqCNg8DBJhMlbcPE= +github.com/webitel/logger/pkg/client v0.0.0-20240305153104-41ed8bdc4799 h1:vfMwiYQ9VlI8JL/ZZph6BuCxCeXaBaGlvHAZX8TcPxo= +github.com/webitel/logger/pkg/client v0.0.0-20240305153104-41ed8bdc4799/go.mod h1:IzpgRxv+D9ci6U/dZQ6x5nJl2Rcw/fyYCHoLt4+RWhQ= github.com/webitel/protos/logger v0.0.0-20231012100410-2e28f14ab59e h1:sx3uZ4YQB/HsC8o7nfyUtNXEf0BGI/184HyrzFHEGok= github.com/webitel/protos/logger v0.0.0-20231012100410-2e28f14ab59e/go.mod h1:GHdxjZvyVJtl6gdI86Z3rOyq7Mjid7uP0n0umEDbC3M= -github.com/webitel/protos/storage v0.0.0-20231024111420-9edb95d34039 h1:miDb3yyyF39uo4/tE38z8SbUYGdSoRuW6WTQ7qKKVbQ= -github.com/webitel/protos/storage v0.0.0-20231024111420-9edb95d34039/go.mod h1:b2PCpMDFhtASZ++ttDyEI1dbipKstRJGgYB4YuqIMu0= -github.com/webitel/protos/storage v0.0.0-20231101132502-15455cfe862e h1:ZxDol5fkeG/uu/36U8dGVCgNEBGDJuj/iJgiBkF+k44= -github.com/webitel/protos/storage v0.0.0-20231101132502-15455cfe862e/go.mod h1:b2PCpMDFhtASZ++ttDyEI1dbipKstRJGgYB4YuqIMu0= github.com/webitel/wlog v0.0.0-20220608103744-93b33e61bd28 h1:24KMgyr2jjLgfBJWDSVKDdLo27Z9uXU+WVHJJ4J58t8= github.com/webitel/wlog v0.0.0-20220608103744-93b33e61bd28/go.mod h1:TZS9UCbaIaCiUCWAIZTlX4hDbtZOZ51JohoJM/GbtR0= github.com/yagipy/maintidx v1.0.0 h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM= @@ -1102,6 +1104,7 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/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/go-playground/assert.v1 v1.2.1 h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXadIrXTM= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= diff --git a/pkg/client/Makefile b/pkg/client/Makefile deleted file mode 100644 index 39b9c02..0000000 --- a/pkg/client/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -.PHONY: all - -all: update_proto generate_proto generate_swagger - - -update_proto: - protodep up --use-https - -generate_proto: - protoc -I/usr/local/include -I./proto -I./ \ - -I./proto -I /home/dtsnko/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.16.0/third_party/googleapis \ - --go-grpc_out=./api --go-grpc_opt=paths=source_relative \ - --go_opt=paths=source_relative \ - --go_out=./api ./proto/*.proto - - -generate_swagger: - protoc -I/usr/local/include -I./proto -I /home/dtsnko/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.16.0/third_party/googleapis \ - -I /home/dtsnko/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.16.0 \ - --swagger_out=version=false,json_names_for_fields=false,allow_delete_body=true,merge_file_name=logger,allow_merge=true:./swagger \ - ./proto/*.proto \ No newline at end of file diff --git a/pkg/client/api/config_service.pb.go b/pkg/client/api/config_service.pb.go deleted file mode 100644 index 8c52479..0000000 --- a/pkg/client/api/config_service.pb.go +++ /dev/null @@ -1,1420 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.6 -// source: config_service.proto - -package proto - -import ( - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Configs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - Next bool `protobuf:"varint,2,opt,name=next,proto3" json:"next,omitempty"` - Items []*Config `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` -} - -func (x *Configs) Reset() { - *x = Configs{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Configs) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Configs) ProtoMessage() {} - -func (x *Configs) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Configs.ProtoReflect.Descriptor instead. -func (*Configs) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{0} -} - -func (x *Configs) GetPage() int32 { - if x != nil { - return x.Page - } - return 0 -} - -func (x *Configs) GetNext() bool { - if x != nil { - return x.Next - } - return false -} - -func (x *Configs) GetItems() []*Config { - if x != nil { - return x.Items - } - return nil -} - -type SystemObjects struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Items []*Lookup `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` -} - -func (x *SystemObjects) Reset() { - *x = SystemObjects{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SystemObjects) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SystemObjects) ProtoMessage() {} - -func (x *SystemObjects) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SystemObjects.ProtoReflect.Descriptor instead. -func (*SystemObjects) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{1} -} - -func (x *SystemObjects) GetItems() []*Lookup { - if x != nil { - return x.Items - } - return nil -} - -type ReadSystemObjectsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IncludeExisting bool `protobuf:"varint,1,opt,name=include_existing,json=includeExisting,proto3" json:"include_existing,omitempty"` -} - -func (x *ReadSystemObjectsRequest) Reset() { - *x = ReadSystemObjectsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReadSystemObjectsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReadSystemObjectsRequest) ProtoMessage() {} - -func (x *ReadSystemObjectsRequest) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReadSystemObjectsRequest.ProtoReflect.Descriptor instead. -func (*ReadSystemObjectsRequest) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{2} -} - -func (x *ReadSystemObjectsRequest) GetIncludeExisting() bool { - if x != nil { - return x.IncludeExisting - } - return false -} - -type Empty struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Empty) Reset() { - *x = Empty{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Empty) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Empty) ProtoMessage() {} - -func (x *Empty) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Empty.ProtoReflect.Descriptor instead. -func (*Empty) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{3} -} - -type Config struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Object *Lookup `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` - Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` - DaysToStore int32 `protobuf:"varint,4,opt,name=days_to_store,json=daysToStore,proto3" json:"days_to_store,omitempty"` - Period int32 `protobuf:"varint,5,opt,name=period,proto3" json:"period,omitempty"` - Storage *Lookup `protobuf:"bytes,6,opt,name=storage,proto3" json:"storage,omitempty"` - Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *Config) Reset() { - *x = Config{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Config) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Config) ProtoMessage() {} - -func (x *Config) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Config.ProtoReflect.Descriptor instead. -func (*Config) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{4} -} - -func (x *Config) GetId() int32 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *Config) GetObject() *Lookup { - if x != nil { - return x.Object - } - return nil -} - -func (x *Config) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -func (x *Config) GetDaysToStore() int32 { - if x != nil { - return x.DaysToStore - } - return 0 -} - -func (x *Config) GetPeriod() int32 { - if x != nil { - return x.Period - } - return 0 -} - -func (x *Config) GetStorage() *Lookup { - if x != nil { - return x.Storage - } - return nil -} - -func (x *Config) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -type DeleteConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigId int32 `protobuf:"varint,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"` -} - -func (x *DeleteConfigRequest) Reset() { - *x = DeleteConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteConfigRequest) ProtoMessage() {} - -func (x *DeleteConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteConfigRequest.ProtoReflect.Descriptor instead. -func (*DeleteConfigRequest) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{5} -} - -func (x *DeleteConfigRequest) GetConfigId() int32 { - if x != nil { - return x.ConfigId - } - return 0 -} - -type ConfigStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IsEnabled bool `protobuf:"varint,1,opt,name=is_enabled,json=isEnabled,proto3" json:"is_enabled,omitempty"` -} - -func (x *ConfigStatus) Reset() { - *x = ConfigStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ConfigStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ConfigStatus) ProtoMessage() {} - -func (x *ConfigStatus) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ConfigStatus.ProtoReflect.Descriptor instead. -func (*ConfigStatus) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{6} -} - -func (x *ConfigStatus) GetIsEnabled() bool { - if x != nil { - return x.IsEnabled - } - return false -} - -type DeleteConfigBulkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Ids []int32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` -} - -func (x *DeleteConfigBulkRequest) Reset() { - *x = DeleteConfigBulkRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteConfigBulkRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteConfigBulkRequest) ProtoMessage() {} - -func (x *DeleteConfigBulkRequest) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteConfigBulkRequest.ProtoReflect.Descriptor instead. -func (*DeleteConfigBulkRequest) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{7} -} - -func (x *DeleteConfigBulkRequest) GetIds() []int32 { - if x != nil { - return x.Ids - } - return nil -} - -type ReadConfigByObjectIdRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ObjectId int32 `protobuf:"varint,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` - DomainId int32 `protobuf:"varint,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` -} - -func (x *ReadConfigByObjectIdRequest) Reset() { - *x = ReadConfigByObjectIdRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReadConfigByObjectIdRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReadConfigByObjectIdRequest) ProtoMessage() {} - -func (x *ReadConfigByObjectIdRequest) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReadConfigByObjectIdRequest.ProtoReflect.Descriptor instead. -func (*ReadConfigByObjectIdRequest) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{8} -} - -func (x *ReadConfigByObjectIdRequest) GetObjectId() int32 { - if x != nil { - return x.ObjectId - } - return 0 -} - -func (x *ReadConfigByObjectIdRequest) GetDomainId() int32 { - if x != nil { - return x.DomainId - } - return 0 -} - -type CheckConfigStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ObjectName string `protobuf:"bytes,1,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` - DomainId int64 `protobuf:"varint,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` -} - -func (x *CheckConfigStatusRequest) Reset() { - *x = CheckConfigStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CheckConfigStatusRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CheckConfigStatusRequest) ProtoMessage() {} - -func (x *CheckConfigStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CheckConfigStatusRequest.ProtoReflect.Descriptor instead. -func (*CheckConfigStatusRequest) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{9} -} - -func (x *CheckConfigStatusRequest) GetObjectName() string { - if x != nil { - return x.ObjectName - } - return "" -} - -func (x *CheckConfigStatusRequest) GetDomainId() int64 { - if x != nil { - return x.DomainId - } - return 0 -} - -type ReadConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigId int32 `protobuf:"varint,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"` // int32 domainId = 8; -} - -func (x *ReadConfigRequest) Reset() { - *x = ReadConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReadConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReadConfigRequest) ProtoMessage() {} - -func (x *ReadConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReadConfigRequest.ProtoReflect.Descriptor instead. -func (*ReadConfigRequest) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{10} -} - -func (x *ReadConfigRequest) GetConfigId() int32 { - if x != nil { - return x.ConfigId - } - return 0 -} - -type SearchConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - Q string `protobuf:"bytes,3,opt,name=q,proto3" json:"q,omitempty"` - Sort string `protobuf:"bytes,4,opt,name=sort,proto3" json:"sort,omitempty"` - Fields []string `protobuf:"bytes,5,rep,name=fields,proto3" json:"fields,omitempty"` - // NOT USED - Object []AvailableSystemObjects `protobuf:"varint,6,rep,packed,name=object,proto3,enum=logger.AvailableSystemObjects" json:"object,omitempty"` -} - -func (x *SearchConfigRequest) Reset() { - *x = SearchConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SearchConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SearchConfigRequest) ProtoMessage() {} - -func (x *SearchConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SearchConfigRequest.ProtoReflect.Descriptor instead. -func (*SearchConfigRequest) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{11} -} - -func (x *SearchConfigRequest) GetPage() int32 { - if x != nil { - return x.Page - } - return 0 -} - -func (x *SearchConfigRequest) GetSize() int32 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *SearchConfigRequest) GetQ() string { - if x != nil { - return x.Q - } - return "" -} - -func (x *SearchConfigRequest) GetSort() string { - if x != nil { - return x.Sort - } - return "" -} - -func (x *SearchConfigRequest) GetFields() []string { - if x != nil { - return x.Fields - } - return nil -} - -func (x *SearchConfigRequest) GetObject() []AvailableSystemObjects { - if x != nil { - return x.Object - } - return nil -} - -type UpdateConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigId int32 `protobuf:"varint,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"` - Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` - DaysToStore int32 `protobuf:"varint,3,opt,name=days_to_store,json=daysToStore,proto3" json:"days_to_store,omitempty"` - Period int32 `protobuf:"varint,4,opt,name=period,proto3" json:"period,omitempty"` - Storage *Lookup `protobuf:"bytes,5,opt,name=storage,proto3" json:"storage,omitempty"` - Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *UpdateConfigRequest) Reset() { - *x = UpdateConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateConfigRequest) ProtoMessage() {} - -func (x *UpdateConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateConfigRequest.ProtoReflect.Descriptor instead. -func (*UpdateConfigRequest) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{12} -} - -func (x *UpdateConfigRequest) GetConfigId() int32 { - if x != nil { - return x.ConfigId - } - return 0 -} - -func (x *UpdateConfigRequest) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -func (x *UpdateConfigRequest) GetDaysToStore() int32 { - if x != nil { - return x.DaysToStore - } - return 0 -} - -func (x *UpdateConfigRequest) GetPeriod() int32 { - if x != nil { - return x.Period - } - return 0 -} - -func (x *UpdateConfigRequest) GetStorage() *Lookup { - if x != nil { - return x.Storage - } - return nil -} - -func (x *UpdateConfigRequest) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -type PatchConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigId int32 `protobuf:"varint,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"` - Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` - DaysToStore int32 `protobuf:"varint,3,opt,name=days_to_store,json=daysToStore,proto3" json:"days_to_store,omitempty"` - Period int32 `protobuf:"varint,4,opt,name=period,proto3" json:"period,omitempty"` - Storage *Lookup `protobuf:"bytes,5,opt,name=storage,proto3" json:"storage,omitempty"` - Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` - Fields []string `protobuf:"bytes,7,rep,name=fields,proto3" json:"fields,omitempty"` -} - -func (x *PatchConfigRequest) Reset() { - *x = PatchConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PatchConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PatchConfigRequest) ProtoMessage() {} - -func (x *PatchConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PatchConfigRequest.ProtoReflect.Descriptor instead. -func (*PatchConfigRequest) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{13} -} - -func (x *PatchConfigRequest) GetConfigId() int32 { - if x != nil { - return x.ConfigId - } - return 0 -} - -func (x *PatchConfigRequest) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -func (x *PatchConfigRequest) GetDaysToStore() int32 { - if x != nil { - return x.DaysToStore - } - return 0 -} - -func (x *PatchConfigRequest) GetPeriod() int32 { - if x != nil { - return x.Period - } - return 0 -} - -func (x *PatchConfigRequest) GetStorage() *Lookup { - if x != nil { - return x.Storage - } - return nil -} - -func (x *PatchConfigRequest) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *PatchConfigRequest) GetFields() []string { - if x != nil { - return x.Fields - } - return nil -} - -type CreateConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Object *Lookup `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` - Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` - DaysToStore int32 `protobuf:"varint,3,opt,name=days_to_store,json=daysToStore,proto3" json:"days_to_store,omitempty"` - Period int32 `protobuf:"varint,4,opt,name=period,proto3" json:"period,omitempty"` - Storage *Lookup `protobuf:"bytes,5,opt,name=storage,proto3" json:"storage,omitempty"` - Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *CreateConfigRequest) Reset() { - *x = CreateConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_config_service_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateConfigRequest) ProtoMessage() {} - -func (x *CreateConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_config_service_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateConfigRequest.ProtoReflect.Descriptor instead. -func (*CreateConfigRequest) Descriptor() ([]byte, []int) { - return file_config_service_proto_rawDescGZIP(), []int{14} -} - -func (x *CreateConfigRequest) GetObject() *Lookup { - if x != nil { - return x.Object - } - return nil -} - -func (x *CreateConfigRequest) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -func (x *CreateConfigRequest) GetDaysToStore() int32 { - if x != nil { - return x.DaysToStore - } - return 0 -} - -func (x *CreateConfigRequest) GetPeriod() int32 { - if x != nil { - return x.Period - } - return 0 -} - -func (x *CreateConfigRequest) GetStorage() *Lookup { - if x != nil { - return x.Storage - } - return nil -} - -func (x *CreateConfigRequest) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -var File_config_service_proto protoreflect.FileDescriptor - -var file_config_service_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x1a, 0x0c, - 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x07, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x65, 0x78, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x12, 0x24, 0x0a, - 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, - 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x05, 0x69, 0x74, - 0x65, 0x6d, 0x73, 0x22, 0x35, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4f, 0x62, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x6f, - 0x6b, 0x75, 0x70, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x45, 0x0a, 0x18, 0x52, 0x65, - 0x61, 0x64, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, - 0x65, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, - 0x67, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0xe2, 0x01, 0x0a, 0x06, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x4c, - 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, - 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x64, 0x61, 0x79, 0x73, 0x5f, - 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, - 0x64, 0x61, 0x79, 0x73, 0x54, 0x6f, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, - 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x70, 0x65, 0x72, - 0x69, 0x6f, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x4c, 0x6f, - 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x20, 0x0a, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x32, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x22, 0x2b, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x42, 0x75, 0x6c, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, - 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, - 0x57, 0x0a, 0x1b, 0x52, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x79, 0x4f, - 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, - 0x0a, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x08, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x58, 0x0a, 0x18, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x49, 0x64, 0x22, 0x30, 0x0a, 0x11, 0x52, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x49, 0x64, 0x22, 0xaf, 0x01, 0x0a, 0x13, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x71, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x01, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x36, - 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, - 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, - 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x06, - 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0xd4, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, - 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x64, 0x61, 0x79, 0x73, 0x5f, 0x74, 0x6f, - 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x64, 0x61, - 0x79, 0x73, 0x54, 0x6f, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x65, 0x72, - 0x69, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, - 0x64, 0x12, 0x28, 0x0a, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, - 0x75, 0x70, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xeb, 0x01, - 0x0a, 0x12, 0x50, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, - 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x64, - 0x61, 0x79, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0b, 0x64, 0x61, 0x79, 0x73, 0x54, 0x6f, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, - 0x72, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x07, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0xdf, 0x01, 0x0a, 0x13, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x6f, - 0x6b, 0x75, 0x70, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x65, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x64, 0x61, 0x79, 0x73, 0x5f, 0x74, 0x6f, - 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x64, 0x61, - 0x79, 0x73, 0x54, 0x6f, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x65, 0x72, - 0x69, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, - 0x64, 0x12, 0x28, 0x0a, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, - 0x75, 0x70, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xae, 0x07, - 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x62, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x1b, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x6c, - 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x25, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, 0x1a, 0x1a, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, - 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, - 0x69, 0x64, 0x7d, 0x12, 0x60, 0x0a, 0x0b, 0x50, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x1a, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x74, 0x63, - 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, - 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x25, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, 0x32, 0x1a, 0x2f, 0x6c, 0x6f, 0x67, 0x67, - 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x56, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x01, 0x2a, 0x22, 0x0e, 0x2f, - 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5e, 0x0a, - 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x2e, - 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x6c, 0x6f, 0x67, - 0x67, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1c, 0x2a, 0x1a, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x5d, 0x0a, - 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x75, 0x6c, - 0x6b, 0x12, 0x1f, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x75, 0x6c, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x01, 0x2a, 0x2a, 0x0e, 0x2f, 0x6c, - 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4d, 0x0a, 0x14, - 0x52, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x79, 0x4f, 0x62, 0x6a, 0x65, - 0x63, 0x74, 0x49, 0x64, 0x12, 0x23, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x52, 0x65, - 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x79, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, - 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x67, - 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x11, 0x43, - 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x20, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x11, 0x52, 0x65, - 0x61, 0x64, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, - 0x20, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x53, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x15, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, - 0x12, 0x19, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x5b, 0x0a, 0x0a, 0x52, - 0x65, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x19, 0x2e, 0x6c, 0x6f, 0x67, 0x67, - 0x65, 0x72, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x6c, - 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x7b, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x54, 0x0a, 0x0c, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, - 0x72, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, - 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x16, - 0x5a, 0x14, 0x77, 0x65, 0x62, 0x69, 0x74, 0x65, 0x6c, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_config_service_proto_rawDescOnce sync.Once - file_config_service_proto_rawDescData = file_config_service_proto_rawDesc -) - -func file_config_service_proto_rawDescGZIP() []byte { - file_config_service_proto_rawDescOnce.Do(func() { - file_config_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_config_service_proto_rawDescData) - }) - return file_config_service_proto_rawDescData -} - -var file_config_service_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_config_service_proto_goTypes = []interface{}{ - (*Configs)(nil), // 0: logger.Configs - (*SystemObjects)(nil), // 1: logger.SystemObjects - (*ReadSystemObjectsRequest)(nil), // 2: logger.ReadSystemObjectsRequest - (*Empty)(nil), // 3: logger.Empty - (*Config)(nil), // 4: logger.Config - (*DeleteConfigRequest)(nil), // 5: logger.DeleteConfigRequest - (*ConfigStatus)(nil), // 6: logger.ConfigStatus - (*DeleteConfigBulkRequest)(nil), // 7: logger.DeleteConfigBulkRequest - (*ReadConfigByObjectIdRequest)(nil), // 8: logger.ReadConfigByObjectIdRequest - (*CheckConfigStatusRequest)(nil), // 9: logger.CheckConfigStatusRequest - (*ReadConfigRequest)(nil), // 10: logger.ReadConfigRequest - (*SearchConfigRequest)(nil), // 11: logger.SearchConfigRequest - (*UpdateConfigRequest)(nil), // 12: logger.UpdateConfigRequest - (*PatchConfigRequest)(nil), // 13: logger.PatchConfigRequest - (*CreateConfigRequest)(nil), // 14: logger.CreateConfigRequest - (*Lookup)(nil), // 15: logger.Lookup - (AvailableSystemObjects)(0), // 16: logger.AvailableSystemObjects -} -var file_config_service_proto_depIdxs = []int32{ - 4, // 0: logger.Configs.items:type_name -> logger.Config - 15, // 1: logger.SystemObjects.items:type_name -> logger.Lookup - 15, // 2: logger.Config.object:type_name -> logger.Lookup - 15, // 3: logger.Config.storage:type_name -> logger.Lookup - 16, // 4: logger.SearchConfigRequest.object:type_name -> logger.AvailableSystemObjects - 15, // 5: logger.UpdateConfigRequest.storage:type_name -> logger.Lookup - 15, // 6: logger.PatchConfigRequest.storage:type_name -> logger.Lookup - 15, // 7: logger.CreateConfigRequest.object:type_name -> logger.Lookup - 15, // 8: logger.CreateConfigRequest.storage:type_name -> logger.Lookup - 12, // 9: logger.ConfigService.UpdateConfig:input_type -> logger.UpdateConfigRequest - 13, // 10: logger.ConfigService.PatchConfig:input_type -> logger.PatchConfigRequest - 14, // 11: logger.ConfigService.CreateConfig:input_type -> logger.CreateConfigRequest - 5, // 12: logger.ConfigService.DeleteConfig:input_type -> logger.DeleteConfigRequest - 7, // 13: logger.ConfigService.DeleteConfigBulk:input_type -> logger.DeleteConfigBulkRequest - 8, // 14: logger.ConfigService.ReadConfigByObjectId:input_type -> logger.ReadConfigByObjectIdRequest - 9, // 15: logger.ConfigService.CheckConfigStatus:input_type -> logger.CheckConfigStatusRequest - 2, // 16: logger.ConfigService.ReadSystemObjects:input_type -> logger.ReadSystemObjectsRequest - 10, // 17: logger.ConfigService.ReadConfig:input_type -> logger.ReadConfigRequest - 11, // 18: logger.ConfigService.SearchConfig:input_type -> logger.SearchConfigRequest - 4, // 19: logger.ConfigService.UpdateConfig:output_type -> logger.Config - 4, // 20: logger.ConfigService.PatchConfig:output_type -> logger.Config - 4, // 21: logger.ConfigService.CreateConfig:output_type -> logger.Config - 3, // 22: logger.ConfigService.DeleteConfig:output_type -> logger.Empty - 3, // 23: logger.ConfigService.DeleteConfigBulk:output_type -> logger.Empty - 4, // 24: logger.ConfigService.ReadConfigByObjectId:output_type -> logger.Config - 6, // 25: logger.ConfigService.CheckConfigStatus:output_type -> logger.ConfigStatus - 1, // 26: logger.ConfigService.ReadSystemObjects:output_type -> logger.SystemObjects - 4, // 27: logger.ConfigService.ReadConfig:output_type -> logger.Config - 0, // 28: logger.ConfigService.SearchConfig:output_type -> logger.Configs - 19, // [19:29] is the sub-list for method output_type - 9, // [9:19] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name -} - -func init() { file_config_service_proto_init() } -func file_config_service_proto_init() { - if File_config_service_proto != nil { - return - } - file_import_proto_init() - if !protoimpl.UnsafeEnabled { - file_config_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Configs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SystemObjects); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadSystemObjectsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Empty); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Config); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteConfigBulkRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadConfigByObjectIdRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckConfigStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PatchConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_config_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_config_service_proto_rawDesc, - NumEnums: 0, - NumMessages: 15, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_config_service_proto_goTypes, - DependencyIndexes: file_config_service_proto_depIdxs, - MessageInfos: file_config_service_proto_msgTypes, - }.Build() - File_config_service_proto = out.File - file_config_service_proto_rawDesc = nil - file_config_service_proto_goTypes = nil - file_config_service_proto_depIdxs = nil -} diff --git a/pkg/client/api/config_service_grpc.pb.go b/pkg/client/api/config_service_grpc.pb.go deleted file mode 100644 index 0461273..0000000 --- a/pkg/client/api/config_service_grpc.pb.go +++ /dev/null @@ -1,442 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v3.21.6 -// source: config_service.proto - -package proto - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - ConfigService_UpdateConfig_FullMethodName = "/logger.ConfigService/UpdateConfig" - ConfigService_PatchConfig_FullMethodName = "/logger.ConfigService/PatchConfig" - ConfigService_CreateConfig_FullMethodName = "/logger.ConfigService/CreateConfig" - ConfigService_DeleteConfig_FullMethodName = "/logger.ConfigService/DeleteConfig" - ConfigService_DeleteConfigBulk_FullMethodName = "/logger.ConfigService/DeleteConfigBulk" - ConfigService_ReadConfigByObjectId_FullMethodName = "/logger.ConfigService/ReadConfigByObjectId" - ConfigService_CheckConfigStatus_FullMethodName = "/logger.ConfigService/CheckConfigStatus" - ConfigService_ReadSystemObjects_FullMethodName = "/logger.ConfigService/ReadSystemObjects" - ConfigService_ReadConfig_FullMethodName = "/logger.ConfigService/ReadConfig" - ConfigService_SearchConfig_FullMethodName = "/logger.ConfigService/SearchConfig" -) - -// ConfigServiceClient is the client API for ConfigService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type ConfigServiceClient interface { - UpdateConfig(ctx context.Context, in *UpdateConfigRequest, opts ...grpc.CallOption) (*Config, error) - PatchConfig(ctx context.Context, in *PatchConfigRequest, opts ...grpc.CallOption) (*Config, error) - CreateConfig(ctx context.Context, in *CreateConfigRequest, opts ...grpc.CallOption) (*Config, error) - DeleteConfig(ctx context.Context, in *DeleteConfigRequest, opts ...grpc.CallOption) (*Empty, error) - DeleteConfigBulk(ctx context.Context, in *DeleteConfigBulkRequest, opts ...grpc.CallOption) (*Empty, error) - ReadConfigByObjectId(ctx context.Context, in *ReadConfigByObjectIdRequest, opts ...grpc.CallOption) (*Config, error) - CheckConfigStatus(ctx context.Context, in *CheckConfigStatusRequest, opts ...grpc.CallOption) (*ConfigStatus, error) - ReadSystemObjects(ctx context.Context, in *ReadSystemObjectsRequest, opts ...grpc.CallOption) (*SystemObjects, error) - ReadConfig(ctx context.Context, in *ReadConfigRequest, opts ...grpc.CallOption) (*Config, error) - SearchConfig(ctx context.Context, in *SearchConfigRequest, opts ...grpc.CallOption) (*Configs, error) -} - -type configServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewConfigServiceClient(cc grpc.ClientConnInterface) ConfigServiceClient { - return &configServiceClient{cc} -} - -func (c *configServiceClient) UpdateConfig(ctx context.Context, in *UpdateConfigRequest, opts ...grpc.CallOption) (*Config, error) { - out := new(Config) - err := c.cc.Invoke(ctx, ConfigService_UpdateConfig_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *configServiceClient) PatchConfig(ctx context.Context, in *PatchConfigRequest, opts ...grpc.CallOption) (*Config, error) { - out := new(Config) - err := c.cc.Invoke(ctx, ConfigService_PatchConfig_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *configServiceClient) CreateConfig(ctx context.Context, in *CreateConfigRequest, opts ...grpc.CallOption) (*Config, error) { - out := new(Config) - err := c.cc.Invoke(ctx, ConfigService_CreateConfig_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *configServiceClient) DeleteConfig(ctx context.Context, in *DeleteConfigRequest, opts ...grpc.CallOption) (*Empty, error) { - out := new(Empty) - err := c.cc.Invoke(ctx, ConfigService_DeleteConfig_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *configServiceClient) DeleteConfigBulk(ctx context.Context, in *DeleteConfigBulkRequest, opts ...grpc.CallOption) (*Empty, error) { - out := new(Empty) - err := c.cc.Invoke(ctx, ConfigService_DeleteConfigBulk_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *configServiceClient) ReadConfigByObjectId(ctx context.Context, in *ReadConfigByObjectIdRequest, opts ...grpc.CallOption) (*Config, error) { - out := new(Config) - err := c.cc.Invoke(ctx, ConfigService_ReadConfigByObjectId_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *configServiceClient) CheckConfigStatus(ctx context.Context, in *CheckConfigStatusRequest, opts ...grpc.CallOption) (*ConfigStatus, error) { - out := new(ConfigStatus) - err := c.cc.Invoke(ctx, ConfigService_CheckConfigStatus_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *configServiceClient) ReadSystemObjects(ctx context.Context, in *ReadSystemObjectsRequest, opts ...grpc.CallOption) (*SystemObjects, error) { - out := new(SystemObjects) - err := c.cc.Invoke(ctx, ConfigService_ReadSystemObjects_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *configServiceClient) ReadConfig(ctx context.Context, in *ReadConfigRequest, opts ...grpc.CallOption) (*Config, error) { - out := new(Config) - err := c.cc.Invoke(ctx, ConfigService_ReadConfig_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *configServiceClient) SearchConfig(ctx context.Context, in *SearchConfigRequest, opts ...grpc.CallOption) (*Configs, error) { - out := new(Configs) - err := c.cc.Invoke(ctx, ConfigService_SearchConfig_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ConfigServiceServer is the server API for ConfigService service. -// All implementations must embed UnimplementedConfigServiceServer -// for forward compatibility -type ConfigServiceServer interface { - UpdateConfig(context.Context, *UpdateConfigRequest) (*Config, error) - PatchConfig(context.Context, *PatchConfigRequest) (*Config, error) - CreateConfig(context.Context, *CreateConfigRequest) (*Config, error) - DeleteConfig(context.Context, *DeleteConfigRequest) (*Empty, error) - DeleteConfigBulk(context.Context, *DeleteConfigBulkRequest) (*Empty, error) - ReadConfigByObjectId(context.Context, *ReadConfigByObjectIdRequest) (*Config, error) - CheckConfigStatus(context.Context, *CheckConfigStatusRequest) (*ConfigStatus, error) - ReadSystemObjects(context.Context, *ReadSystemObjectsRequest) (*SystemObjects, error) - ReadConfig(context.Context, *ReadConfigRequest) (*Config, error) - SearchConfig(context.Context, *SearchConfigRequest) (*Configs, error) - mustEmbedUnimplementedConfigServiceServer() -} - -// UnimplementedConfigServiceServer must be embedded to have forward compatible implementations. -type UnimplementedConfigServiceServer struct { -} - -func (UnimplementedConfigServiceServer) UpdateConfig(context.Context, *UpdateConfigRequest) (*Config, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateConfig not implemented") -} -func (UnimplementedConfigServiceServer) PatchConfig(context.Context, *PatchConfigRequest) (*Config, error) { - return nil, status.Errorf(codes.Unimplemented, "method PatchConfig not implemented") -} -func (UnimplementedConfigServiceServer) CreateConfig(context.Context, *CreateConfigRequest) (*Config, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateConfig not implemented") -} -func (UnimplementedConfigServiceServer) DeleteConfig(context.Context, *DeleteConfigRequest) (*Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteConfig not implemented") -} -func (UnimplementedConfigServiceServer) DeleteConfigBulk(context.Context, *DeleteConfigBulkRequest) (*Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteConfigBulk not implemented") -} -func (UnimplementedConfigServiceServer) ReadConfigByObjectId(context.Context, *ReadConfigByObjectIdRequest) (*Config, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReadConfigByObjectId not implemented") -} -func (UnimplementedConfigServiceServer) CheckConfigStatus(context.Context, *CheckConfigStatusRequest) (*ConfigStatus, error) { - return nil, status.Errorf(codes.Unimplemented, "method CheckConfigStatus not implemented") -} -func (UnimplementedConfigServiceServer) ReadSystemObjects(context.Context, *ReadSystemObjectsRequest) (*SystemObjects, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReadSystemObjects not implemented") -} -func (UnimplementedConfigServiceServer) ReadConfig(context.Context, *ReadConfigRequest) (*Config, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReadConfig not implemented") -} -func (UnimplementedConfigServiceServer) SearchConfig(context.Context, *SearchConfigRequest) (*Configs, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchConfig not implemented") -} -func (UnimplementedConfigServiceServer) mustEmbedUnimplementedConfigServiceServer() {} - -// UnsafeConfigServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ConfigServiceServer will -// result in compilation errors. -type UnsafeConfigServiceServer interface { - mustEmbedUnimplementedConfigServiceServer() -} - -func RegisterConfigServiceServer(s grpc.ServiceRegistrar, srv ConfigServiceServer) { - s.RegisterService(&ConfigService_ServiceDesc, srv) -} - -func _ConfigService_UpdateConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfigServiceServer).UpdateConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ConfigService_UpdateConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfigServiceServer).UpdateConfig(ctx, req.(*UpdateConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ConfigService_PatchConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PatchConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfigServiceServer).PatchConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ConfigService_PatchConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfigServiceServer).PatchConfig(ctx, req.(*PatchConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ConfigService_CreateConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfigServiceServer).CreateConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ConfigService_CreateConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfigServiceServer).CreateConfig(ctx, req.(*CreateConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ConfigService_DeleteConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfigServiceServer).DeleteConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ConfigService_DeleteConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfigServiceServer).DeleteConfig(ctx, req.(*DeleteConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ConfigService_DeleteConfigBulk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteConfigBulkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfigServiceServer).DeleteConfigBulk(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ConfigService_DeleteConfigBulk_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfigServiceServer).DeleteConfigBulk(ctx, req.(*DeleteConfigBulkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ConfigService_ReadConfigByObjectId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReadConfigByObjectIdRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfigServiceServer).ReadConfigByObjectId(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ConfigService_ReadConfigByObjectId_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfigServiceServer).ReadConfigByObjectId(ctx, req.(*ReadConfigByObjectIdRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ConfigService_CheckConfigStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CheckConfigStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfigServiceServer).CheckConfigStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ConfigService_CheckConfigStatus_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfigServiceServer).CheckConfigStatus(ctx, req.(*CheckConfigStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ConfigService_ReadSystemObjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReadSystemObjectsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfigServiceServer).ReadSystemObjects(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ConfigService_ReadSystemObjects_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfigServiceServer).ReadSystemObjects(ctx, req.(*ReadSystemObjectsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ConfigService_ReadConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReadConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfigServiceServer).ReadConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ConfigService_ReadConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfigServiceServer).ReadConfig(ctx, req.(*ReadConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ConfigService_SearchConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConfigServiceServer).SearchConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ConfigService_SearchConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConfigServiceServer).SearchConfig(ctx, req.(*SearchConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// ConfigService_ServiceDesc is the grpc.ServiceDesc for ConfigService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var ConfigService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "logger.ConfigService", - HandlerType: (*ConfigServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UpdateConfig", - Handler: _ConfigService_UpdateConfig_Handler, - }, - { - MethodName: "PatchConfig", - Handler: _ConfigService_PatchConfig_Handler, - }, - { - MethodName: "CreateConfig", - Handler: _ConfigService_CreateConfig_Handler, - }, - { - MethodName: "DeleteConfig", - Handler: _ConfigService_DeleteConfig_Handler, - }, - { - MethodName: "DeleteConfigBulk", - Handler: _ConfigService_DeleteConfigBulk_Handler, - }, - { - MethodName: "ReadConfigByObjectId", - Handler: _ConfigService_ReadConfigByObjectId_Handler, - }, - { - MethodName: "CheckConfigStatus", - Handler: _ConfigService_CheckConfigStatus_Handler, - }, - { - MethodName: "ReadSystemObjects", - Handler: _ConfigService_ReadSystemObjects_Handler, - }, - { - MethodName: "ReadConfig", - Handler: _ConfigService_ReadConfig_Handler, - }, - { - MethodName: "SearchConfig", - Handler: _ConfigService_SearchConfig_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "config_service.proto", -} diff --git a/pkg/client/api/import.pb.go b/pkg/client/api/import.pb.go deleted file mode 100644 index b3944ed..0000000 --- a/pkg/client/api/import.pb.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.6 -// source: import.proto - -package proto - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type AvailableSystemObjects int32 - -const ( - AvailableSystemObjects_cc_queue AvailableSystemObjects = 0 - AvailableSystemObjects_schema AvailableSystemObjects = 1 - AvailableSystemObjects_users AvailableSystemObjects = 2 - AvailableSystemObjects_devices AvailableSystemObjects = 3 - AvailableSystemObjects_calendars AvailableSystemObjects = 4 - AvailableSystemObjects_cc_list AvailableSystemObjects = 5 - AvailableSystemObjects_cc_team AvailableSystemObjects = 6 - AvailableSystemObjects_cc_agent AvailableSystemObjects = 7 - AvailableSystemObjects_cc_resource AvailableSystemObjects = 8 - AvailableSystemObjects_cc_resource_group AvailableSystemObjects = 9 - AvailableSystemObjects_chat_bots AvailableSystemObjects = 10 - AvailableSystemObjects_skills AvailableSystemObjects = 11 - AvailableSystemObjects_buckets AvailableSystemObjects = 12 -) - -// Enum value maps for AvailableSystemObjects. -var ( - AvailableSystemObjects_name = map[int32]string{ - 0: "cc_queue", - 1: "schema", - 2: "users", - 3: "devices", - 4: "calendars", - 5: "cc_list", - 6: "cc_team", - 7: "cc_agent", - 8: "cc_resource", - 9: "cc_resource_group", - 10: "chat_bots", - 11: "skills", - 12: "buckets", - } - AvailableSystemObjects_value = map[string]int32{ - "cc_queue": 0, - "schema": 1, - "users": 2, - "devices": 3, - "calendars": 4, - "cc_list": 5, - "cc_team": 6, - "cc_agent": 7, - "cc_resource": 8, - "cc_resource_group": 9, - "chat_bots": 10, - "skills": 11, - "buckets": 12, - } -) - -func (x AvailableSystemObjects) Enum() *AvailableSystemObjects { - p := new(AvailableSystemObjects) - *p = x - return p -} - -func (x AvailableSystemObjects) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AvailableSystemObjects) Descriptor() protoreflect.EnumDescriptor { - return file_import_proto_enumTypes[0].Descriptor() -} - -func (AvailableSystemObjects) Type() protoreflect.EnumType { - return &file_import_proto_enumTypes[0] -} - -func (x AvailableSystemObjects) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AvailableSystemObjects.Descriptor instead. -func (AvailableSystemObjects) EnumDescriptor() ([]byte, []int) { - return file_import_proto_rawDescGZIP(), []int{0} -} - -type Lookup struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *Lookup) Reset() { - *x = Lookup{} - if protoimpl.UnsafeEnabled { - mi := &file_import_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Lookup) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Lookup) ProtoMessage() {} - -func (x *Lookup) ProtoReflect() protoreflect.Message { - mi := &file_import_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Lookup.ProtoReflect.Descriptor instead. -func (*Lookup) Descriptor() ([]byte, []int) { - return file_import_proto_rawDescGZIP(), []int{0} -} - -func (x *Lookup) GetId() int32 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *Lookup) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -var File_import_proto protoreflect.FileDescriptor - -var file_import_proto_rawDesc = []byte{ - 0x0a, 0x0c, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, - 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x22, 0x2c, 0x0a, 0x06, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x2a, 0xd1, 0x01, 0x0a, 0x16, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, - 0x6c, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, - 0x0c, 0x0a, 0x08, 0x63, 0x63, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x10, 0x00, 0x12, 0x0a, 0x0a, - 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x10, - 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x63, 0x61, 0x6c, 0x65, 0x6e, 0x64, 0x61, 0x72, 0x73, 0x10, 0x04, - 0x12, 0x0b, 0x0a, 0x07, 0x63, 0x63, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x10, 0x05, 0x12, 0x0b, 0x0a, - 0x07, 0x63, 0x63, 0x5f, 0x74, 0x65, 0x61, 0x6d, 0x10, 0x06, 0x12, 0x0c, 0x0a, 0x08, 0x63, 0x63, - 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x10, 0x07, 0x12, 0x0f, 0x0a, 0x0b, 0x63, 0x63, 0x5f, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x10, 0x08, 0x12, 0x15, 0x0a, 0x11, 0x63, 0x63, 0x5f, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x10, 0x09, - 0x12, 0x0d, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x62, 0x6f, 0x74, 0x73, 0x10, 0x0a, 0x12, - 0x0a, 0x0a, 0x06, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x73, 0x10, 0x0b, 0x12, 0x0b, 0x0a, 0x07, 0x62, - 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x10, 0x0c, 0x42, 0x16, 0x5a, 0x14, 0x77, 0x65, 0x62, 0x69, - 0x74, 0x65, 0x6c, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_import_proto_rawDescOnce sync.Once - file_import_proto_rawDescData = file_import_proto_rawDesc -) - -func file_import_proto_rawDescGZIP() []byte { - file_import_proto_rawDescOnce.Do(func() { - file_import_proto_rawDescData = protoimpl.X.CompressGZIP(file_import_proto_rawDescData) - }) - return file_import_proto_rawDescData -} - -var file_import_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_import_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_import_proto_goTypes = []interface{}{ - (AvailableSystemObjects)(0), // 0: logger.AvailableSystemObjects - (*Lookup)(nil), // 1: logger.Lookup -} -var file_import_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_import_proto_init() } -func file_import_proto_init() { - if File_import_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_import_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Lookup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_import_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_import_proto_goTypes, - DependencyIndexes: file_import_proto_depIdxs, - EnumInfos: file_import_proto_enumTypes, - MessageInfos: file_import_proto_msgTypes, - }.Build() - File_import_proto = out.File - file_import_proto_rawDesc = nil - file_import_proto_goTypes = nil - file_import_proto_depIdxs = nil -} diff --git a/pkg/client/go.mod b/pkg/client/go.mod deleted file mode 100644 index 1301ba1..0000000 --- a/pkg/client/go.mod +++ /dev/null @@ -1,21 +0,0 @@ -module github.com/webitel/logger/pkg/client - -go 1.20 - -require ( - github.com/hashicorp/golang-lru/v2 v2.0.7 - github.com/rabbitmq/amqp091-go v1.8.1 - github.com/webitel/protos/logger v0.0.0-20231012100410-2e28f14ab59e - google.golang.org/grpc v1.58.3 -) - -require ( - github.com/golang/protobuf v1.5.3 // indirect - golang.org/x/net v0.13.0 // indirect - golang.org/x/sys v0.11.0 // indirect - golang.org/x/text v0.11.0 // indirect - google.golang.org/genproto v0.0.0-20231002182017-d307bd883b97 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20231009173412-8bfb1ae86b6c // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect - google.golang.org/protobuf v1.31.0 // indirect -) diff --git a/pkg/client/go.sum b/pkg/client/go.sum deleted file mode 100644 index c03503a..0000000 --- a/pkg/client/go.sum +++ /dev/null @@ -1,46 +0,0 @@ -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -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/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= -github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rabbitmq/amqp091-go v1.8.1 h1:RejT1SBUim5doqcL6s7iN6SBmsQqyTgXb1xMlH0h1hA= -github.com/rabbitmq/amqp091-go v1.8.1/go.mod h1:+jPrT9iY2eLjRaMSRHUhc3z14E/l85kv/f+6luSD3pc= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/webitel/protos/logger v0.0.0-20231012100410-2e28f14ab59e h1:sx3uZ4YQB/HsC8o7nfyUtNXEf0BGI/184HyrzFHEGok= -github.com/webitel/protos/logger v0.0.0-20231012100410-2e28f14ab59e/go.mod h1:GHdxjZvyVJtl6gdI86Z3rOyq7Mjid7uP0n0umEDbC3M= -go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A= -go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4= -golang.org/x/net v0.13.0 h1:Nvo8UFsZ8X3BhAC9699Z1j7XQ3rsZnUUm7jfBEk1ueY= -golang.org/x/net v0.13.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= -golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= -golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4= -golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto v0.0.0-20231002182017-d307bd883b97 h1:SeZZZx0cP0fqUyA+oRzP9k7cSwJlvDFiROO72uwD6i0= -google.golang.org/genproto v0.0.0-20231002182017-d307bd883b97/go.mod h1:t1VqOqqvce95G3hIDCT5FeO3YUc6Q4Oe24L/+rNMxRk= -google.golang.org/genproto/googleapis/api v0.0.0-20231009173412-8bfb1ae86b6c h1:0RtEmmHjemvUXloH7+RuBSIw7n+GEHMOMY1CkGYnWq4= -google.golang.org/genproto/googleapis/api v0.0.0-20231009173412-8bfb1ae86b6c/go.mod h1:Wth13BrWMRN/G+guBLupKa6fslcWZv14R0ZKDRkNfY8= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 h1:6GQBEOdGkX6MMTLT9V+TjtIRZCw9VPD5Z+yHY9wMgS0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97/go.mod h1:v7nGkzlmW8P3n/bKmWBn2WpBjpOEx8Q6gMueudAmKfY= -google.golang.org/grpc v1.58.3 h1:BjnpXut1btbtgN/6sp+brB2Kbm2LjNXnidYujAVbSoQ= -google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/pkg/client/grpc.go b/pkg/client/grpc.go index a3644ce..a7506ec 100644 --- a/pkg/client/grpc.go +++ b/pkg/client/grpc.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc/credentials/insecure" cache "github.com/hashicorp/golang-lru/v2/expirable" - proto "github.com/webitel/logger/pkg/client/api" + proto "github.com/webitel/logger/api/native" ) const ( diff --git a/pkg/client/proto/config_service.proto b/pkg/client/proto/config_service.proto deleted file mode 100644 index f09dd59..0000000 --- a/pkg/client/proto/config_service.proto +++ /dev/null @@ -1,186 +0,0 @@ -syntax = "proto3"; - -package logger; - -option go_package = "webitel_logger/proto"; - -import "import.proto"; -import "google/api/annotations.proto"; - - -service ConfigService { - - rpc UpdateConfig(UpdateConfigRequest) returns (Config) { - option (google.api.http) = { - put: "/logger/config/{config_id}" - body: "*" - }; - } - - rpc PatchConfig(PatchConfigRequest) returns (Config) { - option (google.api.http) = { - patch: "/logger/config/{config_id}" - body: "*" - }; - } - - rpc CreateConfig(CreateConfigRequest) returns (Config) { - option (google.api.http) = { - post: "/logger/config" - body: "*" - }; - } - - rpc DeleteConfig(DeleteConfigRequest) returns (Empty) { - option (google.api.http) = { - delete: "/logger/config/{config_id}" - }; - } - - rpc DeleteConfigBulk(DeleteConfigBulkRequest) returns (Empty) { - option (google.api.http) = { - delete: "/logger/config" - body: "*" - }; - } - - rpc ReadConfigByObjectId(ReadConfigByObjectIdRequest) returns (Config) { - } - - rpc CheckConfigStatus(CheckConfigStatusRequest) returns (ConfigStatus) { - } - - rpc ReadSystemObjects(ReadSystemObjectsRequest) returns (SystemObjects) { - option (google.api.http) = { - get: "/logger/available_objects" - }; - } - - rpc ReadConfig(ReadConfigRequest) returns (Config) { - option (google.api.http) = { - get: "/logger/config/{config_id}" - }; - } - - rpc SearchConfig(SearchConfigRequest) returns (Configs) { - option (google.api.http) = { - get: "/logger/config" - }; - } - -} - - -message Configs { - int32 page = 1; - bool next = 2; - repeated Config items = 3; -} - -message SystemObjects { - repeated Lookup items = 3; -} - -message ReadSystemObjectsRequest { - bool include_existing = 1; -} - -message Empty { -} - -message Config { - int32 id = 1; - Lookup object = 2; - bool enabled = 3; - int32 days_to_store = 4; - int32 period = 5; - Lookup storage = 6; - string description = 7; -} - - - -message DeleteConfigRequest { - int32 config_id = 1; -} - -message ConfigStatus { - bool is_enabled = 1; -} - -message DeleteConfigBulkRequest { - repeated int32 ids = 1; -} - -message ReadConfigByObjectIdRequest { - // int32 page = 1; - // int32 size = 2; - // string q = 3; - // - // string sort = 5; - // repeated string fields = 6; - - int32 object_id = 1; - int32 domain_id = 2; -} - -message CheckConfigStatusRequest { - string object_name = 1; - int64 domain_id = 2; -} - -message ReadConfigRequest { - // int32 page = 1; - // int32 size = 2; - // string q = 3; - // - // string sort = 5; - // repeated string fields = 6; - - int32 config_id = 1; - // int32 domainId = 8; -} - - - -message SearchConfigRequest { - int32 page = 1; - int32 size = 2; - string q = 3; - - string sort = 4; - repeated string fields = 5; - - // NOT USED - repeated AvailableSystemObjects object = 6; - - // int32 domainId = 7; -} - -message UpdateConfigRequest { - int32 config_id = 1; - bool enabled = 2; - int32 days_to_store = 3; - int32 period = 4; - Lookup storage = 5; - string description = 6; -} - -message PatchConfigRequest { - int32 config_id = 1; - bool enabled = 2; - int32 days_to_store = 3; - int32 period = 4; - Lookup storage = 5; - string description = 6; - repeated string fields = 7; -} - -message CreateConfigRequest { - Lookup object = 1; - bool enabled = 2; - int32 days_to_store = 3; - int32 period = 4; - Lookup storage = 5; - string description = 6; -} \ No newline at end of file diff --git a/pkg/client/proto/import.proto b/pkg/client/proto/import.proto deleted file mode 100644 index bc73eb2..0000000 --- a/pkg/client/proto/import.proto +++ /dev/null @@ -1,28 +0,0 @@ -syntax = "proto3"; - -package logger; - -option go_package = "webitel_logger/proto"; - - -enum AvailableSystemObjects { - cc_queue = 0; - schema = 1; - users = 2; - devices = 3; - calendars = 4; - cc_list = 5; - cc_team = 6; - cc_agent = 7; - cc_resource = 8; - cc_resource_group = 9; - chat_bots = 10; - skills = 11; - buckets = 12; - -} - -message Lookup { - int32 id = 1; - string name = 2; -} \ No newline at end of file diff --git a/pkg/client/protodep.lock b/pkg/client/protodep.lock deleted file mode 100644 index 2935ee3..0000000 --- a/pkg/client/protodep.lock +++ /dev/null @@ -1,10 +0,0 @@ -proto_outdir = "./proto" - -[[dependencies]] - target = "github.com/webitel/protos/logger" - subgroup = "" - revision = "1975fbcb321f1d19a5d7b13877310919bf4712e8" - branch = "main" - path = "" - includes = ["config_service.proto", "import.proto"] - protocol = "https" diff --git a/pkg/client/protodep.toml b/pkg/client/protodep.toml deleted file mode 100644 index 3d9202f..0000000 --- a/pkg/client/protodep.toml +++ /dev/null @@ -1,12 +0,0 @@ -proto_outdir = "./proto" - -[[dependencies]] - target = "github.com/webitel/protos/logger" - branch = "main" - includes = [ - "config_service.proto", - "import.proto", - ] - - -protocol = "https" \ No newline at end of file