├── .gitignore ├── README.md ├── go.mod ├── go.sum ├── helloworld ├── Dockerfile ├── Makefile ├── client │ └── client.go ├── generate.go ├── handler │ └── helloworld.go ├── main.go └── proto │ ├── helloworld.pb.go │ ├── helloworld.pb.micro.go │ └── helloworld.proto ├── http ├── Dockerfile ├── generate.go ├── handler │ └── handler.go └── main.go ├── pubsub ├── cli │ └── main.go ├── main.go └── proto │ ├── pubsub.pb.go │ ├── pubsub.pb.micro.go │ └── pubsub.proto └── registerConfiguration ├── Dockerfile ├── Makefile ├── config ├── config.go └── mysql.go ├── generate.go ├── handler └── registerConfiguration.go ├── main.go └── proto ├── registerConfiguration.pb.go ├── registerConfiguration.pb.micro.go └── registerConfiguration.proto /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea/ 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 微服务实战Go Micro v3 2 | 3 | ## 源码地址 4 | * [爱租房微服务综合项目](https://github.com/CleverBamboo/renting) 5 | 6 | ## 系列文章 7 | [点击跳转](https://zhuanlan.zhihu.com/p/368545133) 8 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module go-micro-examples 2 | 3 | go 1.16 4 | 5 | require ( 6 | github.com/asim/go-micro/plugins/config/source/consul/v3 v3.0.0-20210602130258-86d8d8f07e38 7 | github.com/asim/go-micro/plugins/registry/consul/v3 v3.0.0-20210601052333-ca2014bf8e50 8 | github.com/asim/go-micro/plugins/server/http/v3 v3.0.0-20210425055400-b11a2f17e92c 9 | github.com/asim/go-micro/v3 v3.5.1 10 | github.com/gin-gonic/gin v1.7.1 11 | github.com/golang/protobuf v1.5.2 12 | github.com/micro/micro/v3 v3.2.1 13 | github.com/pborman/uuid v1.2.1 14 | ) 15 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.31.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 4 | cloud.google.com/go v0.37.0/go.mod h1:TS1dMSSfndXH133OKGwekG838Om/cQT0BUHV3HcBgoo= 5 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 6 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 7 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 8 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 9 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= 10 | cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= 11 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 12 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 13 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 14 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 15 | contrib.go.opencensus.io/exporter/ocagent v0.4.12/go.mod h1:450APlNTSR6FrvC3CTRqYosuDstRB9un7SOx2k/9ckA= 16 | dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod h1:Yl+fi1br7+Rr3LqpNJf1/uxUdtRUV+Tnj0o93V2B9MU= 17 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 18 | dmitri.shuralyov.com/html/belt v0.0.0-20180602232347-f7d459c86be0/go.mod h1:JLBrvjyP0v+ecvNYvCpyZgu5/xkfAUhi6wJj28eUfSU= 19 | dmitri.shuralyov.com/service/change v0.0.0-20181023043359-a85b471d5412/go.mod h1:a1inKt/atXimZ4Mv927x+r7UpyzRUf4emIoiiSC2TN4= 20 | dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D6DFvNNtx+9ybjezNCa8XF0xaYcETyp6rHWU= 21 | git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg= 22 | github.com/Azure/azure-sdk-for-go v32.4.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= 23 | github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= 24 | github.com/Azure/go-autorest/autorest v0.1.0/go.mod h1:AKyIcETwSUFxIcs/Wnq/C+kwCtlEYGUVd7FPNb2slmg= 25 | github.com/Azure/go-autorest/autorest v0.5.0/go.mod h1:9HLKlQjVBH6U3oDfsXOeVc56THsLPw1L03yban4xThw= 26 | github.com/Azure/go-autorest/autorest/adal v0.1.0/go.mod h1:MeS4XhScH55IST095THyTxElntu7WqB7pNbZo8Q5G3E= 27 | github.com/Azure/go-autorest/autorest/adal v0.2.0/go.mod h1:MeS4XhScH55IST095THyTxElntu7WqB7pNbZo8Q5G3E= 28 | github.com/Azure/go-autorest/autorest/azure/auth v0.1.0/go.mod h1:Gf7/i2FUpyb/sGBLIFxTBzrNzBo7aPXXE3ZVeDRwdpM= 29 | github.com/Azure/go-autorest/autorest/azure/cli v0.1.0/go.mod h1:Dk8CUAt/b/PzkfeRsWzVG9Yj3ps8mS8ECztu43rdU8U= 30 | github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= 31 | github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= 32 | github.com/Azure/go-autorest/autorest/to v0.2.0/go.mod h1:GunWKJp1AEqgMaGLV+iocmRAJWqST1wQYhyyjXJ3SJc= 33 | github.com/Azure/go-autorest/autorest/validation v0.1.0/go.mod h1:Ha3z/SqBeaalWQvokg3NZAlQTalVMtOIAs1aGK7G6u8= 34 | github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= 35 | github.com/Azure/go-autorest/tracing v0.1.0/go.mod h1:ROEEAFwXycQw7Sn3DXNtEedEvdeRAgDr0izn4z5Ij88= 36 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 37 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 38 | github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= 39 | github.com/Microsoft/hcsshim v0.8.7-0.20191101173118-65519b62243c/go.mod h1:7xhjOwRV2+0HXGmM0jxaEu+ZiXJFoVZOTfL/dmqbrD8= 40 | github.com/OpenDNS/vegadns2client v0.0.0-20180418235048-a3fa4a771d87/go.mod h1:iGLljf5n9GjT6kc0HBvyI1nOKnGQbNB66VzSNbK5iks= 41 | github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= 42 | github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= 43 | github.com/akamai/AkamaiOPEN-edgegrid-golang v0.9.0/go.mod h1:zpDJeKyp9ScW4NNrbdr+Eyxvry3ilGPewKoXw3XGN1k= 44 | github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7 h1:uSoVVbwJiQipAclBbw+8quDsfcvFjOpI5iCf4p/cqCs= 45 | github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= 46 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 47 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 48 | github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190808125512-07798873deee/go.mod h1:myCDvQSzCW+wB1WAlocEru4wMGJxy+vlxHdhegi1CDQ= 49 | github.com/aliyun/aliyun-oss-go-sdk v0.0.0-20190307165228-86c17b95fcd5/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8= 50 | github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA= 51 | github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= 52 | github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= 53 | github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= 54 | github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da h1:8GUt8eRujhVEGZFFEjBj46YV4rDjvGrNxb0KMWYkL2I= 55 | github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= 56 | github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= 57 | github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= 58 | github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= 59 | github.com/asim/go-micro/plugins/config/source/consul/v3 v3.0.0-20210602130258-86d8d8f07e38 h1:MY/gE3rHCEem2/yceMS631Y+nwJwf64xYjAqzSiPZHg= 60 | github.com/asim/go-micro/plugins/config/source/consul/v3 v3.0.0-20210602130258-86d8d8f07e38/go.mod h1:fhiTxhyMiZmRAPBfbMrI64Jb8loNDX/O2sibbCfLfEc= 61 | github.com/asim/go-micro/plugins/registry/consul/v3 v3.0.0-20210601052333-ca2014bf8e50 h1:QA2bnFbAPa6wEVQGuzvIGrL8pj//2bLyhi7HAiVk4/U= 62 | github.com/asim/go-micro/plugins/registry/consul/v3 v3.0.0-20210601052333-ca2014bf8e50/go.mod h1:U4QtFMj/uR3On1CRAAAOkEn47kFHa+T2VdO1vijtBEw= 63 | github.com/asim/go-micro/plugins/registry/memory/v3 v3.0.0-20210202145831-070250155285 h1:zgDzypD412DKHoXIXW1JwIOWoGcjxzI1iF6JmwtyqHw= 64 | github.com/asim/go-micro/plugins/registry/memory/v3 v3.0.0-20210202145831-070250155285/go.mod h1:AU0vyZvsO1lpuQr/DUG4CnNRvITXqQcJRRAzBATR6Jo= 65 | github.com/asim/go-micro/plugins/server/http/v3 v3.0.0-20210425055400-b11a2f17e92c h1:G2ndCyEQFGIaOigmp5LzpWH3aU/9q2vrCF4XF4k56I8= 66 | github.com/asim/go-micro/plugins/server/http/v3 v3.0.0-20210425055400-b11a2f17e92c/go.mod h1:Oe0f4zsBx6if1scvMrL/4mNfkD7URaqkvhQWnWogcws= 67 | github.com/asim/go-micro/v3 v3.0.0-20210120135431-d94936f6c97c/go.mod h1:fAeb2KUnD3z4XwtQ91XFxw5zgGKhoTsLc6Ie81QdER4= 68 | github.com/asim/go-micro/v3 v3.5.0/go.mod h1:PR/RCuFk1F7aPnK6pc8Ca9rHOZzfg1x7+fvTygQa55g= 69 | github.com/asim/go-micro/v3 v3.5.1 h1:OthybEX1VmfBE1EVYWz7aAcJR96myYyR5oNA99e8UmQ= 70 | github.com/asim/go-micro/v3 v3.5.1/go.mod h1:OJ5DnUQmoEVQTNbKRstR7/krtYJI+QaBe/XeN5MZkqE= 71 | github.com/aws/aws-sdk-go v1.23.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= 72 | github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod h1:AuiFmCCPBSrqvVMvuqFuk0qogytodnVFVSN5CeJB8Gc= 73 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 74 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= 75 | github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= 76 | github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= 77 | github.com/bitly/go-simplejson v0.5.0 h1:6IH+V8/tVMab511d5bn4M7EwGXZf9Hj6i2xSwkNEM+Y= 78 | github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA= 79 | github.com/blang/semver v3.1.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= 80 | github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= 81 | github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4YnC6+E63dPcxHo2sUxDIu8g3QgEJdRY= 82 | github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= 83 | github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= 84 | github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= 85 | github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= 86 | github.com/caddyserver/certmagic v0.10.6/go.mod h1:Y8jcUBctgk/IhpAzlHKfimZNyXCkfGgRTC0orl8gROQ= 87 | github.com/cenkalti/backoff/v4 v4.0.0/go.mod h1:eEew/i+1Q6OrCDZh3WiXYv3+nJwBASZ8Bog/87DQnVg= 88 | github.com/census-instrumentation/opencensus-proto v0.2.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 89 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 90 | github.com/cheekybits/genny v1.0.0/go.mod h1:+tQajlRqAUrPI7DOSpB0XAqZYtQakVtB7wXkRAgjxjQ= 91 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 92 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 93 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 94 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 95 | github.com/cloudflare/cloudflare-go v0.10.2/go.mod h1:qhVI5MKwBGhdNU89ZRz2plgYutcJ5PCekLxXn56w6SY= 96 | github.com/cloudflare/cloudflare-go v0.10.9/go.mod h1:5TrsWH+3f4NV6WjtS5QFp+DifH81rph40gU374Sh0dQ= 97 | github.com/containerd/cgroups v0.0.0-20190919134610-bf292b21730f/go.mod h1:OApqhQ4XNSNC13gXIwDjhOQxjWa/NxkwZXJ1EvqT0ko= 98 | github.com/containerd/console v0.0.0-20180822173158-c12b1e7919c1/go.mod h1:Tj/on1eG8kiEhd0+fhSDzsPAFESxzBBvdyEgyryXffw= 99 | github.com/containerd/containerd v1.3.0-beta.2.0.20190828155532-0293cbd26c69/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= 100 | github.com/containerd/containerd v1.3.0/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= 101 | github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= 102 | github.com/containerd/fifo v0.0.0-20190226154929-a9fb20d87448/go.mod h1:ODA38xgv3Kuk8dQz2ZQXpnv/UZZUHUCL7pnLehbXgQI= 103 | github.com/containerd/go-runc v0.0.0-20180907222934-5a6d9f37cfa3/go.mod h1:IV7qH3hrUgRmyYrtgEeGWJfWbgcHL9CSRruz2Vqcph0= 104 | github.com/containerd/ttrpc v0.0.0-20190828154514-0e0f228740de/go.mod h1:PvCDdDGpgqzQIzDW1TphrGLssLDZp2GuS+X5DkEJB8o= 105 | github.com/containerd/typeurl v0.0.0-20180627222232-a93fcdb778cd/go.mod h1:Cm3kwCdlkCfMSHURc+r6fwoGH6/F1hH3S4sg0rLFWPc= 106 | github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= 107 | github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= 108 | github.com/cpu/goacmedns v0.0.1/go.mod h1:sesf/pNnCYwUevQEQfEwY0Y3DydlQWSGZbaMElOWxok= 109 | github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= 110 | github.com/cpuguy83/go-md2man/v2 v2.0.0 h1:EoUDS0afbrsXAZ9YQ9jdu/mZ2sXgT1/2yyNng4PGlyM= 111 | github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= 112 | github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= 113 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 114 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 115 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 116 | github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= 117 | github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= 118 | github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8= 119 | github.com/dnaeon/go-vcr v0.0.0-20180814043457-aafff18a5cc2/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= 120 | github.com/dnsimple/dnsimple-go v0.30.0/go.mod h1:O5TJ0/U6r7AfT8niYNlmohpLbCSG+c71tQlGr9SeGrg= 121 | github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= 122 | github.com/docker/docker v1.4.2-0.20191101170500-ac7306503d23/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= 123 | github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= 124 | github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= 125 | github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= 126 | github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= 127 | github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= 128 | github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= 129 | github.com/ef-ds/deque v1.0.4-0.20190904040645-54cb57c252a1/go.mod h1:HvODWzv6Y6kBf3Ah2WzN1bHjDUezGLaAhwuWVwfpEJs= 130 | github.com/emirpasic/gods v1.12.0 h1:QAUIPSaCu4G+POclxeqb3F+WPpdKqFGlw36+yOzGlrg= 131 | github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= 132 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 133 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 134 | github.com/evanphx/json-patch/v5 v5.0.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4= 135 | github.com/exoscale/egoscale v0.18.1/go.mod h1:Z7OOdzzTOz1Q1PjQXumlz9Wn/CddH0zSYdCF3rnBKXE= 136 | github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= 137 | github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= 138 | github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= 139 | github.com/francoispqt/gojay v1.2.13/go.mod h1:ehT5mTG4ua4581f1++1WLG0vPdaA9HaiDsoyrBGkyDY= 140 | github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= 141 | github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= 142 | github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= 143 | github.com/fsouza/go-dockerclient v1.6.0/go.mod h1:YWwtNPuL4XTX1SKJQk86cWPmmqwx+4np9qfPbb+znGc= 144 | github.com/getkin/kin-openapi v0.26.0/go.mod h1:WGRs2ZMM1Q8LR1QBEwUxC6RJEfaBcD0s+pcEVXFuAjw= 145 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 146 | github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= 147 | github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= 148 | github.com/gin-gonic/gin v1.7.1 h1:qC89GU3p8TvKWMAVhEpmpB2CIb1hnqt2UdKZaP93mS8= 149 | github.com/gin-gonic/gin v1.7.1/go.mod h1:jD2toBW3GZUr5UMcdrwQA10I7RuaFOl/SGeDjXkfUtY= 150 | github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= 151 | github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0= 152 | github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= 153 | github.com/go-acme/lego/v3 v3.4.0/go.mod h1:xYbLDuxq3Hy4bMUT1t9JIuz6GWIWb3m5X+TeTHYaT7M= 154 | github.com/go-cmd/cmd v1.0.5/go.mod h1:y8q8qlK5wQibcw63djSl/ntiHUHXHGdCkPk0j4QeW4s= 155 | github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= 156 | github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= 157 | github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= 158 | github.com/go-git/go-billy/v5 v5.0.0 h1:7NQHvd9FVid8VL4qVUMm8XifBK+2xCoZ2lSk0agRrHM= 159 | github.com/go-git/go-billy/v5 v5.0.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= 160 | github.com/go-git/go-git-fixtures/v4 v4.0.1 h1:q+IFMfLx200Q3scvt2hN79JsEzy4AmBTp/pqnefH+Bc= 161 | github.com/go-git/go-git-fixtures/v4 v4.0.1/go.mod h1:m+ICp2rF3jDhFgEZ/8yziagdT1C+ZpZcrJjappBCDSw= 162 | github.com/go-git/go-git/v5 v5.1.0 h1:HxJn9g/E7eYvKW3Fm7Jt4ee8LXfPOm/H1cdDu8vEssk= 163 | github.com/go-git/go-git/v5 v5.1.0/go.mod h1:ZKfuPUoY1ZqIG4QG9BDBh3G4gLM5zvPuSJAozQrZuyM= 164 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 165 | github.com/go-ini/ini v1.44.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= 166 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 167 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 168 | github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= 169 | github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A= 170 | github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= 171 | github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q= 172 | github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= 173 | github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no= 174 | github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= 175 | github.com/go-playground/validator/v10 v10.4.1 h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE= 176 | github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= 177 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 178 | github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= 179 | github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= 180 | github.com/gobwas/ws v1.0.3/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= 181 | github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= 182 | github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= 183 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 184 | github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 185 | github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= 186 | github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d/go.mod h1:nnjvkQ9ptGaCkuDUx6wNykzzlUixGxvkme+H/lnzb+A= 187 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 188 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 189 | github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 190 | github.com/golang/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:tluoj9z5200jBnyusfRPU2LqT6J+DAorxEvtC7LHB+E= 191 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 192 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 193 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 194 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 195 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= 196 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 197 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 198 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 199 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 200 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 201 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 202 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 203 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 204 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 205 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 206 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 207 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 208 | github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= 209 | github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= 210 | github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= 211 | github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= 212 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 213 | github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo= 214 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 215 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 216 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 217 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 218 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 219 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 220 | github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= 221 | github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 222 | github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= 223 | github.com/google/go-github/v30 v30.1.0/go.mod h1:n8jBpHl45a/rlBUtRJMOG4GhNADUQFEufcolZ95JfU8= 224 | github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= 225 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 226 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 227 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 228 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 229 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 230 | github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 231 | github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 232 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 233 | github.com/google/uuid v1.1.5 h1:kxhtnfFVi+rYdOALN0B3k9UT86zVJKfBimRaciULW4I= 234 | github.com/google/uuid v1.1.5/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 235 | github.com/googleapis/gax-go v2.0.0+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= 236 | github.com/googleapis/gax-go/v2 v2.0.3/go.mod h1:LLvjysVCY1JZeum8Z6l8qUty8fiNwE08qbEPm1M08qg= 237 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 238 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 239 | github.com/gophercloud/gophercloud v0.3.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= 240 | github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= 241 | github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= 242 | github.com/gorilla/handlers v1.4.2/go.mod h1:Qkdc/uu4tH4g6mTK6auzZ766c4CA0Ng8+o/OAirnOIQ= 243 | github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= 244 | github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= 245 | github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= 246 | github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= 247 | github.com/grpc-ecosystem/grpc-gateway v1.5.0/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= 248 | github.com/grpc-ecosystem/grpc-gateway v1.8.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= 249 | github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542/go.mod h1:Ow0tF8D4Kplbc8s8sSb3V2oUCygFHVp8gC3Dn6U4MNI= 250 | github.com/hashicorp/consul/api v1.3.0 h1:HXNYlRkkM/t+Y/Yhxtwcy02dlYwIaoxzvxPnS+cqy78= 251 | github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= 252 | github.com/hashicorp/consul/sdk v0.3.0 h1:UOxjlb4xVNF93jak1mzzoBatyFju9nrkxpVwIp/QqxQ= 253 | github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= 254 | github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 255 | github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= 256 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 257 | github.com/hashicorp/go-cleanhttp v0.5.1 h1:dH3aiDG9Jvb5r5+bYHsikaOUIpcM0xvgMXVoDkXMzJM= 258 | github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= 259 | github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= 260 | github.com/hashicorp/go-immutable-radix v1.0.0 h1:AKDB1HM5PWEA7i4nhcpwOrO2byshxBjXVn/J/3+z5/0= 261 | github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= 262 | github.com/hashicorp/go-msgpack v0.5.3 h1:zKjpN5BK/P5lMYrLmBHdBULWbJ0XpYR+7NGzqkZzoD4= 263 | github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= 264 | github.com/hashicorp/go-multierror v0.0.0-20161216184304-ed905158d874/go.mod h1:JMRHfdO9jKNzS/+BTlxCjKNQHg/jZAft8U7LloJvN7I= 265 | github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o= 266 | github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= 267 | github.com/hashicorp/go-retryablehttp v0.6.4/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= 268 | github.com/hashicorp/go-rootcerts v1.0.0 h1:Rqb66Oo1X/eSV1x66xbDccZjhJigjg0+e82kpwzSwCI= 269 | github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= 270 | github.com/hashicorp/go-sockaddr v1.0.0 h1:GeH6tui99pF4NJgfnhp+L6+FfobzVW3Ah46sLo0ICXs= 271 | github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= 272 | github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= 273 | github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 274 | github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= 275 | github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 276 | github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= 277 | github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= 278 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 279 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 280 | github.com/hashicorp/golang-lru v0.5.3 h1:YPkqC67at8FYaadspW/6uE0COsBxS2656RLEr8Bppgk= 281 | github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= 282 | github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= 283 | github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= 284 | github.com/hashicorp/memberlist v0.1.3 h1:EmmoJme1matNzb+hMpDuR/0sbJSUisxyqBGG676r31M= 285 | github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= 286 | github.com/hashicorp/serf v0.8.2 h1:YZ7UKsJv+hKjqGVUUbtE3HNj79Eln2oQ75tniF6iPt0= 287 | github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= 288 | github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= 289 | github.com/iij/doapi v0.0.0-20190504054126-0bbf12d6d7df/go.mod h1:QMZY7/J/KSQEhKWFeDesPjMj+wCHReeknARU3wqlyN4= 290 | github.com/imdario/mergo v0.3.9 h1:UauaLniWCFHWd+Jp9oCEkTBj8VO/9DKg3PV3VCNMDIg= 291 | github.com/imdario/mergo v0.3.9/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= 292 | github.com/improbable-eng/grpc-web v0.13.0/go.mod h1:6hRR09jOEG81ADP5wCQju1z71g6OL4eEvELdran/3cs= 293 | github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf/go.mod h1:hyb9oH7vZsitZCiBt0ZvifOrB+qc8PS5IiilCIb87rg= 294 | github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= 295 | github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= 296 | github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1/go.mod h1:E0B/fFc00Y+Rasa88328GlI/XbtyysCtTHZS8h7IrBU= 297 | github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= 298 | github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= 299 | github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 300 | github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 301 | github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 302 | github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 303 | github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68= 304 | github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 305 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 306 | github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= 307 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 308 | github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd h1:Coekwdh0v2wtGp9Gmz1Ze3eVRAWJMLokvN3QjdzCHLY= 309 | github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= 310 | github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= 311 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 312 | github.com/klauspost/cpuid v1.2.3/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= 313 | github.com/klauspost/cpuid v1.3.1/go.mod h1:bYW4mA6ZgKPob1/Dlai2LviZJO7KGI3uoWLd42rAQw4= 314 | github.com/kolo/xmlrpc v0.0.0-20190717152603-07c4ee3fd181/go.mod h1:o03bZfuBwAXHetKXuInt4S7omeXUu62/A845kiycsSQ= 315 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 316 | github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 317 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 318 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 319 | github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs= 320 | github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= 321 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 322 | github.com/kr/pty v1.1.3/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 323 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 324 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 325 | github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= 326 | github.com/labbsr0x/bindman-dns-webhook v1.0.2/go.mod h1:p6b+VCXIR8NYKpDr8/dg1HKfQoRHCdcsROXKvmoehKA= 327 | github.com/labbsr0x/goh v1.0.1/go.mod h1:8K2UhVoaWXcCU7Lxoa2omWnC8gyW8px7/lmO61c027w= 328 | github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y= 329 | github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= 330 | github.com/linode/linodego v0.10.0/go.mod h1:cziNP7pbvE3mXIPneHj0oRY8L1WtGEIKlZ8LANE4eXA= 331 | github.com/liquidweb/liquidweb-go v1.6.0/go.mod h1:UDcVnAMDkZxpw4Y7NOHkqoeiGacVLEIG/i5J9cyixzQ= 332 | github.com/lucas-clemente/quic-go v0.19.3/go.mod h1:ADXpNbTQjq1hIzCpB+y/k5iz4n4z4IwqoLb94Kh5Hu8= 333 | github.com/lunixbochs/vtclean v1.0.0/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI= 334 | github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= 335 | github.com/marten-seemann/qpack v0.2.1/go.mod h1:F7Gl5L1jIgN1D11ucXefiuJS9UMVP2opoCp2jDKb7wc= 336 | github.com/marten-seemann/qtls v0.10.0/go.mod h1:UvMd1oaYDACI99/oZUYLzMCkBXQVT0aGm99sJhbT8hs= 337 | github.com/marten-seemann/qtls-go1-15 v0.1.1/go.mod h1:GyFwywLKkRt+6mfU99csTEY1joMZz5vmB1WNZH3P81I= 338 | github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= 339 | github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= 340 | github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= 341 | github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= 342 | github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= 343 | github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= 344 | github.com/mattn/go-runewidth v0.0.6/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= 345 | github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= 346 | github.com/mattn/go-tty v0.0.0-20180219170247-931426f7535a/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE= 347 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 348 | github.com/micro/cli/v2 v2.1.2 h1:43J1lChg/rZCC1rvdqZNFSQDrGT7qfMrtp6/ztpIkEM= 349 | github.com/micro/cli/v2 v2.1.2/go.mod h1:EguNh6DAoWKm9nmk+k/Rg0H3lQnDxqzu5x5srOtGtYg= 350 | github.com/micro/micro/v3 v3.2.1 h1:FtYn8ExrOD8wJhqGXjG6y4EzFfcZ36Zp3QCzQMf+uCc= 351 | github.com/micro/micro/v3 v3.2.1/go.mod h1:UqfLMsy88SNqc31m7tNMQb6xLNGtsKkjJJFp3iHFXfs= 352 | github.com/microcosm-cc/bluemonday v1.0.1/go.mod h1:hsXNsILzKxV+sX77C5b8FSuKF00vh2OMYv+xgHpAMF4= 353 | github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= 354 | github.com/miekg/dns v1.1.15/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= 355 | github.com/miekg/dns v1.1.27 h1:aEH/kqUzUxGJ/UHcEKdJY+ugH6WEzsEBBSPa8zuy1aM= 356 | github.com/miekg/dns v1.1.27/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= 357 | github.com/minio/md5-simd v1.1.0/go.mod h1:XpBqgZULrMYD3R+M28PcmP0CkI7PEMzB3U77ZrKZ0Gw= 358 | github.com/minio/minio-go/v7 v7.0.5/go.mod h1:TA0CQCjJZHM5SJj9IjqR0NmpmQJ6bCbXifAJ3mUU6Hw= 359 | github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= 360 | github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= 361 | github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= 362 | github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= 363 | github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= 364 | github.com/mitchellh/go-testing-interface v1.0.0 h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0= 365 | github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= 366 | github.com/mitchellh/go-vnc v0.0.0-20150629162542-723ed9867aed/go.mod h1:3rdaFaCv4AyBgu5ALFM0+tSuHrBh6v692nyQe3ikrq0= 367 | github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= 368 | github.com/mitchellh/hashstructure v1.0.0 h1:ZkRJX1CyOoTkar7p/mLS5TZU4nJ1Rn/F8u9dGS02Q3Y= 369 | github.com/mitchellh/hashstructure v1.0.0/go.mod h1:QjSHrPWS+BGUVBYkbTZWEnOh3G1DutKwClXU/ABz6AQ= 370 | github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= 371 | github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 372 | github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE= 373 | github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 374 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 375 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= 376 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 377 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 378 | github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI= 379 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 380 | github.com/morikuni/aec v0.0.0-20170113033406-39771216ff4c/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= 381 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 382 | github.com/namedotcom/go v0.0.0-20180403034216-08470befbe04/go.mod h1:5sN+Lt1CaY4wsPvgQH/jsuJi4XO2ssZbdsIizr4CVC8= 383 | github.com/nbio/st v0.0.0-20140626010706-e9e8d9816f32/go.mod h1:9wM+0iRr9ahx58uYLpLIr5fm8diHn0JbqRycJi6w0Ms= 384 | github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo= 385 | github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM= 386 | github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= 387 | github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= 388 | github.com/nightlyone/lockfile v1.0.0/go.mod h1:rywoIealpdNse2r832aiD9jRk8ErCatROs6LzC841CI= 389 | github.com/nrdcg/auroradns v1.0.0/go.mod h1:6JPXKzIRzZzMqtTDgueIhTi6rFf1QvYE/HzqidhOhjw= 390 | github.com/nrdcg/dnspod-go v0.4.0/go.mod h1:vZSoFSFeQVm2gWLMkyX61LZ8HI3BaqtHZWgPTGKr6KQ= 391 | github.com/nrdcg/goinwx v0.6.1/go.mod h1:XPiut7enlbEdntAqalBIqcYcTEVhpv/dKWgDCX2SwKQ= 392 | github.com/nrdcg/namesilo v0.2.1/go.mod h1:lwMvfQTyYq+BbjJd30ylEG4GPSS6PII0Tia4rRpRiyw= 393 | github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= 394 | github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= 395 | github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= 396 | github.com/olekukonko/tablewriter v0.0.3/go.mod h1:YZeBtGzYYEsCHp2LST/u/0NDwGkRoBtmn1cIWCJiS6M= 397 | github.com/olekukonko/tablewriter v0.0.4/go.mod h1:zq6QwlOf5SlnkVbMSr5EoBv3636FWnp+qbPhuoO21uA= 398 | github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 399 | github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 400 | github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg= 401 | github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= 402 | github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= 403 | github.com/onsi/gomega v1.4.2/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= 404 | github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= 405 | github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= 406 | github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= 407 | github.com/opencontainers/go-digest v0.0.0-20180430190053-c9281466c8b2/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= 408 | github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= 409 | github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= 410 | github.com/opencontainers/runc v0.0.0-20190115041553-12f6a991201f/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= 411 | github.com/opencontainers/runc v0.1.1/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= 412 | github.com/opencontainers/runtime-spec v0.1.2-0.20190507144316-5b71a03e2700/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= 413 | github.com/opencontainers/runtime-tools v0.0.0-20181011054405-1d69bd0f9c39/go.mod h1:r3f7wjNzSs2extwzU3Y+6pKfobzPh+kKFJ3ofN+3nfs= 414 | github.com/openzipkin/zipkin-go v0.1.1/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8= 415 | github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= 416 | github.com/oracle/oci-go-sdk v7.0.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888= 417 | github.com/ovh/go-ovh v0.0.0-20181109152953-ba5adb4cf014/go.mod h1:joRatxRJaZBsY3JAOEMcoOp05CnZzsx4scTxi95DHyQ= 418 | github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c h1:rp5dCmg/yLR3mgFuSOe4oEnDDmGLROTvMragMUXpTQw= 419 | github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c/go.mod h1:X07ZCGwUbLaax7L0S3Tw4hpejzu63ZrrQiUe6W0hcy0= 420 | github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c h1:Lgl0gzECD8GnQ5QCWA8o6BtfL6mDH5rQgM4/fX3avOs= 421 | github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= 422 | github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc= 423 | github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= 424 | github.com/pborman/uuid v1.2.1 h1:+ZZIw58t/ozdjRaXh/3awHfmWRbzYxJoAdNJxe/3pvw= 425 | github.com/pborman/uuid v1.2.1/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= 426 | github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= 427 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 428 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 429 | github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= 430 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 431 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 432 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 433 | github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= 434 | github.com/prometheus/client_golang v0.8.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 435 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 436 | github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= 437 | github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= 438 | github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g= 439 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 440 | github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 441 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 442 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 443 | github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= 444 | github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 445 | github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 446 | github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= 447 | github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 448 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 449 | github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 450 | github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 451 | github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= 452 | github.com/prometheus/procfs v0.0.5/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= 453 | github.com/rainycape/memcache v0.0.0-20150622160815-1031fa0ce2f2/go.mod h1:7tZKcyumwBO6qip7RNQ5r77yrssm9bfCowcLEBcU5IA= 454 | github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= 455 | github.com/rhysd/go-github-selfupdate v1.2.2/go.mod h1:khesvSyKcXDUxeySCedFh621iawCks0dS/QnHPcpCws= 456 | github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= 457 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 458 | github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= 459 | github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= 460 | github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= 461 | github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= 462 | github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= 463 | github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 464 | github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= 465 | github.com/sacloud/libsacloud v1.26.1/go.mod h1:79ZwATmHLIFZIMd7sxA3LwzVy/B77uj3LDoToVTxDoQ= 466 | github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= 467 | github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I= 468 | github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= 469 | github.com/serenize/snaker v0.0.0-20171204205717-a683aaf2d516/go.mod h1:Yow6lPLSAXx2ifx470yD/nUe22Dv5vBvxK/UK9UUTVs= 470 | github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= 471 | github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= 472 | github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= 473 | github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4/go.mod h1:XhFIlyj5a1fBNx5aJTbKoIq0mNaPvOagO+HjB3EtxrY= 474 | github.com/shurcooL/events v0.0.0-20181021180414-410e4ca65f48/go.mod h1:5u70Mqkb5O5cxEA8nxTsgrgLehJeAw6Oc4Ab1c/P1HM= 475 | github.com/shurcooL/github_flavored_markdown v0.0.0-20181002035957-2122de532470/go.mod h1:2dOwnU2uBioM+SGy2aZoq1f/Sd1l9OkAeAUvjSyvgU0= 476 | github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= 477 | github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= 478 | github.com/shurcooL/gofontwoff v0.0.0-20180329035133-29b52fc0a18d/go.mod h1:05UtEgK5zq39gLST6uB0cf3NEHjETfB4Fgr3Gx5R9Vw= 479 | github.com/shurcooL/gopherjslib v0.0.0-20160914041154-feb6d3990c2c/go.mod h1:8d3azKNyqcHP1GaQE/c6dDgjkgSx2BZ4IoEi4F1reUI= 480 | github.com/shurcooL/highlight_diff v0.0.0-20170515013008-09bb4053de1b/go.mod h1:ZpfEhSmds4ytuByIcDnOLkTHGUI6KNqRNPDLHDk+mUU= 481 | github.com/shurcooL/highlight_go v0.0.0-20181028180052-98c3abbbae20/go.mod h1:UDKB5a1T23gOMUJrI+uSuH0VRDStOiUVSjBTRDVBVag= 482 | github.com/shurcooL/home v0.0.0-20181020052607-80b7ffcb30f9/go.mod h1:+rgNQw2P9ARFAs37qieuu7ohDNQ3gds9msbT2yn85sg= 483 | github.com/shurcooL/htmlg v0.0.0-20170918183704-d01228ac9e50/go.mod h1:zPn1wHpTIePGnXSHpsVPWEktKXHr6+SS6x/IKRb7cpw= 484 | github.com/shurcooL/httperror v0.0.0-20170206035902-86b7830d14cc/go.mod h1:aYMfkZ6DWSJPJ6c4Wwz3QtW22G7mf/PEgaB9k/ik5+Y= 485 | github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= 486 | github.com/shurcooL/httpgzip v0.0.0-20180522190206-b1c53ac65af9/go.mod h1:919LwcH0M7/W4fcZ0/jy0qGght1GIhqyS/EgWGH2j5Q= 487 | github.com/shurcooL/issues v0.0.0-20181008053335-6292fdc1e191/go.mod h1:e2qWDig5bLteJ4fwvDAc2NHzqFEthkqn7aOZAOpj+PQ= 488 | github.com/shurcooL/issuesapp v0.0.0-20180602232740-048589ce2241/go.mod h1:NPpHK2TI7iSaM0buivtFUc9offApnI0Alt/K8hcHy0I= 489 | github.com/shurcooL/notifications v0.0.0-20181007000457-627ab5aea122/go.mod h1:b5uSkrEVM1jQUspwbixRBhaIjIzL2xazXp6kntxYle0= 490 | github.com/shurcooL/octicon v0.0.0-20181028054416-fa4f57f9efb2/go.mod h1:eWdoE5JD4R5UVWDucdOPg1g2fqQRq78IQa9zlOV1vpQ= 491 | github.com/shurcooL/reactions v0.0.0-20181006231557-f2e0b4ca5b82/go.mod h1:TCR1lToEk4d2s07G3XGfz2QrgHXg4RJBvjrOozvoWfk= 492 | github.com/shurcooL/sanitized_anchor_name v0.0.0-20170918181015-86672fcb3f95/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= 493 | github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo= 494 | github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= 495 | github.com/shurcooL/users v0.0.0-20180125191416-49c67e49c537/go.mod h1:QJTqeLYEDaXHZDBsXlPCDqdhQuJkuw4NOtaxYe3xii4= 496 | github.com/shurcooL/webdavfs v0.0.0-20170829043945-18c3829fa133/go.mod h1:hKmq5kWdCj2z2KEozexVbfEZIWiTjhE0+UjmZgPqehw= 497 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 498 | github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= 499 | github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= 500 | github.com/skratchdot/open-golang v0.0.0-20160302144031-75fb7ed4208c/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog= 501 | github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= 502 | github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= 503 | github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod h1:UdhH50NIW0fCiwBSr0co2m7BnFLdv4fQTgdqdJTHFeE= 504 | github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e/go.mod h1:HuIsMU8RRBOtsCgI77wP899iHVBQpCmg4ErYMZB+2IA= 505 | github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= 506 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 507 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 508 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 509 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 510 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 511 | github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= 512 | github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= 513 | github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 514 | github.com/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= 515 | github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA= 516 | github.com/tcnksm/go-gitconfig v0.1.2/go.mod h1:/8EhP4H7oJZdIPyT+/UIsG87kTzrzM4UsLGSItWYCpE= 517 | github.com/teris-io/shortid v0.0.0-20171029131806-771a37caa5cf/go.mod h1:M8agBzgqHIhgj7wEn9/0hJUZcrvt9VY+Ln+S1I5Mha0= 518 | github.com/timewasted/linode v0.0.0-20160829202747-37e84520dcf7/go.mod h1:imsgLplxEC/etjIhdr3dNzV3JeT27LbVu5pYWm0JCBY= 519 | github.com/transip/gotransip v0.0.0-20190812104329-6d8d9179b66f/go.mod h1:i0f4R4o2HM0m3DZYQWsj6/MEowD57VzoH0v3d7igeFY= 520 | github.com/uber-go/atomic v1.3.2/go.mod h1:/Ct5t2lcmbJ4OSe/waGBoaVvVqtO0bmtfVNex1PFV8g= 521 | github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= 522 | github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= 523 | github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= 524 | github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= 525 | github.com/ulikunitz/xz v0.5.5/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= 526 | github.com/urfave/cli v0.0.0-20171014202726-7bc6a0acffa5/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= 527 | github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= 528 | github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= 529 | github.com/urfave/cli/v2 v2.2.0/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ= 530 | github.com/viant/assertly v0.4.8/go.mod h1:aGifi++jvCrUaklKEKT0BU95igDNaqkvz+49uaYMPRU= 531 | github.com/viant/toolbox v0.24.0/go.mod h1:OxMCG57V0PXuIP2HNQrtJf2CjqdmbrOx5EkMILuUhzM= 532 | github.com/vultr/govultr v0.1.4/go.mod h1:9H008Uxr/C4vFNGLqKx232C206GL0PBHzOP0809bGNA= 533 | github.com/xanzy/go-gitlab v0.35.1/go.mod h1:sPLojNBn68fMUWSxIJtdVVIP8uSBYqesTfDUseX11Ug= 534 | github.com/xanzy/ssh-agent v0.2.1 h1:TCbipTQL2JiiCprBWx9frJ2eJlCYT00NmctrHxVAr70= 535 | github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4= 536 | github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= 537 | github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= 538 | github.com/xeipuuv/gojsonschema v0.0.0-20180618132009-1d523034197f/go.mod h1:5yf86TLmAcydyeJq5YvxkGPE2fm/u4myDekKRoLuqhs= 539 | github.com/xeipuuv/gojsonschema v1.1.0/go.mod h1:5yf86TLmAcydyeJq5YvxkGPE2fm/u4myDekKRoLuqhs= 540 | github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= 541 | go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= 542 | go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA= 543 | go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= 544 | go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= 545 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 546 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 547 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 548 | go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= 549 | go.uber.org/ratelimit v0.0.0-20180316092928-c15da0234277/go.mod h1:2X8KaoNd1J0lZV+PxJk/5+DGbO/tpwLR1m++a7FnB/Y= 550 | go4.org v0.0.0-20180809161055-417644f6feb5/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE= 551 | golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod h1:OWs+y06UdEOHN4y+MfF/py+xQ/tYqIWW03b70/CG9Rw= 552 | golang.org/x/crypto v0.0.0-20180621125126-a49355c7e3f8/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 553 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 554 | golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 555 | golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 556 | golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 557 | golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 558 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 559 | golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 560 | golang.org/x/crypto v0.0.0-20190418165655-df01cb2cc480/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= 561 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 562 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 563 | golang.org/x/crypto v0.0.0-20190927123631-a832865fa7ad/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 564 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 565 | golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 566 | golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 567 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 568 | golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 h1:DZhuSZLsGlFL4CmhA8BcRA0mnthyA/nZ00AqCUo7vHg= 569 | golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 570 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 571 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 572 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 573 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 574 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 575 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 576 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 577 | golang.org/x/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 578 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 579 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 580 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 581 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 582 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 583 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 584 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 585 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 586 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 587 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 588 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 589 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 590 | golang.org/x/net v0.0.0-20180611182652-db08ff08e862/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 591 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 592 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 593 | golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 594 | golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 595 | golang.org/x/net v0.0.0-20181029044818-c44066c5c816/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 596 | golang.org/x/net v0.0.0-20181106065722-10aee1819953/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 597 | golang.org/x/net v0.0.0-20181108082009-03003ca0c849/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 598 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 599 | golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 600 | golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 601 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 602 | golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 603 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 604 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 605 | golang.org/x/net v0.0.0-20190313220215-9f648a60d977/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 606 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 607 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 608 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 609 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 610 | golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 611 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 612 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 613 | golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 614 | golang.org/x/net v0.0.0-20190930134127-c5a3c61f89f3/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 615 | golang.org/x/net v0.0.0-20191027093000-83d349e8ac1a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 616 | golang.org/x/net v0.0.0-20191126235420-ef20fe5d7933/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 617 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 618 | golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 619 | golang.org/x/net v0.0.0-20200707034311-ab3426394381 h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU= 620 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 621 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 622 | golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 623 | golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 624 | golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 625 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 626 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 627 | golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852/go.mod h1:JLpeXjPJfIyPr5TlbXLkXWLhP8nz10XfvxElABhCtcw= 628 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 629 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 630 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 631 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 632 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 633 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 634 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a h1:DcqTD9SDLc+1P/r1EmRBwnVsrOwW+kk2vWf9n+1sGhs= 635 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 636 | golang.org/x/sys v0.0.0-20180622082034-63fc586f45fe/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 637 | golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 638 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 639 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 640 | golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 641 | golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 642 | golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 643 | golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 644 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 645 | golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 646 | golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 647 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 648 | golang.org/x/sys v0.0.0-20190221075227-b4e8571b14e0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 649 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 650 | golang.org/x/sys v0.0.0-20190316082340-a2f829d7f35f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 651 | golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 652 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 653 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 654 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 655 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 656 | golang.org/x/sys v0.0.0-20190514135907-3a4b5fb9f71f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 657 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 658 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 659 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 660 | golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 661 | golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 662 | golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 663 | golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 664 | golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 665 | golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 666 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 667 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 668 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 669 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 670 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 671 | golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 672 | golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae h1:Ih9Yo4hSPImZOpfGuA4bR/ORKTAbhZo2AbWNRCnevdo= 673 | golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 674 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 675 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 676 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 677 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 678 | golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= 679 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 680 | golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 681 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 682 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 683 | golang.org/x/time v0.0.0-20190921001708-c4c64cad1fd0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 684 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 685 | golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 686 | golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 687 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 688 | golang.org/x/tools v0.0.0-20181030000716-a0a13e073c7b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 689 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 690 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 691 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 692 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 693 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 694 | golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 695 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 696 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 697 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 698 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 699 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 700 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 701 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 702 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 703 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 704 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 705 | golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 706 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 707 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 708 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 709 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= 710 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 711 | google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= 712 | google.golang.org/api v0.0.0-20181030000543-1d582fd0359e/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= 713 | google.golang.org/api v0.1.0/go.mod h1:UGEZY7KEX120AnNLIHFMKIo4obdJhkp2tPbaPlQx13Y= 714 | google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= 715 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 716 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 717 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 718 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 719 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 720 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 721 | google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 722 | google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 723 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 724 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 725 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 726 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 727 | google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 728 | google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 729 | google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898/go.mod h1:7Ep/1NZk928CDR8SjdVbjWNpdIf6nzjE3BTgJDr2Atg= 730 | google.golang.org/genproto v0.0.0-20190306203927-b5d61aea6440/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 731 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 732 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 733 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 734 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 735 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 736 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 737 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 738 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 739 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 740 | google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= 741 | google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio= 742 | google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= 743 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 744 | google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 745 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 746 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 747 | google.golang.org/grpc v1.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 748 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 749 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 750 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 751 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 752 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 753 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 754 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 755 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 756 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 757 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 758 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 759 | google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= 760 | google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk= 761 | google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= 762 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 763 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 764 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 765 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 766 | gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU= 767 | gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 768 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 769 | gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= 770 | gopkg.in/h2non/gock.v1 v1.0.15/go.mod h1:sX4zAkdYX1TRGJ2JY156cFspQn4yRWn6p9EMdODlynE= 771 | gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= 772 | gopkg.in/ini.v1 v1.42.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= 773 | gopkg.in/ini.v1 v1.44.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= 774 | gopkg.in/ini.v1 v1.57.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= 775 | gopkg.in/ns1/ns1-go.v2 v2.0.0-20190730140822-b51389932cbc/go.mod h1:VV+3haRsgDiVLxyifmMBrBIuCWFBPYKbRssXB9z67Hw= 776 | gopkg.in/resty.v1 v1.9.1/go.mod h1:vo52Hzryw9PnPHcJfPsBiFW62XhNx5OczbV9y+IMpgc= 777 | gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= 778 | gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= 779 | gopkg.in/square/go-jose.v2 v2.4.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= 780 | gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= 781 | gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= 782 | gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= 783 | gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= 784 | gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= 785 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 786 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 787 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 788 | gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 789 | gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= 790 | gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 791 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= 792 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 793 | gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= 794 | grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod h1:77eQGdRu53HpSqPFJFmuJdjuHRquDANNeA4x7B8WQ9o= 795 | honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 796 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 797 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 798 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 799 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 800 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 801 | k8s.io/kubernetes v1.13.0/go.mod h1:ocZa8+6APFNC2tX1DZASIbocyYT5jHzqFVsY5aoB7Jk= 802 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 803 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 804 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 805 | sourcegraph.com/sourcegraph/go-diff v0.5.0/go.mod h1:kuch7UrkMzY0X+p9CRK03kfuPQ2zzQcaEFbx8wA8rck= 806 | sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0= 807 | -------------------------------------------------------------------------------- /helloworld/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine 2 | ADD helloworld /helloworld 3 | ENTRYPOINT [ "/helloworld" ] 4 | -------------------------------------------------------------------------------- /helloworld/Makefile: -------------------------------------------------------------------------------- 1 | 2 | GOPATH:=$(shell go env GOPATH) 3 | .PHONY: init 4 | init: 5 | go get -u github.com/golang/protobuf/proto 6 | go get -u github.com/golang/protobuf/protoc-gen-go 7 | go get github.com/micro/micro/v3/cmd/protoc-gen-micro 8 | .PHONY: proto 9 | proto: 10 | protoc --proto_path=. --micro_out=. --go_out=:. proto/helloworld.proto 11 | 12 | .PHONY: build 13 | build: 14 | go build -o helloworld *.go 15 | 16 | .PHONY: test 17 | test: 18 | go test -v ./... -cover 19 | 20 | .PHONY: docker 21 | docker: 22 | docker build . -t helloworld:latest 23 | -------------------------------------------------------------------------------- /helloworld/client/client.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | "github.com/asim/go-micro/v3" 7 | helloworld "go-micro-examples/helloworld/proto" 8 | ) 9 | 10 | func main() { 11 | // create a new service 12 | service := micro.NewService() 13 | 14 | // parse command line flags 15 | service.Init() 16 | 17 | // Use the generated client stub 18 | cl := helloworld.NewHelloworldService("go.micro.srv.HelloWorld", service.Client()) 19 | 20 | // Make request 21 | rsp, err := cl.Call(context.Background(), &helloworld.Request{ 22 | Name: "World!", 23 | }) 24 | if err != nil { 25 | fmt.Println(err) 26 | return 27 | } 28 | fmt.Println(rsp.Msg) 29 | } 30 | -------------------------------------------------------------------------------- /helloworld/generate.go: -------------------------------------------------------------------------------- 1 | package main 2 | //go:generate make proto 3 | -------------------------------------------------------------------------------- /helloworld/handler/helloworld.go: -------------------------------------------------------------------------------- 1 | package handler 2 | 3 | import ( 4 | "context" 5 | "github.com/asim/go-micro/v3/util/log" 6 | 7 | helloworld "go-micro-examples/helloworld/proto" 8 | ) 9 | 10 | type Helloworld struct{} 11 | 12 | // Call is a single request handler called via client.Call or the generated client code 13 | func (e *Helloworld) Call(ctx context.Context, req *helloworld.Request, rsp *helloworld.Response) error { 14 | log.Info("Received Helloworld.Call request") 15 | rsp.Msg = "Hello " + req.Name 16 | return nil 17 | } 18 | 19 | // Stream is a server side stream handler called via client.Stream or the generated client code 20 | func (e *Helloworld) Stream(ctx context.Context, req *helloworld.StreamingRequest, stream helloworld.Helloworld_StreamStream) error { 21 | log.Infof("Received Helloworld.Stream request with count: %d", req.Count) 22 | 23 | for i := 0; i < int(req.Count); i++ { 24 | log.Infof("Responding: %d", i) 25 | if err := stream.Send(&helloworld.StreamingResponse{ 26 | Count: int64(i), 27 | }); err != nil { 28 | return err 29 | } 30 | } 31 | 32 | return nil 33 | } 34 | 35 | // PingPong is a bidirectional stream handler called via client.Stream or the generated client code 36 | func (e *Helloworld) PingPong(ctx context.Context, stream helloworld.Helloworld_PingPongStream) error { 37 | for { 38 | req, err := stream.Recv() 39 | if err != nil { 40 | return err 41 | } 42 | log.Infof("Got ping %v", req.Stroke) 43 | if err := stream.Send(&helloworld.Pong{Stroke: req.Stroke}); err != nil { 44 | return err 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /helloworld/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asim/go-micro/v3" 5 | "github.com/asim/go-micro/v3/logger" 6 | "go-micro-examples/helloworld/handler" 7 | pb "go-micro-examples/helloworld/proto" 8 | ) 9 | 10 | const ( 11 | ServerName = "go.micro.srv.HelloWorld" // server name 12 | ) 13 | 14 | func main() { 15 | // Create service 16 | service := micro.NewService( 17 | micro.Name(ServerName), 18 | micro.Version("latest"), 19 | ) 20 | 21 | // Register handler 22 | if err := pb.RegisterHelloworldHandler(service.Server(), new(handler.Helloworld)); err != nil { 23 | logger.Fatal(err) 24 | } 25 | 26 | // Run service 27 | if err := service.Run(); err != nil { 28 | logger.Fatal(err) 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /helloworld/proto/helloworld.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 | // source: proto/helloworld.proto 3 | 4 | package helloworld 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | io "io" 10 | math "math" 11 | math_bits "math/bits" 12 | ) 13 | 14 | // Reference imports to suppress errors if they are not otherwise used. 15 | var _ = proto.Marshal 16 | var _ = fmt.Errorf 17 | var _ = math.Inf 18 | 19 | // This is a compile-time assertion to ensure that this generated file 20 | // is compatible with the proto package it is being compiled against. 21 | // A compilation error at this line likely means your copy of the 22 | // proto package needs to be updated. 23 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 | 25 | type Message struct { 26 | Say string `protobuf:"bytes,1,opt,name=say,proto3" json:"say,omitempty"` 27 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 28 | XXX_unrecognized []byte `json:"-"` 29 | XXX_sizecache int32 `json:"-"` 30 | } 31 | 32 | func (m *Message) Reset() { *m = Message{} } 33 | func (m *Message) String() string { return proto.CompactTextString(m) } 34 | func (*Message) ProtoMessage() {} 35 | func (*Message) Descriptor() ([]byte, []int) { 36 | return fileDescriptor_4d53fe9c48eadaad, []int{0} 37 | } 38 | func (m *Message) XXX_Unmarshal(b []byte) error { 39 | return m.Unmarshal(b) 40 | } 41 | func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 42 | if deterministic { 43 | return xxx_messageInfo_Message.Marshal(b, m, deterministic) 44 | } else { 45 | b = b[:cap(b)] 46 | n, err := m.MarshalToSizedBuffer(b) 47 | if err != nil { 48 | return nil, err 49 | } 50 | return b[:n], nil 51 | } 52 | } 53 | func (m *Message) XXX_Merge(src proto.Message) { 54 | xxx_messageInfo_Message.Merge(m, src) 55 | } 56 | func (m *Message) XXX_Size() int { 57 | return m.Size() 58 | } 59 | func (m *Message) XXX_DiscardUnknown() { 60 | xxx_messageInfo_Message.DiscardUnknown(m) 61 | } 62 | 63 | var xxx_messageInfo_Message proto.InternalMessageInfo 64 | 65 | func (m *Message) GetSay() string { 66 | if m != nil { 67 | return m.Say 68 | } 69 | return "" 70 | } 71 | 72 | type Request struct { 73 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 74 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 75 | XXX_unrecognized []byte `json:"-"` 76 | XXX_sizecache int32 `json:"-"` 77 | } 78 | 79 | func (m *Request) Reset() { *m = Request{} } 80 | func (m *Request) String() string { return proto.CompactTextString(m) } 81 | func (*Request) ProtoMessage() {} 82 | func (*Request) Descriptor() ([]byte, []int) { 83 | return fileDescriptor_4d53fe9c48eadaad, []int{1} 84 | } 85 | func (m *Request) XXX_Unmarshal(b []byte) error { 86 | return m.Unmarshal(b) 87 | } 88 | func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 89 | if deterministic { 90 | return xxx_messageInfo_Request.Marshal(b, m, deterministic) 91 | } else { 92 | b = b[:cap(b)] 93 | n, err := m.MarshalToSizedBuffer(b) 94 | if err != nil { 95 | return nil, err 96 | } 97 | return b[:n], nil 98 | } 99 | } 100 | func (m *Request) XXX_Merge(src proto.Message) { 101 | xxx_messageInfo_Request.Merge(m, src) 102 | } 103 | func (m *Request) XXX_Size() int { 104 | return m.Size() 105 | } 106 | func (m *Request) XXX_DiscardUnknown() { 107 | xxx_messageInfo_Request.DiscardUnknown(m) 108 | } 109 | 110 | var xxx_messageInfo_Request proto.InternalMessageInfo 111 | 112 | func (m *Request) GetName() string { 113 | if m != nil { 114 | return m.Name 115 | } 116 | return "" 117 | } 118 | 119 | type Response struct { 120 | Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` 121 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 122 | XXX_unrecognized []byte `json:"-"` 123 | XXX_sizecache int32 `json:"-"` 124 | } 125 | 126 | func (m *Response) Reset() { *m = Response{} } 127 | func (m *Response) String() string { return proto.CompactTextString(m) } 128 | func (*Response) ProtoMessage() {} 129 | func (*Response) Descriptor() ([]byte, []int) { 130 | return fileDescriptor_4d53fe9c48eadaad, []int{2} 131 | } 132 | func (m *Response) XXX_Unmarshal(b []byte) error { 133 | return m.Unmarshal(b) 134 | } 135 | func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 136 | if deterministic { 137 | return xxx_messageInfo_Response.Marshal(b, m, deterministic) 138 | } else { 139 | b = b[:cap(b)] 140 | n, err := m.MarshalToSizedBuffer(b) 141 | if err != nil { 142 | return nil, err 143 | } 144 | return b[:n], nil 145 | } 146 | } 147 | func (m *Response) XXX_Merge(src proto.Message) { 148 | xxx_messageInfo_Response.Merge(m, src) 149 | } 150 | func (m *Response) XXX_Size() int { 151 | return m.Size() 152 | } 153 | func (m *Response) XXX_DiscardUnknown() { 154 | xxx_messageInfo_Response.DiscardUnknown(m) 155 | } 156 | 157 | var xxx_messageInfo_Response proto.InternalMessageInfo 158 | 159 | func (m *Response) GetMsg() string { 160 | if m != nil { 161 | return m.Msg 162 | } 163 | return "" 164 | } 165 | 166 | type StreamingRequest struct { 167 | Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` 168 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 169 | XXX_unrecognized []byte `json:"-"` 170 | XXX_sizecache int32 `json:"-"` 171 | } 172 | 173 | func (m *StreamingRequest) Reset() { *m = StreamingRequest{} } 174 | func (m *StreamingRequest) String() string { return proto.CompactTextString(m) } 175 | func (*StreamingRequest) ProtoMessage() {} 176 | func (*StreamingRequest) Descriptor() ([]byte, []int) { 177 | return fileDescriptor_4d53fe9c48eadaad, []int{3} 178 | } 179 | func (m *StreamingRequest) XXX_Unmarshal(b []byte) error { 180 | return m.Unmarshal(b) 181 | } 182 | func (m *StreamingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 183 | if deterministic { 184 | return xxx_messageInfo_StreamingRequest.Marshal(b, m, deterministic) 185 | } else { 186 | b = b[:cap(b)] 187 | n, err := m.MarshalToSizedBuffer(b) 188 | if err != nil { 189 | return nil, err 190 | } 191 | return b[:n], nil 192 | } 193 | } 194 | func (m *StreamingRequest) XXX_Merge(src proto.Message) { 195 | xxx_messageInfo_StreamingRequest.Merge(m, src) 196 | } 197 | func (m *StreamingRequest) XXX_Size() int { 198 | return m.Size() 199 | } 200 | func (m *StreamingRequest) XXX_DiscardUnknown() { 201 | xxx_messageInfo_StreamingRequest.DiscardUnknown(m) 202 | } 203 | 204 | var xxx_messageInfo_StreamingRequest proto.InternalMessageInfo 205 | 206 | func (m *StreamingRequest) GetCount() int64 { 207 | if m != nil { 208 | return m.Count 209 | } 210 | return 0 211 | } 212 | 213 | type StreamingResponse struct { 214 | Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` 215 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 216 | XXX_unrecognized []byte `json:"-"` 217 | XXX_sizecache int32 `json:"-"` 218 | } 219 | 220 | func (m *StreamingResponse) Reset() { *m = StreamingResponse{} } 221 | func (m *StreamingResponse) String() string { return proto.CompactTextString(m) } 222 | func (*StreamingResponse) ProtoMessage() {} 223 | func (*StreamingResponse) Descriptor() ([]byte, []int) { 224 | return fileDescriptor_4d53fe9c48eadaad, []int{4} 225 | } 226 | func (m *StreamingResponse) XXX_Unmarshal(b []byte) error { 227 | return m.Unmarshal(b) 228 | } 229 | func (m *StreamingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 230 | if deterministic { 231 | return xxx_messageInfo_StreamingResponse.Marshal(b, m, deterministic) 232 | } else { 233 | b = b[:cap(b)] 234 | n, err := m.MarshalToSizedBuffer(b) 235 | if err != nil { 236 | return nil, err 237 | } 238 | return b[:n], nil 239 | } 240 | } 241 | func (m *StreamingResponse) XXX_Merge(src proto.Message) { 242 | xxx_messageInfo_StreamingResponse.Merge(m, src) 243 | } 244 | func (m *StreamingResponse) XXX_Size() int { 245 | return m.Size() 246 | } 247 | func (m *StreamingResponse) XXX_DiscardUnknown() { 248 | xxx_messageInfo_StreamingResponse.DiscardUnknown(m) 249 | } 250 | 251 | var xxx_messageInfo_StreamingResponse proto.InternalMessageInfo 252 | 253 | func (m *StreamingResponse) GetCount() int64 { 254 | if m != nil { 255 | return m.Count 256 | } 257 | return 0 258 | } 259 | 260 | type Ping struct { 261 | Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"` 262 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 263 | XXX_unrecognized []byte `json:"-"` 264 | XXX_sizecache int32 `json:"-"` 265 | } 266 | 267 | func (m *Ping) Reset() { *m = Ping{} } 268 | func (m *Ping) String() string { return proto.CompactTextString(m) } 269 | func (*Ping) ProtoMessage() {} 270 | func (*Ping) Descriptor() ([]byte, []int) { 271 | return fileDescriptor_4d53fe9c48eadaad, []int{5} 272 | } 273 | func (m *Ping) XXX_Unmarshal(b []byte) error { 274 | return m.Unmarshal(b) 275 | } 276 | func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 277 | if deterministic { 278 | return xxx_messageInfo_Ping.Marshal(b, m, deterministic) 279 | } else { 280 | b = b[:cap(b)] 281 | n, err := m.MarshalToSizedBuffer(b) 282 | if err != nil { 283 | return nil, err 284 | } 285 | return b[:n], nil 286 | } 287 | } 288 | func (m *Ping) XXX_Merge(src proto.Message) { 289 | xxx_messageInfo_Ping.Merge(m, src) 290 | } 291 | func (m *Ping) XXX_Size() int { 292 | return m.Size() 293 | } 294 | func (m *Ping) XXX_DiscardUnknown() { 295 | xxx_messageInfo_Ping.DiscardUnknown(m) 296 | } 297 | 298 | var xxx_messageInfo_Ping proto.InternalMessageInfo 299 | 300 | func (m *Ping) GetStroke() int64 { 301 | if m != nil { 302 | return m.Stroke 303 | } 304 | return 0 305 | } 306 | 307 | type Pong struct { 308 | Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"` 309 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 310 | XXX_unrecognized []byte `json:"-"` 311 | XXX_sizecache int32 `json:"-"` 312 | } 313 | 314 | func (m *Pong) Reset() { *m = Pong{} } 315 | func (m *Pong) String() string { return proto.CompactTextString(m) } 316 | func (*Pong) ProtoMessage() {} 317 | func (*Pong) Descriptor() ([]byte, []int) { 318 | return fileDescriptor_4d53fe9c48eadaad, []int{6} 319 | } 320 | func (m *Pong) XXX_Unmarshal(b []byte) error { 321 | return m.Unmarshal(b) 322 | } 323 | func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 324 | if deterministic { 325 | return xxx_messageInfo_Pong.Marshal(b, m, deterministic) 326 | } else { 327 | b = b[:cap(b)] 328 | n, err := m.MarshalToSizedBuffer(b) 329 | if err != nil { 330 | return nil, err 331 | } 332 | return b[:n], nil 333 | } 334 | } 335 | func (m *Pong) XXX_Merge(src proto.Message) { 336 | xxx_messageInfo_Pong.Merge(m, src) 337 | } 338 | func (m *Pong) XXX_Size() int { 339 | return m.Size() 340 | } 341 | func (m *Pong) XXX_DiscardUnknown() { 342 | xxx_messageInfo_Pong.DiscardUnknown(m) 343 | } 344 | 345 | var xxx_messageInfo_Pong proto.InternalMessageInfo 346 | 347 | func (m *Pong) GetStroke() int64 { 348 | if m != nil { 349 | return m.Stroke 350 | } 351 | return 0 352 | } 353 | 354 | func init() { 355 | proto.RegisterType((*Message)(nil), "helloworld.Message") 356 | proto.RegisterType((*Request)(nil), "helloworld.Request") 357 | proto.RegisterType((*Response)(nil), "helloworld.Response") 358 | proto.RegisterType((*StreamingRequest)(nil), "helloworld.StreamingRequest") 359 | proto.RegisterType((*StreamingResponse)(nil), "helloworld.StreamingResponse") 360 | proto.RegisterType((*Ping)(nil), "helloworld.Ping") 361 | proto.RegisterType((*Pong)(nil), "helloworld.Pong") 362 | } 363 | 364 | func init() { proto.RegisterFile("proto/helloworld.proto", fileDescriptor_4d53fe9c48eadaad) } 365 | 366 | var fileDescriptor_4d53fe9c48eadaad = []byte{ 367 | // 291 bytes of a gzipped FileDescriptorProto 368 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xb1, 0x4e, 0xc3, 0x30, 369 | 0x10, 0x86, 0x6b, 0x35, 0xa4, 0xe5, 0xa6, 0x70, 0x54, 0x15, 0x0a, 0x6d, 0x84, 0x3c, 0x85, 0xa5, 370 | 0x54, 0x94, 0x8d, 0x0d, 0x16, 0x18, 0x90, 0x50, 0xd8, 0xd8, 0x0c, 0x58, 0xa6, 0xc2, 0xb1, 0x4b, 371 | 0xec, 0x0a, 0xf1, 0x26, 0x3c, 0x0f, 0x13, 0x23, 0x8f, 0x80, 0xc2, 0x8b, 0xa0, 0x38, 0x0e, 0x4d, 372 | 0x11, 0xdd, 0xee, 0xfe, 0xff, 0xbb, 0xd3, 0x7f, 0x36, 0x0c, 0x17, 0x85, 0xb6, 0xfa, 0xe8, 0x91, 373 | 0x4b, 0xa9, 0x5f, 0x74, 0x21, 0x1f, 0x26, 0x4e, 0x40, 0x58, 0x29, 0x74, 0x1f, 0x7a, 0x57, 0xdc, 374 | 0x18, 0x26, 0x38, 0x46, 0xd0, 0x35, 0xec, 0x75, 0x8f, 0x1c, 0x90, 0x74, 0x3b, 0xab, 0x4a, 0x3a, 375 | 0x86, 0x5e, 0xc6, 0x9f, 0x97, 0xdc, 0x58, 0x44, 0x08, 0x14, 0xcb, 0xb9, 0x77, 0x5d, 0x4d, 0x47, 376 | 0xd0, 0xcf, 0xb8, 0x59, 0x68, 0x65, 0xdc, 0x70, 0x6e, 0x44, 0x33, 0x9c, 0x1b, 0x41, 0x53, 0x88, 377 | 0x6e, 0x6c, 0xc1, 0x59, 0x3e, 0x57, 0xa2, 0xd9, 0x32, 0x80, 0xad, 0x7b, 0xbd, 0x54, 0xd6, 0x71, 378 | 0xdd, 0xac, 0x6e, 0xe8, 0x21, 0xec, 0xb4, 0x48, 0xbf, 0xf0, 0x7f, 0x34, 0x81, 0xe0, 0x7a, 0xae, 379 | 0x04, 0x0e, 0x21, 0x34, 0xb6, 0xd0, 0x4f, 0xdc, 0xdb, 0xbe, 0x73, 0xbe, 0xde, 0xec, 0x1f, 0xbf, 380 | 0x13, 0x80, 0x8b, 0xdf, 0xeb, 0x71, 0x06, 0xc1, 0x39, 0x93, 0x12, 0x77, 0x27, 0xad, 0x47, 0xf2, 381 | 0x61, 0xe3, 0xc1, 0xba, 0x58, 0xe7, 0xa2, 0x1d, 0xbc, 0x84, 0xb0, 0x8e, 0x8b, 0xa3, 0x36, 0xf1, 382 | 0xf7, 0xd8, 0x78, 0xbc, 0xc1, 0x6d, 0x16, 0x4d, 0x09, 0x9e, 0x40, 0xbf, 0x3a, 0xc7, 0x45, 0x8e, 383 | 0xda, 0x78, 0xa5, 0xc6, 0xeb, 0x8a, 0x56, 0x82, 0x76, 0x52, 0x32, 0x25, 0x67, 0xf4, 0xa3, 0x4c, 384 | 0xc8, 0x67, 0x99, 0x90, 0xaf, 0x32, 0x21, 0x6f, 0xdf, 0x49, 0xe7, 0x36, 0x72, 0x1f, 0x7b, 0xba, 385 | 0xc2, 0xef, 0x42, 0xa7, 0xcc, 0x7e, 0x02, 0x00, 0x00, 0xff, 0xff, 0x2f, 0x69, 0xe7, 0x1a, 0x04, 386 | 0x02, 0x00, 0x00, 387 | } 388 | 389 | func (m *Message) Marshal() (dAtA []byte, err error) { 390 | size := m.Size() 391 | dAtA = make([]byte, size) 392 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 393 | if err != nil { 394 | return nil, err 395 | } 396 | return dAtA[:n], nil 397 | } 398 | 399 | func (m *Message) MarshalTo(dAtA []byte) (int, error) { 400 | size := m.Size() 401 | return m.MarshalToSizedBuffer(dAtA[:size]) 402 | } 403 | 404 | func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) { 405 | i := len(dAtA) 406 | _ = i 407 | var l int 408 | _ = l 409 | if m.XXX_unrecognized != nil { 410 | i -= len(m.XXX_unrecognized) 411 | copy(dAtA[i:], m.XXX_unrecognized) 412 | } 413 | if len(m.Say) > 0 { 414 | i -= len(m.Say) 415 | copy(dAtA[i:], m.Say) 416 | i = encodeVarintHelloworld(dAtA, i, uint64(len(m.Say))) 417 | i-- 418 | dAtA[i] = 0xa 419 | } 420 | return len(dAtA) - i, nil 421 | } 422 | 423 | func (m *Request) Marshal() (dAtA []byte, err error) { 424 | size := m.Size() 425 | dAtA = make([]byte, size) 426 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 427 | if err != nil { 428 | return nil, err 429 | } 430 | return dAtA[:n], nil 431 | } 432 | 433 | func (m *Request) MarshalTo(dAtA []byte) (int, error) { 434 | size := m.Size() 435 | return m.MarshalToSizedBuffer(dAtA[:size]) 436 | } 437 | 438 | func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { 439 | i := len(dAtA) 440 | _ = i 441 | var l int 442 | _ = l 443 | if m.XXX_unrecognized != nil { 444 | i -= len(m.XXX_unrecognized) 445 | copy(dAtA[i:], m.XXX_unrecognized) 446 | } 447 | if len(m.Name) > 0 { 448 | i -= len(m.Name) 449 | copy(dAtA[i:], m.Name) 450 | i = encodeVarintHelloworld(dAtA, i, uint64(len(m.Name))) 451 | i-- 452 | dAtA[i] = 0xa 453 | } 454 | return len(dAtA) - i, nil 455 | } 456 | 457 | func (m *Response) Marshal() (dAtA []byte, err error) { 458 | size := m.Size() 459 | dAtA = make([]byte, size) 460 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 461 | if err != nil { 462 | return nil, err 463 | } 464 | return dAtA[:n], nil 465 | } 466 | 467 | func (m *Response) MarshalTo(dAtA []byte) (int, error) { 468 | size := m.Size() 469 | return m.MarshalToSizedBuffer(dAtA[:size]) 470 | } 471 | 472 | func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { 473 | i := len(dAtA) 474 | _ = i 475 | var l int 476 | _ = l 477 | if m.XXX_unrecognized != nil { 478 | i -= len(m.XXX_unrecognized) 479 | copy(dAtA[i:], m.XXX_unrecognized) 480 | } 481 | if len(m.Msg) > 0 { 482 | i -= len(m.Msg) 483 | copy(dAtA[i:], m.Msg) 484 | i = encodeVarintHelloworld(dAtA, i, uint64(len(m.Msg))) 485 | i-- 486 | dAtA[i] = 0xa 487 | } 488 | return len(dAtA) - i, nil 489 | } 490 | 491 | func (m *StreamingRequest) Marshal() (dAtA []byte, err error) { 492 | size := m.Size() 493 | dAtA = make([]byte, size) 494 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 495 | if err != nil { 496 | return nil, err 497 | } 498 | return dAtA[:n], nil 499 | } 500 | 501 | func (m *StreamingRequest) MarshalTo(dAtA []byte) (int, error) { 502 | size := m.Size() 503 | return m.MarshalToSizedBuffer(dAtA[:size]) 504 | } 505 | 506 | func (m *StreamingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 507 | i := len(dAtA) 508 | _ = i 509 | var l int 510 | _ = l 511 | if m.XXX_unrecognized != nil { 512 | i -= len(m.XXX_unrecognized) 513 | copy(dAtA[i:], m.XXX_unrecognized) 514 | } 515 | if m.Count != 0 { 516 | i = encodeVarintHelloworld(dAtA, i, uint64(m.Count)) 517 | i-- 518 | dAtA[i] = 0x8 519 | } 520 | return len(dAtA) - i, nil 521 | } 522 | 523 | func (m *StreamingResponse) Marshal() (dAtA []byte, err error) { 524 | size := m.Size() 525 | dAtA = make([]byte, size) 526 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 527 | if err != nil { 528 | return nil, err 529 | } 530 | return dAtA[:n], nil 531 | } 532 | 533 | func (m *StreamingResponse) MarshalTo(dAtA []byte) (int, error) { 534 | size := m.Size() 535 | return m.MarshalToSizedBuffer(dAtA[:size]) 536 | } 537 | 538 | func (m *StreamingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 539 | i := len(dAtA) 540 | _ = i 541 | var l int 542 | _ = l 543 | if m.XXX_unrecognized != nil { 544 | i -= len(m.XXX_unrecognized) 545 | copy(dAtA[i:], m.XXX_unrecognized) 546 | } 547 | if m.Count != 0 { 548 | i = encodeVarintHelloworld(dAtA, i, uint64(m.Count)) 549 | i-- 550 | dAtA[i] = 0x8 551 | } 552 | return len(dAtA) - i, nil 553 | } 554 | 555 | func (m *Ping) Marshal() (dAtA []byte, err error) { 556 | size := m.Size() 557 | dAtA = make([]byte, size) 558 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 559 | if err != nil { 560 | return nil, err 561 | } 562 | return dAtA[:n], nil 563 | } 564 | 565 | func (m *Ping) MarshalTo(dAtA []byte) (int, error) { 566 | size := m.Size() 567 | return m.MarshalToSizedBuffer(dAtA[:size]) 568 | } 569 | 570 | func (m *Ping) MarshalToSizedBuffer(dAtA []byte) (int, error) { 571 | i := len(dAtA) 572 | _ = i 573 | var l int 574 | _ = l 575 | if m.XXX_unrecognized != nil { 576 | i -= len(m.XXX_unrecognized) 577 | copy(dAtA[i:], m.XXX_unrecognized) 578 | } 579 | if m.Stroke != 0 { 580 | i = encodeVarintHelloworld(dAtA, i, uint64(m.Stroke)) 581 | i-- 582 | dAtA[i] = 0x8 583 | } 584 | return len(dAtA) - i, nil 585 | } 586 | 587 | func (m *Pong) Marshal() (dAtA []byte, err error) { 588 | size := m.Size() 589 | dAtA = make([]byte, size) 590 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 591 | if err != nil { 592 | return nil, err 593 | } 594 | return dAtA[:n], nil 595 | } 596 | 597 | func (m *Pong) MarshalTo(dAtA []byte) (int, error) { 598 | size := m.Size() 599 | return m.MarshalToSizedBuffer(dAtA[:size]) 600 | } 601 | 602 | func (m *Pong) MarshalToSizedBuffer(dAtA []byte) (int, error) { 603 | i := len(dAtA) 604 | _ = i 605 | var l int 606 | _ = l 607 | if m.XXX_unrecognized != nil { 608 | i -= len(m.XXX_unrecognized) 609 | copy(dAtA[i:], m.XXX_unrecognized) 610 | } 611 | if m.Stroke != 0 { 612 | i = encodeVarintHelloworld(dAtA, i, uint64(m.Stroke)) 613 | i-- 614 | dAtA[i] = 0x8 615 | } 616 | return len(dAtA) - i, nil 617 | } 618 | 619 | func encodeVarintHelloworld(dAtA []byte, offset int, v uint64) int { 620 | offset -= sovHelloworld(v) 621 | base := offset 622 | for v >= 1<<7 { 623 | dAtA[offset] = uint8(v&0x7f | 0x80) 624 | v >>= 7 625 | offset++ 626 | } 627 | dAtA[offset] = uint8(v) 628 | return base 629 | } 630 | func (m *Message) Size() (n int) { 631 | if m == nil { 632 | return 0 633 | } 634 | var l int 635 | _ = l 636 | l = len(m.Say) 637 | if l > 0 { 638 | n += 1 + l + sovHelloworld(uint64(l)) 639 | } 640 | if m.XXX_unrecognized != nil { 641 | n += len(m.XXX_unrecognized) 642 | } 643 | return n 644 | } 645 | 646 | func (m *Request) Size() (n int) { 647 | if m == nil { 648 | return 0 649 | } 650 | var l int 651 | _ = l 652 | l = len(m.Name) 653 | if l > 0 { 654 | n += 1 + l + sovHelloworld(uint64(l)) 655 | } 656 | if m.XXX_unrecognized != nil { 657 | n += len(m.XXX_unrecognized) 658 | } 659 | return n 660 | } 661 | 662 | func (m *Response) Size() (n int) { 663 | if m == nil { 664 | return 0 665 | } 666 | var l int 667 | _ = l 668 | l = len(m.Msg) 669 | if l > 0 { 670 | n += 1 + l + sovHelloworld(uint64(l)) 671 | } 672 | if m.XXX_unrecognized != nil { 673 | n += len(m.XXX_unrecognized) 674 | } 675 | return n 676 | } 677 | 678 | func (m *StreamingRequest) Size() (n int) { 679 | if m == nil { 680 | return 0 681 | } 682 | var l int 683 | _ = l 684 | if m.Count != 0 { 685 | n += 1 + sovHelloworld(uint64(m.Count)) 686 | } 687 | if m.XXX_unrecognized != nil { 688 | n += len(m.XXX_unrecognized) 689 | } 690 | return n 691 | } 692 | 693 | func (m *StreamingResponse) Size() (n int) { 694 | if m == nil { 695 | return 0 696 | } 697 | var l int 698 | _ = l 699 | if m.Count != 0 { 700 | n += 1 + sovHelloworld(uint64(m.Count)) 701 | } 702 | if m.XXX_unrecognized != nil { 703 | n += len(m.XXX_unrecognized) 704 | } 705 | return n 706 | } 707 | 708 | func (m *Ping) Size() (n int) { 709 | if m == nil { 710 | return 0 711 | } 712 | var l int 713 | _ = l 714 | if m.Stroke != 0 { 715 | n += 1 + sovHelloworld(uint64(m.Stroke)) 716 | } 717 | if m.XXX_unrecognized != nil { 718 | n += len(m.XXX_unrecognized) 719 | } 720 | return n 721 | } 722 | 723 | func (m *Pong) Size() (n int) { 724 | if m == nil { 725 | return 0 726 | } 727 | var l int 728 | _ = l 729 | if m.Stroke != 0 { 730 | n += 1 + sovHelloworld(uint64(m.Stroke)) 731 | } 732 | if m.XXX_unrecognized != nil { 733 | n += len(m.XXX_unrecognized) 734 | } 735 | return n 736 | } 737 | 738 | func sovHelloworld(x uint64) (n int) { 739 | return (math_bits.Len64(x|1) + 6) / 7 740 | } 741 | func sozHelloworld(x uint64) (n int) { 742 | return sovHelloworld(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 743 | } 744 | func (m *Message) Unmarshal(dAtA []byte) error { 745 | l := len(dAtA) 746 | iNdEx := 0 747 | for iNdEx < l { 748 | preIndex := iNdEx 749 | var wire uint64 750 | for shift := uint(0); ; shift += 7 { 751 | if shift >= 64 { 752 | return ErrIntOverflowHelloworld 753 | } 754 | if iNdEx >= l { 755 | return io.ErrUnexpectedEOF 756 | } 757 | b := dAtA[iNdEx] 758 | iNdEx++ 759 | wire |= uint64(b&0x7F) << shift 760 | if b < 0x80 { 761 | break 762 | } 763 | } 764 | fieldNum := int32(wire >> 3) 765 | wireType := int(wire & 0x7) 766 | if wireType == 4 { 767 | return fmt.Errorf("proto: Message: wiretype end group for non-group") 768 | } 769 | if fieldNum <= 0 { 770 | return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire) 771 | } 772 | switch fieldNum { 773 | case 1: 774 | if wireType != 2 { 775 | return fmt.Errorf("proto: wrong wireType = %d for field Say", wireType) 776 | } 777 | var stringLen uint64 778 | for shift := uint(0); ; shift += 7 { 779 | if shift >= 64 { 780 | return ErrIntOverflowHelloworld 781 | } 782 | if iNdEx >= l { 783 | return io.ErrUnexpectedEOF 784 | } 785 | b := dAtA[iNdEx] 786 | iNdEx++ 787 | stringLen |= uint64(b&0x7F) << shift 788 | if b < 0x80 { 789 | break 790 | } 791 | } 792 | intStringLen := int(stringLen) 793 | if intStringLen < 0 { 794 | return ErrInvalidLengthHelloworld 795 | } 796 | postIndex := iNdEx + intStringLen 797 | if postIndex < 0 { 798 | return ErrInvalidLengthHelloworld 799 | } 800 | if postIndex > l { 801 | return io.ErrUnexpectedEOF 802 | } 803 | m.Say = string(dAtA[iNdEx:postIndex]) 804 | iNdEx = postIndex 805 | default: 806 | iNdEx = preIndex 807 | skippy, err := skipHelloworld(dAtA[iNdEx:]) 808 | if err != nil { 809 | return err 810 | } 811 | if (skippy < 0) || (iNdEx+skippy) < 0 { 812 | return ErrInvalidLengthHelloworld 813 | } 814 | if (iNdEx + skippy) > l { 815 | return io.ErrUnexpectedEOF 816 | } 817 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 818 | iNdEx += skippy 819 | } 820 | } 821 | 822 | if iNdEx > l { 823 | return io.ErrUnexpectedEOF 824 | } 825 | return nil 826 | } 827 | func (m *Request) Unmarshal(dAtA []byte) error { 828 | l := len(dAtA) 829 | iNdEx := 0 830 | for iNdEx < l { 831 | preIndex := iNdEx 832 | var wire uint64 833 | for shift := uint(0); ; shift += 7 { 834 | if shift >= 64 { 835 | return ErrIntOverflowHelloworld 836 | } 837 | if iNdEx >= l { 838 | return io.ErrUnexpectedEOF 839 | } 840 | b := dAtA[iNdEx] 841 | iNdEx++ 842 | wire |= uint64(b&0x7F) << shift 843 | if b < 0x80 { 844 | break 845 | } 846 | } 847 | fieldNum := int32(wire >> 3) 848 | wireType := int(wire & 0x7) 849 | if wireType == 4 { 850 | return fmt.Errorf("proto: Request: wiretype end group for non-group") 851 | } 852 | if fieldNum <= 0 { 853 | return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) 854 | } 855 | switch fieldNum { 856 | case 1: 857 | if wireType != 2 { 858 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 859 | } 860 | var stringLen uint64 861 | for shift := uint(0); ; shift += 7 { 862 | if shift >= 64 { 863 | return ErrIntOverflowHelloworld 864 | } 865 | if iNdEx >= l { 866 | return io.ErrUnexpectedEOF 867 | } 868 | b := dAtA[iNdEx] 869 | iNdEx++ 870 | stringLen |= uint64(b&0x7F) << shift 871 | if b < 0x80 { 872 | break 873 | } 874 | } 875 | intStringLen := int(stringLen) 876 | if intStringLen < 0 { 877 | return ErrInvalidLengthHelloworld 878 | } 879 | postIndex := iNdEx + intStringLen 880 | if postIndex < 0 { 881 | return ErrInvalidLengthHelloworld 882 | } 883 | if postIndex > l { 884 | return io.ErrUnexpectedEOF 885 | } 886 | m.Name = string(dAtA[iNdEx:postIndex]) 887 | iNdEx = postIndex 888 | default: 889 | iNdEx = preIndex 890 | skippy, err := skipHelloworld(dAtA[iNdEx:]) 891 | if err != nil { 892 | return err 893 | } 894 | if (skippy < 0) || (iNdEx+skippy) < 0 { 895 | return ErrInvalidLengthHelloworld 896 | } 897 | if (iNdEx + skippy) > l { 898 | return io.ErrUnexpectedEOF 899 | } 900 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 901 | iNdEx += skippy 902 | } 903 | } 904 | 905 | if iNdEx > l { 906 | return io.ErrUnexpectedEOF 907 | } 908 | return nil 909 | } 910 | func (m *Response) Unmarshal(dAtA []byte) error { 911 | l := len(dAtA) 912 | iNdEx := 0 913 | for iNdEx < l { 914 | preIndex := iNdEx 915 | var wire uint64 916 | for shift := uint(0); ; shift += 7 { 917 | if shift >= 64 { 918 | return ErrIntOverflowHelloworld 919 | } 920 | if iNdEx >= l { 921 | return io.ErrUnexpectedEOF 922 | } 923 | b := dAtA[iNdEx] 924 | iNdEx++ 925 | wire |= uint64(b&0x7F) << shift 926 | if b < 0x80 { 927 | break 928 | } 929 | } 930 | fieldNum := int32(wire >> 3) 931 | wireType := int(wire & 0x7) 932 | if wireType == 4 { 933 | return fmt.Errorf("proto: Response: wiretype end group for non-group") 934 | } 935 | if fieldNum <= 0 { 936 | return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) 937 | } 938 | switch fieldNum { 939 | case 1: 940 | if wireType != 2 { 941 | return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 942 | } 943 | var stringLen uint64 944 | for shift := uint(0); ; shift += 7 { 945 | if shift >= 64 { 946 | return ErrIntOverflowHelloworld 947 | } 948 | if iNdEx >= l { 949 | return io.ErrUnexpectedEOF 950 | } 951 | b := dAtA[iNdEx] 952 | iNdEx++ 953 | stringLen |= uint64(b&0x7F) << shift 954 | if b < 0x80 { 955 | break 956 | } 957 | } 958 | intStringLen := int(stringLen) 959 | if intStringLen < 0 { 960 | return ErrInvalidLengthHelloworld 961 | } 962 | postIndex := iNdEx + intStringLen 963 | if postIndex < 0 { 964 | return ErrInvalidLengthHelloworld 965 | } 966 | if postIndex > l { 967 | return io.ErrUnexpectedEOF 968 | } 969 | m.Msg = string(dAtA[iNdEx:postIndex]) 970 | iNdEx = postIndex 971 | default: 972 | iNdEx = preIndex 973 | skippy, err := skipHelloworld(dAtA[iNdEx:]) 974 | if err != nil { 975 | return err 976 | } 977 | if (skippy < 0) || (iNdEx+skippy) < 0 { 978 | return ErrInvalidLengthHelloworld 979 | } 980 | if (iNdEx + skippy) > l { 981 | return io.ErrUnexpectedEOF 982 | } 983 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 984 | iNdEx += skippy 985 | } 986 | } 987 | 988 | if iNdEx > l { 989 | return io.ErrUnexpectedEOF 990 | } 991 | return nil 992 | } 993 | func (m *StreamingRequest) Unmarshal(dAtA []byte) error { 994 | l := len(dAtA) 995 | iNdEx := 0 996 | for iNdEx < l { 997 | preIndex := iNdEx 998 | var wire uint64 999 | for shift := uint(0); ; shift += 7 { 1000 | if shift >= 64 { 1001 | return ErrIntOverflowHelloworld 1002 | } 1003 | if iNdEx >= l { 1004 | return io.ErrUnexpectedEOF 1005 | } 1006 | b := dAtA[iNdEx] 1007 | iNdEx++ 1008 | wire |= uint64(b&0x7F) << shift 1009 | if b < 0x80 { 1010 | break 1011 | } 1012 | } 1013 | fieldNum := int32(wire >> 3) 1014 | wireType := int(wire & 0x7) 1015 | if wireType == 4 { 1016 | return fmt.Errorf("proto: StreamingRequest: wiretype end group for non-group") 1017 | } 1018 | if fieldNum <= 0 { 1019 | return fmt.Errorf("proto: StreamingRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1020 | } 1021 | switch fieldNum { 1022 | case 1: 1023 | if wireType != 0 { 1024 | return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) 1025 | } 1026 | m.Count = 0 1027 | for shift := uint(0); ; shift += 7 { 1028 | if shift >= 64 { 1029 | return ErrIntOverflowHelloworld 1030 | } 1031 | if iNdEx >= l { 1032 | return io.ErrUnexpectedEOF 1033 | } 1034 | b := dAtA[iNdEx] 1035 | iNdEx++ 1036 | m.Count |= int64(b&0x7F) << shift 1037 | if b < 0x80 { 1038 | break 1039 | } 1040 | } 1041 | default: 1042 | iNdEx = preIndex 1043 | skippy, err := skipHelloworld(dAtA[iNdEx:]) 1044 | if err != nil { 1045 | return err 1046 | } 1047 | if (skippy < 0) || (iNdEx+skippy) < 0 { 1048 | return ErrInvalidLengthHelloworld 1049 | } 1050 | if (iNdEx + skippy) > l { 1051 | return io.ErrUnexpectedEOF 1052 | } 1053 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1054 | iNdEx += skippy 1055 | } 1056 | } 1057 | 1058 | if iNdEx > l { 1059 | return io.ErrUnexpectedEOF 1060 | } 1061 | return nil 1062 | } 1063 | func (m *StreamingResponse) Unmarshal(dAtA []byte) error { 1064 | l := len(dAtA) 1065 | iNdEx := 0 1066 | for iNdEx < l { 1067 | preIndex := iNdEx 1068 | var wire uint64 1069 | for shift := uint(0); ; shift += 7 { 1070 | if shift >= 64 { 1071 | return ErrIntOverflowHelloworld 1072 | } 1073 | if iNdEx >= l { 1074 | return io.ErrUnexpectedEOF 1075 | } 1076 | b := dAtA[iNdEx] 1077 | iNdEx++ 1078 | wire |= uint64(b&0x7F) << shift 1079 | if b < 0x80 { 1080 | break 1081 | } 1082 | } 1083 | fieldNum := int32(wire >> 3) 1084 | wireType := int(wire & 0x7) 1085 | if wireType == 4 { 1086 | return fmt.Errorf("proto: StreamingResponse: wiretype end group for non-group") 1087 | } 1088 | if fieldNum <= 0 { 1089 | return fmt.Errorf("proto: StreamingResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1090 | } 1091 | switch fieldNum { 1092 | case 1: 1093 | if wireType != 0 { 1094 | return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) 1095 | } 1096 | m.Count = 0 1097 | for shift := uint(0); ; shift += 7 { 1098 | if shift >= 64 { 1099 | return ErrIntOverflowHelloworld 1100 | } 1101 | if iNdEx >= l { 1102 | return io.ErrUnexpectedEOF 1103 | } 1104 | b := dAtA[iNdEx] 1105 | iNdEx++ 1106 | m.Count |= int64(b&0x7F) << shift 1107 | if b < 0x80 { 1108 | break 1109 | } 1110 | } 1111 | default: 1112 | iNdEx = preIndex 1113 | skippy, err := skipHelloworld(dAtA[iNdEx:]) 1114 | if err != nil { 1115 | return err 1116 | } 1117 | if (skippy < 0) || (iNdEx+skippy) < 0 { 1118 | return ErrInvalidLengthHelloworld 1119 | } 1120 | if (iNdEx + skippy) > l { 1121 | return io.ErrUnexpectedEOF 1122 | } 1123 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1124 | iNdEx += skippy 1125 | } 1126 | } 1127 | 1128 | if iNdEx > l { 1129 | return io.ErrUnexpectedEOF 1130 | } 1131 | return nil 1132 | } 1133 | func (m *Ping) Unmarshal(dAtA []byte) error { 1134 | l := len(dAtA) 1135 | iNdEx := 0 1136 | for iNdEx < l { 1137 | preIndex := iNdEx 1138 | var wire uint64 1139 | for shift := uint(0); ; shift += 7 { 1140 | if shift >= 64 { 1141 | return ErrIntOverflowHelloworld 1142 | } 1143 | if iNdEx >= l { 1144 | return io.ErrUnexpectedEOF 1145 | } 1146 | b := dAtA[iNdEx] 1147 | iNdEx++ 1148 | wire |= uint64(b&0x7F) << shift 1149 | if b < 0x80 { 1150 | break 1151 | } 1152 | } 1153 | fieldNum := int32(wire >> 3) 1154 | wireType := int(wire & 0x7) 1155 | if wireType == 4 { 1156 | return fmt.Errorf("proto: Ping: wiretype end group for non-group") 1157 | } 1158 | if fieldNum <= 0 { 1159 | return fmt.Errorf("proto: Ping: illegal tag %d (wire type %d)", fieldNum, wire) 1160 | } 1161 | switch fieldNum { 1162 | case 1: 1163 | if wireType != 0 { 1164 | return fmt.Errorf("proto: wrong wireType = %d for field Stroke", wireType) 1165 | } 1166 | m.Stroke = 0 1167 | for shift := uint(0); ; shift += 7 { 1168 | if shift >= 64 { 1169 | return ErrIntOverflowHelloworld 1170 | } 1171 | if iNdEx >= l { 1172 | return io.ErrUnexpectedEOF 1173 | } 1174 | b := dAtA[iNdEx] 1175 | iNdEx++ 1176 | m.Stroke |= int64(b&0x7F) << shift 1177 | if b < 0x80 { 1178 | break 1179 | } 1180 | } 1181 | default: 1182 | iNdEx = preIndex 1183 | skippy, err := skipHelloworld(dAtA[iNdEx:]) 1184 | if err != nil { 1185 | return err 1186 | } 1187 | if (skippy < 0) || (iNdEx+skippy) < 0 { 1188 | return ErrInvalidLengthHelloworld 1189 | } 1190 | if (iNdEx + skippy) > l { 1191 | return io.ErrUnexpectedEOF 1192 | } 1193 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1194 | iNdEx += skippy 1195 | } 1196 | } 1197 | 1198 | if iNdEx > l { 1199 | return io.ErrUnexpectedEOF 1200 | } 1201 | return nil 1202 | } 1203 | func (m *Pong) Unmarshal(dAtA []byte) error { 1204 | l := len(dAtA) 1205 | iNdEx := 0 1206 | for iNdEx < l { 1207 | preIndex := iNdEx 1208 | var wire uint64 1209 | for shift := uint(0); ; shift += 7 { 1210 | if shift >= 64 { 1211 | return ErrIntOverflowHelloworld 1212 | } 1213 | if iNdEx >= l { 1214 | return io.ErrUnexpectedEOF 1215 | } 1216 | b := dAtA[iNdEx] 1217 | iNdEx++ 1218 | wire |= uint64(b&0x7F) << shift 1219 | if b < 0x80 { 1220 | break 1221 | } 1222 | } 1223 | fieldNum := int32(wire >> 3) 1224 | wireType := int(wire & 0x7) 1225 | if wireType == 4 { 1226 | return fmt.Errorf("proto: Pong: wiretype end group for non-group") 1227 | } 1228 | if fieldNum <= 0 { 1229 | return fmt.Errorf("proto: Pong: illegal tag %d (wire type %d)", fieldNum, wire) 1230 | } 1231 | switch fieldNum { 1232 | case 1: 1233 | if wireType != 0 { 1234 | return fmt.Errorf("proto: wrong wireType = %d for field Stroke", wireType) 1235 | } 1236 | m.Stroke = 0 1237 | for shift := uint(0); ; shift += 7 { 1238 | if shift >= 64 { 1239 | return ErrIntOverflowHelloworld 1240 | } 1241 | if iNdEx >= l { 1242 | return io.ErrUnexpectedEOF 1243 | } 1244 | b := dAtA[iNdEx] 1245 | iNdEx++ 1246 | m.Stroke |= int64(b&0x7F) << shift 1247 | if b < 0x80 { 1248 | break 1249 | } 1250 | } 1251 | default: 1252 | iNdEx = preIndex 1253 | skippy, err := skipHelloworld(dAtA[iNdEx:]) 1254 | if err != nil { 1255 | return err 1256 | } 1257 | if (skippy < 0) || (iNdEx+skippy) < 0 { 1258 | return ErrInvalidLengthHelloworld 1259 | } 1260 | if (iNdEx + skippy) > l { 1261 | return io.ErrUnexpectedEOF 1262 | } 1263 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1264 | iNdEx += skippy 1265 | } 1266 | } 1267 | 1268 | if iNdEx > l { 1269 | return io.ErrUnexpectedEOF 1270 | } 1271 | return nil 1272 | } 1273 | func skipHelloworld(dAtA []byte) (n int, err error) { 1274 | l := len(dAtA) 1275 | iNdEx := 0 1276 | depth := 0 1277 | for iNdEx < l { 1278 | var wire uint64 1279 | for shift := uint(0); ; shift += 7 { 1280 | if shift >= 64 { 1281 | return 0, ErrIntOverflowHelloworld 1282 | } 1283 | if iNdEx >= l { 1284 | return 0, io.ErrUnexpectedEOF 1285 | } 1286 | b := dAtA[iNdEx] 1287 | iNdEx++ 1288 | wire |= (uint64(b) & 0x7F) << shift 1289 | if b < 0x80 { 1290 | break 1291 | } 1292 | } 1293 | wireType := int(wire & 0x7) 1294 | switch wireType { 1295 | case 0: 1296 | for shift := uint(0); ; shift += 7 { 1297 | if shift >= 64 { 1298 | return 0, ErrIntOverflowHelloworld 1299 | } 1300 | if iNdEx >= l { 1301 | return 0, io.ErrUnexpectedEOF 1302 | } 1303 | iNdEx++ 1304 | if dAtA[iNdEx-1] < 0x80 { 1305 | break 1306 | } 1307 | } 1308 | case 1: 1309 | iNdEx += 8 1310 | case 2: 1311 | var length int 1312 | for shift := uint(0); ; shift += 7 { 1313 | if shift >= 64 { 1314 | return 0, ErrIntOverflowHelloworld 1315 | } 1316 | if iNdEx >= l { 1317 | return 0, io.ErrUnexpectedEOF 1318 | } 1319 | b := dAtA[iNdEx] 1320 | iNdEx++ 1321 | length |= (int(b) & 0x7F) << shift 1322 | if b < 0x80 { 1323 | break 1324 | } 1325 | } 1326 | if length < 0 { 1327 | return 0, ErrInvalidLengthHelloworld 1328 | } 1329 | iNdEx += length 1330 | case 3: 1331 | depth++ 1332 | case 4: 1333 | if depth == 0 { 1334 | return 0, ErrUnexpectedEndOfGroupHelloworld 1335 | } 1336 | depth-- 1337 | case 5: 1338 | iNdEx += 4 1339 | default: 1340 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1341 | } 1342 | if iNdEx < 0 { 1343 | return 0, ErrInvalidLengthHelloworld 1344 | } 1345 | if depth == 0 { 1346 | return iNdEx, nil 1347 | } 1348 | } 1349 | return 0, io.ErrUnexpectedEOF 1350 | } 1351 | 1352 | var ( 1353 | ErrInvalidLengthHelloworld = fmt.Errorf("proto: negative length found during unmarshaling") 1354 | ErrIntOverflowHelloworld = fmt.Errorf("proto: integer overflow") 1355 | ErrUnexpectedEndOfGroupHelloworld = fmt.Errorf("proto: unexpected end of group") 1356 | ) 1357 | -------------------------------------------------------------------------------- /helloworld/proto/helloworld.pb.micro.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-micro. DO NOT EDIT. 2 | // source: proto/helloworld.proto 3 | 4 | package helloworld 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | import ( 13 | context "context" 14 | api "github.com/asim/go-micro/v3/api" 15 | client "github.com/asim/go-micro/v3/client" 16 | server "github.com/asim/go-micro/v3/server" 17 | ) 18 | 19 | // Reference imports to suppress errors if they are not otherwise used. 20 | var _ = proto.Marshal 21 | var _ = fmt.Errorf 22 | var _ = math.Inf 23 | 24 | // This is a compile-time assertion to ensure that this generated file 25 | // is compatible with the proto package it is being compiled against. 26 | // A compilation error at this line likely means your copy of the 27 | // proto package needs to be updated. 28 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 29 | 30 | // Reference imports to suppress errors if they are not otherwise used. 31 | var _ api.Endpoint 32 | var _ context.Context 33 | var _ client.Option 34 | var _ server.Option 35 | 36 | // Api Endpoints for Helloworld service 37 | 38 | func NewHelloworldEndpoints() []*api.Endpoint { 39 | return []*api.Endpoint{} 40 | } 41 | 42 | // Client API for Helloworld service 43 | 44 | type HelloworldService interface { 45 | Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) 46 | Stream(ctx context.Context, in *StreamingRequest, opts ...client.CallOption) (Helloworld_StreamService, error) 47 | PingPong(ctx context.Context, opts ...client.CallOption) (Helloworld_PingPongService, error) 48 | } 49 | 50 | type helloworldService struct { 51 | c client.Client 52 | name string 53 | } 54 | 55 | func NewHelloworldService(name string, c client.Client) HelloworldService { 56 | return &helloworldService{ 57 | c: c, 58 | name: name, 59 | } 60 | } 61 | 62 | func (c *helloworldService) Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) { 63 | req := c.c.NewRequest(c.name, "Helloworld.Call", in) 64 | out := new(Response) 65 | err := c.c.Call(ctx, req, out, opts...) 66 | if err != nil { 67 | return nil, err 68 | } 69 | return out, nil 70 | } 71 | 72 | func (c *helloworldService) Stream(ctx context.Context, in *StreamingRequest, opts ...client.CallOption) (Helloworld_StreamService, error) { 73 | req := c.c.NewRequest(c.name, "Helloworld.Stream", &StreamingRequest{}) 74 | stream, err := c.c.Stream(ctx, req, opts...) 75 | if err != nil { 76 | return nil, err 77 | } 78 | if err := stream.Send(in); err != nil { 79 | return nil, err 80 | } 81 | return &helloworldServiceStream{stream}, nil 82 | } 83 | 84 | type Helloworld_StreamService interface { 85 | Context() context.Context 86 | SendMsg(interface{}) error 87 | RecvMsg(interface{}) error 88 | Close() error 89 | Recv() (*StreamingResponse, error) 90 | } 91 | 92 | type helloworldServiceStream struct { 93 | stream client.Stream 94 | } 95 | 96 | func (x *helloworldServiceStream) Close() error { 97 | return x.stream.Close() 98 | } 99 | 100 | func (x *helloworldServiceStream) Context() context.Context { 101 | return x.stream.Context() 102 | } 103 | 104 | func (x *helloworldServiceStream) SendMsg(m interface{}) error { 105 | return x.stream.Send(m) 106 | } 107 | 108 | func (x *helloworldServiceStream) RecvMsg(m interface{}) error { 109 | return x.stream.Recv(m) 110 | } 111 | 112 | func (x *helloworldServiceStream) Recv() (*StreamingResponse, error) { 113 | m := new(StreamingResponse) 114 | err := x.stream.Recv(m) 115 | if err != nil { 116 | return nil, err 117 | } 118 | return m, nil 119 | } 120 | 121 | func (c *helloworldService) PingPong(ctx context.Context, opts ...client.CallOption) (Helloworld_PingPongService, error) { 122 | req := c.c.NewRequest(c.name, "Helloworld.PingPong", &Ping{}) 123 | stream, err := c.c.Stream(ctx, req, opts...) 124 | if err != nil { 125 | return nil, err 126 | } 127 | return &helloworldServicePingPong{stream}, nil 128 | } 129 | 130 | type Helloworld_PingPongService interface { 131 | Context() context.Context 132 | SendMsg(interface{}) error 133 | RecvMsg(interface{}) error 134 | Close() error 135 | Send(*Ping) error 136 | Recv() (*Pong, error) 137 | } 138 | 139 | type helloworldServicePingPong struct { 140 | stream client.Stream 141 | } 142 | 143 | func (x *helloworldServicePingPong) Close() error { 144 | return x.stream.Close() 145 | } 146 | 147 | func (x *helloworldServicePingPong) Context() context.Context { 148 | return x.stream.Context() 149 | } 150 | 151 | func (x *helloworldServicePingPong) SendMsg(m interface{}) error { 152 | return x.stream.Send(m) 153 | } 154 | 155 | func (x *helloworldServicePingPong) RecvMsg(m interface{}) error { 156 | return x.stream.Recv(m) 157 | } 158 | 159 | func (x *helloworldServicePingPong) Send(m *Ping) error { 160 | return x.stream.Send(m) 161 | } 162 | 163 | func (x *helloworldServicePingPong) Recv() (*Pong, error) { 164 | m := new(Pong) 165 | err := x.stream.Recv(m) 166 | if err != nil { 167 | return nil, err 168 | } 169 | return m, nil 170 | } 171 | 172 | // Server API for Helloworld service 173 | 174 | type HelloworldHandler interface { 175 | Call(context.Context, *Request, *Response) error 176 | Stream(context.Context, *StreamingRequest, Helloworld_StreamStream) error 177 | PingPong(context.Context, Helloworld_PingPongStream) error 178 | } 179 | 180 | func RegisterHelloworldHandler(s server.Server, hdlr HelloworldHandler, opts ...server.HandlerOption) error { 181 | type helloworld interface { 182 | Call(ctx context.Context, in *Request, out *Response) error 183 | Stream(ctx context.Context, stream server.Stream) error 184 | PingPong(ctx context.Context, stream server.Stream) error 185 | } 186 | type Helloworld struct { 187 | helloworld 188 | } 189 | h := &helloworldHandler{hdlr} 190 | return s.Handle(s.NewHandler(&Helloworld{h}, opts...)) 191 | } 192 | 193 | type helloworldHandler struct { 194 | HelloworldHandler 195 | } 196 | 197 | func (h *helloworldHandler) Call(ctx context.Context, in *Request, out *Response) error { 198 | return h.HelloworldHandler.Call(ctx, in, out) 199 | } 200 | 201 | func (h *helloworldHandler) Stream(ctx context.Context, stream server.Stream) error { 202 | m := new(StreamingRequest) 203 | if err := stream.Recv(m); err != nil { 204 | return err 205 | } 206 | return h.HelloworldHandler.Stream(ctx, m, &helloworldStreamStream{stream}) 207 | } 208 | 209 | type Helloworld_StreamStream interface { 210 | Context() context.Context 211 | SendMsg(interface{}) error 212 | RecvMsg(interface{}) error 213 | Close() error 214 | Send(*StreamingResponse) error 215 | } 216 | 217 | type helloworldStreamStream struct { 218 | stream server.Stream 219 | } 220 | 221 | func (x *helloworldStreamStream) Close() error { 222 | return x.stream.Close() 223 | } 224 | 225 | func (x *helloworldStreamStream) Context() context.Context { 226 | return x.stream.Context() 227 | } 228 | 229 | func (x *helloworldStreamStream) SendMsg(m interface{}) error { 230 | return x.stream.Send(m) 231 | } 232 | 233 | func (x *helloworldStreamStream) RecvMsg(m interface{}) error { 234 | return x.stream.Recv(m) 235 | } 236 | 237 | func (x *helloworldStreamStream) Send(m *StreamingResponse) error { 238 | return x.stream.Send(m) 239 | } 240 | 241 | func (h *helloworldHandler) PingPong(ctx context.Context, stream server.Stream) error { 242 | return h.HelloworldHandler.PingPong(ctx, &helloworldPingPongStream{stream}) 243 | } 244 | 245 | type Helloworld_PingPongStream interface { 246 | Context() context.Context 247 | SendMsg(interface{}) error 248 | RecvMsg(interface{}) error 249 | Close() error 250 | Send(*Pong) error 251 | Recv() (*Ping, error) 252 | } 253 | 254 | type helloworldPingPongStream struct { 255 | stream server.Stream 256 | } 257 | 258 | func (x *helloworldPingPongStream) Close() error { 259 | return x.stream.Close() 260 | } 261 | 262 | func (x *helloworldPingPongStream) Context() context.Context { 263 | return x.stream.Context() 264 | } 265 | 266 | func (x *helloworldPingPongStream) SendMsg(m interface{}) error { 267 | return x.stream.Send(m) 268 | } 269 | 270 | func (x *helloworldPingPongStream) RecvMsg(m interface{}) error { 271 | return x.stream.Recv(m) 272 | } 273 | 274 | func (x *helloworldPingPongStream) Send(m *Pong) error { 275 | return x.stream.Send(m) 276 | } 277 | 278 | func (x *helloworldPingPongStream) Recv() (*Ping, error) { 279 | m := new(Ping) 280 | if err := x.stream.Recv(m); err != nil { 281 | return nil, err 282 | } 283 | return m, nil 284 | } 285 | -------------------------------------------------------------------------------- /helloworld/proto/helloworld.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package helloworld; 4 | 5 | option go_package = "proto;helloworld"; 6 | 7 | service Helloworld { 8 | rpc Call(Request) returns (Response) {} 9 | rpc Stream(StreamingRequest) returns (stream StreamingResponse) {} 10 | rpc PingPong(stream Ping) returns (stream Pong) {} 11 | } 12 | 13 | message Message { 14 | string say = 1; 15 | } 16 | 17 | message Request { 18 | string name = 1; 19 | } 20 | 21 | message Response { 22 | string msg = 1; 23 | } 24 | 25 | message StreamingRequest { 26 | int64 count = 1; 27 | } 28 | 29 | message StreamingResponse { 30 | int64 count = 1; 31 | } 32 | 33 | message Ping { 34 | int64 stroke = 1; 35 | } 36 | 37 | message Pong { 38 | int64 stroke = 1; 39 | } 40 | -------------------------------------------------------------------------------- /http/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine 2 | ADD http /http 3 | ENTRYPOINT [ "/http" ] 4 | -------------------------------------------------------------------------------- /http/generate.go: -------------------------------------------------------------------------------- 1 | package main 2 | //go:generate make proto 3 | -------------------------------------------------------------------------------- /http/handler/handler.go: -------------------------------------------------------------------------------- 1 | package handler 2 | 3 | import ( 4 | "context" 5 | "github.com/asim/go-micro/v3" 6 | "github.com/gin-gonic/gin" 7 | helloworld "go-micro-examples/helloworld/proto" 8 | ) 9 | 10 | //demo 11 | type demo struct{} 12 | 13 | func NewDemo() *demo { 14 | return &demo{} 15 | } 16 | 17 | func (a *demo) InitRouter(router *gin.Engine) { 18 | router.POST("/demo", a.demo) 19 | } 20 | 21 | func (a *demo) demo(c *gin.Context) { 22 | // create a service 23 | service := micro.NewService() 24 | service.Init() 25 | 26 | client := helloworld.NewHelloworldService("go.micro.srv.HelloWorld", service.Client()) 27 | 28 | rsp, err := client.Call(context.Background(), &helloworld.Request{ 29 | Name: "world!", 30 | }) 31 | if err != nil { 32 | c.JSON(200, gin.H{"code": 500, "msg": err.Error()}) 33 | return 34 | } 35 | 36 | c.JSON(200, gin.H{"code": 200, "msg": rsp.Msg}) 37 | } 38 | -------------------------------------------------------------------------------- /http/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | httpServer "github.com/asim/go-micro/plugins/server/http/v3" 5 | "github.com/asim/go-micro/v3" 6 | "github.com/asim/go-micro/v3/logger" 7 | "github.com/asim/go-micro/v3/registry" 8 | "github.com/asim/go-micro/v3/server" 9 | "github.com/gin-gonic/gin" 10 | "go-micro-examples/http/handler" 11 | ) 12 | 13 | const ( 14 | ServerName = "go.micro.web.DemoHTTP" // server name 15 | ) 16 | 17 | func main() { 18 | // Create service 19 | srv := httpServer.NewServer( 20 | server.Name(ServerName), 21 | server.Address(":8080"), 22 | ) 23 | 24 | gin.SetMode(gin.ReleaseMode) 25 | router := gin.New() 26 | router.Use(gin.Recovery()) 27 | 28 | // register router 29 | demo := handler.NewDemo() 30 | demo.InitRouter(router) 31 | 32 | hd := srv.NewHandler(router) 33 | if err := srv.Handle(hd); err != nil { 34 | logger.Fatal(err) 35 | } 36 | 37 | // Create service 38 | service := micro.NewService( 39 | micro.Server(srv), 40 | micro.Registry(registry.NewRegistry()), 41 | ) 42 | service.Init() 43 | 44 | // Run service 45 | if err := service.Run(); err != nil { 46 | logger.Fatal(err) 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /pubsub/cli/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | "github.com/asim/go-micro/v3" 7 | "github.com/asim/go-micro/v3/util/log" 8 | "github.com/pborman/uuid" 9 | proto "go-micro-examples/pubsub/proto" 10 | "time" 11 | ) 12 | 13 | // send events using the publisher 14 | func sendEv(topic string, p micro.Publisher) { 15 | t := time.NewTimer(time.Second) 16 | 17 | for _ = range t.C { 18 | // crate new event 19 | ev := &proto.Event{ 20 | Id: uuid.NewUUID().String(), 21 | Timestamp: time.Now().Unix(), 22 | Message: fmt.Sprintf("Messaging you all day on %s", topic), 23 | } 24 | 25 | log.Logf("publishing %+v\n", ev) 26 | 27 | // publish an event 28 | if err := p.Publish(context.Background(), ev); err != nil { 29 | log.Logf("error publishing %v", err) 30 | } 31 | } 32 | } 33 | 34 | func main() { 35 | // create a service 36 | service := micro.NewService( 37 | micro.Name("go.micro.cli.pubsub"), 38 | ) 39 | 40 | // parse command line 41 | service.Init() 42 | 43 | // create publisher 44 | pub1 := micro.NewEvent("example.topic.pubsub.1", service.Client()) 45 | pub2 := micro.NewEvent("example.topic.pubsub.2", service.Client()) 46 | 47 | // pub to topic 1 48 | go sendEv("example.topic.pubsub.1", pub1) 49 | // pub to topic 2 50 | go sendEv("example.topic.pubsub.2", pub2) 51 | 52 | // block forever 53 | select {} 54 | } 55 | -------------------------------------------------------------------------------- /pubsub/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "context" 5 | "github.com/asim/go-micro/v3" 6 | "github.com/asim/go-micro/v3/metadata" 7 | "github.com/asim/go-micro/v3/server" 8 | "github.com/asim/go-micro/v3/util/log" 9 | proto "go-micro-examples/pubsub/proto" 10 | ) 11 | 12 | // Sub All methods of Sub will be executed when 13 | // a message is received 14 | type Sub struct{} 15 | 16 | // Process Method can be of any name 17 | func (s *Sub) Process(ctx context.Context, event *proto.Event) error { 18 | md, _ := metadata.FromContext(ctx) 19 | log.Logf("[pubsub.1] Received event %+v with metadata %+v\n", event, md) 20 | // do something with event 21 | return nil 22 | } 23 | 24 | // Alternatively a function can be used 25 | func subEv(ctx context.Context, event *proto.Event) error { 26 | md, _ := metadata.FromContext(ctx) 27 | log.Logf("[pubsub.2] Received event %+v with metadata %+v\n", event, md) 28 | // do something with event 29 | return nil 30 | } 31 | 32 | func main() { 33 | // create a service 34 | service := micro.NewService( 35 | micro.Name("go.micro.srv.pubsub"), 36 | ) 37 | // parse command line 38 | service.Init() 39 | 40 | // register subscriber 41 | if err := micro.RegisterSubscriber("example.topic,pubsub.1", service.Server(), new(Sub)); err != nil { 42 | log.Fatal(err) 43 | } 44 | 45 | // register subscriber with queue, each message is delivered to a unique subscriber 46 | if err := micro.RegisterSubscriber("example.topic.pubsub.2", service.Server(), subEv, server.SubscriberQueue("queue.pubsub")); err != nil { 47 | log.Fatal(err) 48 | } 49 | 50 | if err := service.Run(); err != nil { 51 | log.Fatal(err) 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /pubsub/proto/pubsub.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 | // source: proto/pubsub.proto 3 | 4 | package helloworld 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | io "io" 10 | math "math" 11 | math_bits "math/bits" 12 | ) 13 | 14 | // Reference imports to suppress errors if they are not otherwise used. 15 | var _ = proto.Marshal 16 | var _ = fmt.Errorf 17 | var _ = math.Inf 18 | 19 | // This is a compile-time assertion to ensure that this generated file 20 | // is compatible with the proto package it is being compiled against. 21 | // A compilation error at this line likely means your copy of the 22 | // proto package needs to be updated. 23 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 | 25 | // Example message 26 | type Event struct { 27 | // unique id 28 | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 29 | // unix timestamp 30 | Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 31 | // message 32 | Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` 33 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 34 | XXX_unrecognized []byte `json:"-"` 35 | XXX_sizecache int32 `json:"-"` 36 | } 37 | 38 | func (m *Event) Reset() { *m = Event{} } 39 | func (m *Event) String() string { return proto.CompactTextString(m) } 40 | func (*Event) ProtoMessage() {} 41 | func (*Event) Descriptor() ([]byte, []int) { 42 | return fileDescriptor_b2d28d9b038160f1, []int{0} 43 | } 44 | func (m *Event) XXX_Unmarshal(b []byte) error { 45 | return m.Unmarshal(b) 46 | } 47 | func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 48 | if deterministic { 49 | return xxx_messageInfo_Event.Marshal(b, m, deterministic) 50 | } else { 51 | b = b[:cap(b)] 52 | n, err := m.MarshalToSizedBuffer(b) 53 | if err != nil { 54 | return nil, err 55 | } 56 | return b[:n], nil 57 | } 58 | } 59 | func (m *Event) XXX_Merge(src proto.Message) { 60 | xxx_messageInfo_Event.Merge(m, src) 61 | } 62 | func (m *Event) XXX_Size() int { 63 | return m.Size() 64 | } 65 | func (m *Event) XXX_DiscardUnknown() { 66 | xxx_messageInfo_Event.DiscardUnknown(m) 67 | } 68 | 69 | var xxx_messageInfo_Event proto.InternalMessageInfo 70 | 71 | func (m *Event) GetId() string { 72 | if m != nil { 73 | return m.Id 74 | } 75 | return "" 76 | } 77 | 78 | func (m *Event) GetTimestamp() int64 { 79 | if m != nil { 80 | return m.Timestamp 81 | } 82 | return 0 83 | } 84 | 85 | func (m *Event) GetMessage() string { 86 | if m != nil { 87 | return m.Message 88 | } 89 | return "" 90 | } 91 | 92 | func init() { 93 | proto.RegisterType((*Event)(nil), "pubsub.Event") 94 | } 95 | 96 | func init() { proto.RegisterFile("proto/pubsub.proto", fileDescriptor_b2d28d9b038160f1) } 97 | 98 | var fileDescriptor_b2d28d9b038160f1 = []byte{ 99 | // 147 bytes of a gzipped FileDescriptorProto 100 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2a, 0x28, 0xca, 0x2f, 101 | 0xc9, 0xd7, 0x2f, 0x28, 0x4d, 0x2a, 0x2e, 0x4d, 0xd2, 0x03, 0x73, 0x84, 0xd8, 0x20, 0x3c, 0x25, 102 | 0x7f, 0x2e, 0x56, 0xd7, 0xb2, 0xd4, 0xbc, 0x12, 0x21, 0x3e, 0x2e, 0xa6, 0xcc, 0x14, 0x09, 0x46, 103 | 0x05, 0x46, 0x0d, 0xce, 0x20, 0xa6, 0xcc, 0x14, 0x21, 0x19, 0x2e, 0xce, 0x92, 0xcc, 0xdc, 0xd4, 104 | 0xe2, 0x92, 0xc4, 0xdc, 0x02, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xe6, 0x20, 0x84, 0x80, 0x90, 0x04, 105 | 0x17, 0x7b, 0x6e, 0x6a, 0x71, 0x71, 0x62, 0x7a, 0xaa, 0x04, 0x33, 0x58, 0x0b, 0x8c, 0xeb, 0xa4, 106 | 0x74, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0xce, 0x78, 0x2c, 107 | 0xc7, 0x10, 0x25, 0x00, 0xb6, 0xd1, 0x3a, 0x23, 0x35, 0x27, 0x27, 0xbf, 0x3c, 0xbf, 0x28, 0x27, 108 | 0x25, 0x89, 0x0d, 0x2c, 0x62, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xd5, 0xe8, 0xb7, 0x99, 109 | 0x00, 0x00, 0x00, 110 | } 111 | 112 | func (m *Event) Marshal() (dAtA []byte, err error) { 113 | size := m.Size() 114 | dAtA = make([]byte, size) 115 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 116 | if err != nil { 117 | return nil, err 118 | } 119 | return dAtA[:n], nil 120 | } 121 | 122 | func (m *Event) MarshalTo(dAtA []byte) (int, error) { 123 | size := m.Size() 124 | return m.MarshalToSizedBuffer(dAtA[:size]) 125 | } 126 | 127 | func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { 128 | i := len(dAtA) 129 | _ = i 130 | var l int 131 | _ = l 132 | if m.XXX_unrecognized != nil { 133 | i -= len(m.XXX_unrecognized) 134 | copy(dAtA[i:], m.XXX_unrecognized) 135 | } 136 | if len(m.Message) > 0 { 137 | i -= len(m.Message) 138 | copy(dAtA[i:], m.Message) 139 | i = encodeVarintPubsub(dAtA, i, uint64(len(m.Message))) 140 | i-- 141 | dAtA[i] = 0x1a 142 | } 143 | if m.Timestamp != 0 { 144 | i = encodeVarintPubsub(dAtA, i, uint64(m.Timestamp)) 145 | i-- 146 | dAtA[i] = 0x10 147 | } 148 | if len(m.Id) > 0 { 149 | i -= len(m.Id) 150 | copy(dAtA[i:], m.Id) 151 | i = encodeVarintPubsub(dAtA, i, uint64(len(m.Id))) 152 | i-- 153 | dAtA[i] = 0xa 154 | } 155 | return len(dAtA) - i, nil 156 | } 157 | 158 | func encodeVarintPubsub(dAtA []byte, offset int, v uint64) int { 159 | offset -= sovPubsub(v) 160 | base := offset 161 | for v >= 1<<7 { 162 | dAtA[offset] = uint8(v&0x7f | 0x80) 163 | v >>= 7 164 | offset++ 165 | } 166 | dAtA[offset] = uint8(v) 167 | return base 168 | } 169 | func (m *Event) Size() (n int) { 170 | if m == nil { 171 | return 0 172 | } 173 | var l int 174 | _ = l 175 | l = len(m.Id) 176 | if l > 0 { 177 | n += 1 + l + sovPubsub(uint64(l)) 178 | } 179 | if m.Timestamp != 0 { 180 | n += 1 + sovPubsub(uint64(m.Timestamp)) 181 | } 182 | l = len(m.Message) 183 | if l > 0 { 184 | n += 1 + l + sovPubsub(uint64(l)) 185 | } 186 | if m.XXX_unrecognized != nil { 187 | n += len(m.XXX_unrecognized) 188 | } 189 | return n 190 | } 191 | 192 | func sovPubsub(x uint64) (n int) { 193 | return (math_bits.Len64(x|1) + 6) / 7 194 | } 195 | func sozPubsub(x uint64) (n int) { 196 | return sovPubsub(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 197 | } 198 | func (m *Event) Unmarshal(dAtA []byte) error { 199 | l := len(dAtA) 200 | iNdEx := 0 201 | for iNdEx < l { 202 | preIndex := iNdEx 203 | var wire uint64 204 | for shift := uint(0); ; shift += 7 { 205 | if shift >= 64 { 206 | return ErrIntOverflowPubsub 207 | } 208 | if iNdEx >= l { 209 | return io.ErrUnexpectedEOF 210 | } 211 | b := dAtA[iNdEx] 212 | iNdEx++ 213 | wire |= uint64(b&0x7F) << shift 214 | if b < 0x80 { 215 | break 216 | } 217 | } 218 | fieldNum := int32(wire >> 3) 219 | wireType := int(wire & 0x7) 220 | if wireType == 4 { 221 | return fmt.Errorf("proto: Event: wiretype end group for non-group") 222 | } 223 | if fieldNum <= 0 { 224 | return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) 225 | } 226 | switch fieldNum { 227 | case 1: 228 | if wireType != 2 { 229 | return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) 230 | } 231 | var stringLen uint64 232 | for shift := uint(0); ; shift += 7 { 233 | if shift >= 64 { 234 | return ErrIntOverflowPubsub 235 | } 236 | if iNdEx >= l { 237 | return io.ErrUnexpectedEOF 238 | } 239 | b := dAtA[iNdEx] 240 | iNdEx++ 241 | stringLen |= uint64(b&0x7F) << shift 242 | if b < 0x80 { 243 | break 244 | } 245 | } 246 | intStringLen := int(stringLen) 247 | if intStringLen < 0 { 248 | return ErrInvalidLengthPubsub 249 | } 250 | postIndex := iNdEx + intStringLen 251 | if postIndex < 0 { 252 | return ErrInvalidLengthPubsub 253 | } 254 | if postIndex > l { 255 | return io.ErrUnexpectedEOF 256 | } 257 | m.Id = string(dAtA[iNdEx:postIndex]) 258 | iNdEx = postIndex 259 | case 2: 260 | if wireType != 0 { 261 | return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) 262 | } 263 | m.Timestamp = 0 264 | for shift := uint(0); ; shift += 7 { 265 | if shift >= 64 { 266 | return ErrIntOverflowPubsub 267 | } 268 | if iNdEx >= l { 269 | return io.ErrUnexpectedEOF 270 | } 271 | b := dAtA[iNdEx] 272 | iNdEx++ 273 | m.Timestamp |= int64(b&0x7F) << shift 274 | if b < 0x80 { 275 | break 276 | } 277 | } 278 | case 3: 279 | if wireType != 2 { 280 | return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 281 | } 282 | var stringLen uint64 283 | for shift := uint(0); ; shift += 7 { 284 | if shift >= 64 { 285 | return ErrIntOverflowPubsub 286 | } 287 | if iNdEx >= l { 288 | return io.ErrUnexpectedEOF 289 | } 290 | b := dAtA[iNdEx] 291 | iNdEx++ 292 | stringLen |= uint64(b&0x7F) << shift 293 | if b < 0x80 { 294 | break 295 | } 296 | } 297 | intStringLen := int(stringLen) 298 | if intStringLen < 0 { 299 | return ErrInvalidLengthPubsub 300 | } 301 | postIndex := iNdEx + intStringLen 302 | if postIndex < 0 { 303 | return ErrInvalidLengthPubsub 304 | } 305 | if postIndex > l { 306 | return io.ErrUnexpectedEOF 307 | } 308 | m.Message = string(dAtA[iNdEx:postIndex]) 309 | iNdEx = postIndex 310 | default: 311 | iNdEx = preIndex 312 | skippy, err := skipPubsub(dAtA[iNdEx:]) 313 | if err != nil { 314 | return err 315 | } 316 | if (skippy < 0) || (iNdEx+skippy) < 0 { 317 | return ErrInvalidLengthPubsub 318 | } 319 | if (iNdEx + skippy) > l { 320 | return io.ErrUnexpectedEOF 321 | } 322 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 323 | iNdEx += skippy 324 | } 325 | } 326 | 327 | if iNdEx > l { 328 | return io.ErrUnexpectedEOF 329 | } 330 | return nil 331 | } 332 | func skipPubsub(dAtA []byte) (n int, err error) { 333 | l := len(dAtA) 334 | iNdEx := 0 335 | depth := 0 336 | for iNdEx < l { 337 | var wire uint64 338 | for shift := uint(0); ; shift += 7 { 339 | if shift >= 64 { 340 | return 0, ErrIntOverflowPubsub 341 | } 342 | if iNdEx >= l { 343 | return 0, io.ErrUnexpectedEOF 344 | } 345 | b := dAtA[iNdEx] 346 | iNdEx++ 347 | wire |= (uint64(b) & 0x7F) << shift 348 | if b < 0x80 { 349 | break 350 | } 351 | } 352 | wireType := int(wire & 0x7) 353 | switch wireType { 354 | case 0: 355 | for shift := uint(0); ; shift += 7 { 356 | if shift >= 64 { 357 | return 0, ErrIntOverflowPubsub 358 | } 359 | if iNdEx >= l { 360 | return 0, io.ErrUnexpectedEOF 361 | } 362 | iNdEx++ 363 | if dAtA[iNdEx-1] < 0x80 { 364 | break 365 | } 366 | } 367 | case 1: 368 | iNdEx += 8 369 | case 2: 370 | var length int 371 | for shift := uint(0); ; shift += 7 { 372 | if shift >= 64 { 373 | return 0, ErrIntOverflowPubsub 374 | } 375 | if iNdEx >= l { 376 | return 0, io.ErrUnexpectedEOF 377 | } 378 | b := dAtA[iNdEx] 379 | iNdEx++ 380 | length |= (int(b) & 0x7F) << shift 381 | if b < 0x80 { 382 | break 383 | } 384 | } 385 | if length < 0 { 386 | return 0, ErrInvalidLengthPubsub 387 | } 388 | iNdEx += length 389 | case 3: 390 | depth++ 391 | case 4: 392 | if depth == 0 { 393 | return 0, ErrUnexpectedEndOfGroupPubsub 394 | } 395 | depth-- 396 | case 5: 397 | iNdEx += 4 398 | default: 399 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 400 | } 401 | if iNdEx < 0 { 402 | return 0, ErrInvalidLengthPubsub 403 | } 404 | if depth == 0 { 405 | return iNdEx, nil 406 | } 407 | } 408 | return 0, io.ErrUnexpectedEOF 409 | } 410 | 411 | var ( 412 | ErrInvalidLengthPubsub = fmt.Errorf("proto: negative length found during unmarshaling") 413 | ErrIntOverflowPubsub = fmt.Errorf("proto: integer overflow") 414 | ErrUnexpectedEndOfGroupPubsub = fmt.Errorf("proto: unexpected end of group") 415 | ) 416 | -------------------------------------------------------------------------------- /pubsub/proto/pubsub.pb.micro.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-micro. DO NOT EDIT. 2 | // source: proto/pubsub.proto 3 | 4 | package helloworld 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | -------------------------------------------------------------------------------- /pubsub/proto/pubsub.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package pubsub; 4 | 5 | option go_package = "proto;helloworld"; 6 | 7 | // Example message 8 | message Event { 9 | // unique id 10 | string id = 1; 11 | // unix timestamp 12 | int64 timestamp = 2; 13 | // message 14 | string message = 3; 15 | } 16 | -------------------------------------------------------------------------------- /registerConfiguration/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine 2 | ADD registerConfiguration /registerConfiguration 3 | ENTRYPOINT [ "/registerConfiguration" ] 4 | -------------------------------------------------------------------------------- /registerConfiguration/Makefile: -------------------------------------------------------------------------------- 1 | 2 | GOPATH:=$(shell go env GOPATH) 3 | .PHONY: init 4 | init: 5 | go get -u github.com/golang/protobuf/proto 6 | go get -u github.com/golang/protobuf/protoc-gen-go 7 | go get github.com/micro/micro/v3/cmd/protoc-gen-micro 8 | .PHONY: proto 9 | proto: 10 | protoc --proto_path=. --micro_out=. --go_out=:. proto/registerConfiguration.proto 11 | 12 | .PHONY: build 13 | build: 14 | go build -o registerConfiguration *.go 15 | 16 | .PHONY: test 17 | test: 18 | go test -v ./... -cover 19 | 20 | .PHONY: docker 21 | docker: 22 | docker build . -t registerConfiguration:latest 23 | -------------------------------------------------------------------------------- /registerConfiguration/config/config.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "github.com/asim/go-micro/plugins/config/source/consul/v3" 5 | "github.com/asim/go-micro/v3/config" 6 | "strconv" 7 | ) 8 | 9 | // GetConsulConfig 设置配置中心 10 | func GetConsulConfig(host string, port int64, prefix string) (config.Config, error) { 11 | //添加配置中心 12 | //配置中心使用consul key/value 模式 13 | consulSource := consul.NewSource( 14 | //设置配置中心地址 15 | consul.WithAddress(host+":"+strconv.FormatInt(port, 10)), 16 | //设置前缀,不设置默认为 /micro/config 17 | consul.WithPrefix(prefix), 18 | //是否移除前缀,这里设置为true 表示可以不带前缀直接获取对应配置 19 | consul.StripPrefix(true), 20 | ) 21 | //配置初始化 22 | conf, err := config.NewConfig() 23 | if err != nil { 24 | return conf, err 25 | } 26 | //加载配置 27 | err = conf.Load(consulSource) 28 | return conf, err 29 | } 30 | -------------------------------------------------------------------------------- /registerConfiguration/config/mysql.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import "github.com/asim/go-micro/v3/config" 4 | 5 | // MysqlConfig 创建结构体 6 | type MysqlConfig struct { 7 | Host string `json:"host"` 8 | User string `json:"user"` 9 | Pwd string `json:"pwd"` 10 | Database string `json:"database"` 11 | Port int64 `json:"port"` 12 | } 13 | 14 | // GetMysqlFromConsul 获取mysql的配置 15 | func GetMysqlFromConsul(config config.Config, path ...string) (*MysqlConfig, error) { 16 | mysqlConfig := &MysqlConfig{} 17 | //获取配置 18 | err := config.Get(path...).Scan(mysqlConfig) 19 | if err != nil { 20 | return nil, err 21 | } 22 | return mysqlConfig, nil 23 | } -------------------------------------------------------------------------------- /registerConfiguration/generate.go: -------------------------------------------------------------------------------- 1 | package main 2 | //go:generate make proto 3 | -------------------------------------------------------------------------------- /registerConfiguration/handler/registerConfiguration.go: -------------------------------------------------------------------------------- 1 | package handler 2 | 3 | import ( 4 | "context" 5 | 6 | log "github.com/micro/micro/v3/service/logger" 7 | 8 | pb "go-micro-examples/registerConfiguration/proto" 9 | ) 10 | 11 | type RegisterConfiguration struct{} 12 | 13 | // Call is a single request handler called via client.Call or the generated client code 14 | func (e *RegisterConfiguration) Call(ctx context.Context, req *pb.Request, rsp *pb.Response) error { 15 | log.Info("Received RegisterConfiguration.Call request") 16 | rsp.Msg = "Hello " + req.Name 17 | return nil 18 | } 19 | 20 | // Stream is a server side stream handler called via client.Stream or the generated client code 21 | func (e *RegisterConfiguration) Stream(ctx context.Context, req *pb.StreamingRequest, stream pb.RegisterConfiguration_StreamStream) error { 22 | log.Infof("Received RegisterConfiguration.Stream request with count: %d", req.Count) 23 | 24 | for i := 0; i < int(req.Count); i++ { 25 | log.Infof("Responding: %d", i) 26 | if err := stream.Send(&pb.StreamingResponse{ 27 | Count: int64(i), 28 | }); err != nil { 29 | return err 30 | } 31 | } 32 | 33 | return nil 34 | } 35 | 36 | // PingPong is a bidirectional stream handler called via client.Stream or the generated client code 37 | func (e *RegisterConfiguration) PingPong(ctx context.Context, stream pb.RegisterConfiguration_PingPongStream) error { 38 | for { 39 | req, err := stream.Recv() 40 | if err != nil { 41 | return err 42 | } 43 | log.Infof("Got ping %v", req.Stroke) 44 | if err := stream.Send(&pb.Pong{Stroke: req.Stroke}); err != nil { 45 | return err 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /registerConfiguration/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asim/go-micro/plugins/registry/consul/v3" 5 | "github.com/asim/go-micro/v3" 6 | "github.com/asim/go-micro/v3/logger" 7 | "github.com/asim/go-micro/v3/registry" 8 | "go-micro-examples/registerConfiguration/config" 9 | "go-micro-examples/registerConfiguration/handler" 10 | pb "go-micro-examples/registerConfiguration/proto" 11 | ) 12 | 13 | func main() { 14 | // Register consul 15 | reg := consul.NewRegistry(func(options *registry.Options) { 16 | options.Addrs = []string{"127.0.0.1:8500"} 17 | }) 18 | 19 | // 配置中心 20 | consulConfig, err := config.GetConsulConfig("127.0.0.1", 8500, "/micro/config") 21 | if err != nil { 22 | logger.Fatal(err) 23 | } 24 | 25 | // Mysql配置信息 26 | mysqlInfo, err := config.GetMysqlFromConsul(consulConfig, "mysql") 27 | if err != nil { 28 | logger.Fatal(err) 29 | } 30 | 31 | logger.Info("Mysql配置信息:", mysqlInfo) 32 | 33 | // Create service 34 | srv := micro.NewService( 35 | micro.Name("go.micro.srv.registerconfiguration"), 36 | micro.Version("latest"), 37 | // 注册consul中心 38 | micro.Registry(reg), 39 | ) 40 | 41 | // Register handler 42 | if err := pb.RegisterRegisterConfigurationHandler(srv.Server(), new(handler.RegisterConfiguration)); err != nil { 43 | logger.Fatal(err) 44 | } 45 | 46 | // Run service 47 | if err := srv.Run(); err != nil { 48 | logger.Fatal(err) 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /registerConfiguration/proto/registerConfiguration.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 | // source: proto/registerConfiguration.proto 3 | 4 | package registerConfiguration 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | io "io" 10 | math "math" 11 | math_bits "math/bits" 12 | ) 13 | 14 | // Reference imports to suppress errors if they are not otherwise used. 15 | var _ = proto.Marshal 16 | var _ = fmt.Errorf 17 | var _ = math.Inf 18 | 19 | // This is a compile-time assertion to ensure that this generated file 20 | // is compatible with the proto package it is being compiled against. 21 | // A compilation error at this line likely means your copy of the 22 | // proto package needs to be updated. 23 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 | 25 | type Message struct { 26 | Say string `protobuf:"bytes,1,opt,name=say,proto3" json:"say,omitempty"` 27 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 28 | XXX_unrecognized []byte `json:"-"` 29 | XXX_sizecache int32 `json:"-"` 30 | } 31 | 32 | func (m *Message) Reset() { *m = Message{} } 33 | func (m *Message) String() string { return proto.CompactTextString(m) } 34 | func (*Message) ProtoMessage() {} 35 | func (*Message) Descriptor() ([]byte, []int) { 36 | return fileDescriptor_a2b3a066363a9ca1, []int{0} 37 | } 38 | func (m *Message) XXX_Unmarshal(b []byte) error { 39 | return m.Unmarshal(b) 40 | } 41 | func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 42 | if deterministic { 43 | return xxx_messageInfo_Message.Marshal(b, m, deterministic) 44 | } else { 45 | b = b[:cap(b)] 46 | n, err := m.MarshalToSizedBuffer(b) 47 | if err != nil { 48 | return nil, err 49 | } 50 | return b[:n], nil 51 | } 52 | } 53 | func (m *Message) XXX_Merge(src proto.Message) { 54 | xxx_messageInfo_Message.Merge(m, src) 55 | } 56 | func (m *Message) XXX_Size() int { 57 | return m.Size() 58 | } 59 | func (m *Message) XXX_DiscardUnknown() { 60 | xxx_messageInfo_Message.DiscardUnknown(m) 61 | } 62 | 63 | var xxx_messageInfo_Message proto.InternalMessageInfo 64 | 65 | func (m *Message) GetSay() string { 66 | if m != nil { 67 | return m.Say 68 | } 69 | return "" 70 | } 71 | 72 | type Request struct { 73 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 74 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 75 | XXX_unrecognized []byte `json:"-"` 76 | XXX_sizecache int32 `json:"-"` 77 | } 78 | 79 | func (m *Request) Reset() { *m = Request{} } 80 | func (m *Request) String() string { return proto.CompactTextString(m) } 81 | func (*Request) ProtoMessage() {} 82 | func (*Request) Descriptor() ([]byte, []int) { 83 | return fileDescriptor_a2b3a066363a9ca1, []int{1} 84 | } 85 | func (m *Request) XXX_Unmarshal(b []byte) error { 86 | return m.Unmarshal(b) 87 | } 88 | func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 89 | if deterministic { 90 | return xxx_messageInfo_Request.Marshal(b, m, deterministic) 91 | } else { 92 | b = b[:cap(b)] 93 | n, err := m.MarshalToSizedBuffer(b) 94 | if err != nil { 95 | return nil, err 96 | } 97 | return b[:n], nil 98 | } 99 | } 100 | func (m *Request) XXX_Merge(src proto.Message) { 101 | xxx_messageInfo_Request.Merge(m, src) 102 | } 103 | func (m *Request) XXX_Size() int { 104 | return m.Size() 105 | } 106 | func (m *Request) XXX_DiscardUnknown() { 107 | xxx_messageInfo_Request.DiscardUnknown(m) 108 | } 109 | 110 | var xxx_messageInfo_Request proto.InternalMessageInfo 111 | 112 | func (m *Request) GetName() string { 113 | if m != nil { 114 | return m.Name 115 | } 116 | return "" 117 | } 118 | 119 | type Response struct { 120 | Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` 121 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 122 | XXX_unrecognized []byte `json:"-"` 123 | XXX_sizecache int32 `json:"-"` 124 | } 125 | 126 | func (m *Response) Reset() { *m = Response{} } 127 | func (m *Response) String() string { return proto.CompactTextString(m) } 128 | func (*Response) ProtoMessage() {} 129 | func (*Response) Descriptor() ([]byte, []int) { 130 | return fileDescriptor_a2b3a066363a9ca1, []int{2} 131 | } 132 | func (m *Response) XXX_Unmarshal(b []byte) error { 133 | return m.Unmarshal(b) 134 | } 135 | func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 136 | if deterministic { 137 | return xxx_messageInfo_Response.Marshal(b, m, deterministic) 138 | } else { 139 | b = b[:cap(b)] 140 | n, err := m.MarshalToSizedBuffer(b) 141 | if err != nil { 142 | return nil, err 143 | } 144 | return b[:n], nil 145 | } 146 | } 147 | func (m *Response) XXX_Merge(src proto.Message) { 148 | xxx_messageInfo_Response.Merge(m, src) 149 | } 150 | func (m *Response) XXX_Size() int { 151 | return m.Size() 152 | } 153 | func (m *Response) XXX_DiscardUnknown() { 154 | xxx_messageInfo_Response.DiscardUnknown(m) 155 | } 156 | 157 | var xxx_messageInfo_Response proto.InternalMessageInfo 158 | 159 | func (m *Response) GetMsg() string { 160 | if m != nil { 161 | return m.Msg 162 | } 163 | return "" 164 | } 165 | 166 | type StreamingRequest struct { 167 | Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` 168 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 169 | XXX_unrecognized []byte `json:"-"` 170 | XXX_sizecache int32 `json:"-"` 171 | } 172 | 173 | func (m *StreamingRequest) Reset() { *m = StreamingRequest{} } 174 | func (m *StreamingRequest) String() string { return proto.CompactTextString(m) } 175 | func (*StreamingRequest) ProtoMessage() {} 176 | func (*StreamingRequest) Descriptor() ([]byte, []int) { 177 | return fileDescriptor_a2b3a066363a9ca1, []int{3} 178 | } 179 | func (m *StreamingRequest) XXX_Unmarshal(b []byte) error { 180 | return m.Unmarshal(b) 181 | } 182 | func (m *StreamingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 183 | if deterministic { 184 | return xxx_messageInfo_StreamingRequest.Marshal(b, m, deterministic) 185 | } else { 186 | b = b[:cap(b)] 187 | n, err := m.MarshalToSizedBuffer(b) 188 | if err != nil { 189 | return nil, err 190 | } 191 | return b[:n], nil 192 | } 193 | } 194 | func (m *StreamingRequest) XXX_Merge(src proto.Message) { 195 | xxx_messageInfo_StreamingRequest.Merge(m, src) 196 | } 197 | func (m *StreamingRequest) XXX_Size() int { 198 | return m.Size() 199 | } 200 | func (m *StreamingRequest) XXX_DiscardUnknown() { 201 | xxx_messageInfo_StreamingRequest.DiscardUnknown(m) 202 | } 203 | 204 | var xxx_messageInfo_StreamingRequest proto.InternalMessageInfo 205 | 206 | func (m *StreamingRequest) GetCount() int64 { 207 | if m != nil { 208 | return m.Count 209 | } 210 | return 0 211 | } 212 | 213 | type StreamingResponse struct { 214 | Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` 215 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 216 | XXX_unrecognized []byte `json:"-"` 217 | XXX_sizecache int32 `json:"-"` 218 | } 219 | 220 | func (m *StreamingResponse) Reset() { *m = StreamingResponse{} } 221 | func (m *StreamingResponse) String() string { return proto.CompactTextString(m) } 222 | func (*StreamingResponse) ProtoMessage() {} 223 | func (*StreamingResponse) Descriptor() ([]byte, []int) { 224 | return fileDescriptor_a2b3a066363a9ca1, []int{4} 225 | } 226 | func (m *StreamingResponse) XXX_Unmarshal(b []byte) error { 227 | return m.Unmarshal(b) 228 | } 229 | func (m *StreamingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 230 | if deterministic { 231 | return xxx_messageInfo_StreamingResponse.Marshal(b, m, deterministic) 232 | } else { 233 | b = b[:cap(b)] 234 | n, err := m.MarshalToSizedBuffer(b) 235 | if err != nil { 236 | return nil, err 237 | } 238 | return b[:n], nil 239 | } 240 | } 241 | func (m *StreamingResponse) XXX_Merge(src proto.Message) { 242 | xxx_messageInfo_StreamingResponse.Merge(m, src) 243 | } 244 | func (m *StreamingResponse) XXX_Size() int { 245 | return m.Size() 246 | } 247 | func (m *StreamingResponse) XXX_DiscardUnknown() { 248 | xxx_messageInfo_StreamingResponse.DiscardUnknown(m) 249 | } 250 | 251 | var xxx_messageInfo_StreamingResponse proto.InternalMessageInfo 252 | 253 | func (m *StreamingResponse) GetCount() int64 { 254 | if m != nil { 255 | return m.Count 256 | } 257 | return 0 258 | } 259 | 260 | type Ping struct { 261 | Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"` 262 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 263 | XXX_unrecognized []byte `json:"-"` 264 | XXX_sizecache int32 `json:"-"` 265 | } 266 | 267 | func (m *Ping) Reset() { *m = Ping{} } 268 | func (m *Ping) String() string { return proto.CompactTextString(m) } 269 | func (*Ping) ProtoMessage() {} 270 | func (*Ping) Descriptor() ([]byte, []int) { 271 | return fileDescriptor_a2b3a066363a9ca1, []int{5} 272 | } 273 | func (m *Ping) XXX_Unmarshal(b []byte) error { 274 | return m.Unmarshal(b) 275 | } 276 | func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 277 | if deterministic { 278 | return xxx_messageInfo_Ping.Marshal(b, m, deterministic) 279 | } else { 280 | b = b[:cap(b)] 281 | n, err := m.MarshalToSizedBuffer(b) 282 | if err != nil { 283 | return nil, err 284 | } 285 | return b[:n], nil 286 | } 287 | } 288 | func (m *Ping) XXX_Merge(src proto.Message) { 289 | xxx_messageInfo_Ping.Merge(m, src) 290 | } 291 | func (m *Ping) XXX_Size() int { 292 | return m.Size() 293 | } 294 | func (m *Ping) XXX_DiscardUnknown() { 295 | xxx_messageInfo_Ping.DiscardUnknown(m) 296 | } 297 | 298 | var xxx_messageInfo_Ping proto.InternalMessageInfo 299 | 300 | func (m *Ping) GetStroke() int64 { 301 | if m != nil { 302 | return m.Stroke 303 | } 304 | return 0 305 | } 306 | 307 | type Pong struct { 308 | Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"` 309 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 310 | XXX_unrecognized []byte `json:"-"` 311 | XXX_sizecache int32 `json:"-"` 312 | } 313 | 314 | func (m *Pong) Reset() { *m = Pong{} } 315 | func (m *Pong) String() string { return proto.CompactTextString(m) } 316 | func (*Pong) ProtoMessage() {} 317 | func (*Pong) Descriptor() ([]byte, []int) { 318 | return fileDescriptor_a2b3a066363a9ca1, []int{6} 319 | } 320 | func (m *Pong) XXX_Unmarshal(b []byte) error { 321 | return m.Unmarshal(b) 322 | } 323 | func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 324 | if deterministic { 325 | return xxx_messageInfo_Pong.Marshal(b, m, deterministic) 326 | } else { 327 | b = b[:cap(b)] 328 | n, err := m.MarshalToSizedBuffer(b) 329 | if err != nil { 330 | return nil, err 331 | } 332 | return b[:n], nil 333 | } 334 | } 335 | func (m *Pong) XXX_Merge(src proto.Message) { 336 | xxx_messageInfo_Pong.Merge(m, src) 337 | } 338 | func (m *Pong) XXX_Size() int { 339 | return m.Size() 340 | } 341 | func (m *Pong) XXX_DiscardUnknown() { 342 | xxx_messageInfo_Pong.DiscardUnknown(m) 343 | } 344 | 345 | var xxx_messageInfo_Pong proto.InternalMessageInfo 346 | 347 | func (m *Pong) GetStroke() int64 { 348 | if m != nil { 349 | return m.Stroke 350 | } 351 | return 0 352 | } 353 | 354 | func init() { 355 | proto.RegisterType((*Message)(nil), "registerConfiguration.Message") 356 | proto.RegisterType((*Request)(nil), "registerConfiguration.Request") 357 | proto.RegisterType((*Response)(nil), "registerConfiguration.Response") 358 | proto.RegisterType((*StreamingRequest)(nil), "registerConfiguration.StreamingRequest") 359 | proto.RegisterType((*StreamingResponse)(nil), "registerConfiguration.StreamingResponse") 360 | proto.RegisterType((*Ping)(nil), "registerConfiguration.Ping") 361 | proto.RegisterType((*Pong)(nil), "registerConfiguration.Pong") 362 | } 363 | 364 | func init() { proto.RegisterFile("proto/registerConfiguration.proto", fileDescriptor_a2b3a066363a9ca1) } 365 | 366 | var fileDescriptor_a2b3a066363a9ca1 = []byte{ 367 | // 301 bytes of a gzipped FileDescriptorProto 368 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x4a, 0xc4, 0x30, 369 | 0x14, 0x45, 0x1b, 0xa7, 0x76, 0xc6, 0xb7, 0x1a, 0x83, 0x23, 0xd2, 0x6a, 0xd4, 0x6c, 0xac, 0x0b, 370 | 0xc7, 0x41, 0x97, 0xee, 0x9c, 0x95, 0x82, 0x20, 0x75, 0xe7, 0x46, 0xa2, 0xc4, 0x50, 0x9c, 0x26, 371 | 0x63, 0x92, 0x2e, 0xfc, 0x0a, 0xb7, 0x7e, 0x92, 0x4b, 0x3f, 0x41, 0xea, 0x8f, 0x48, 0xd3, 0x16, 372 | 0x44, 0x1a, 0x66, 0xf7, 0x1e, 0xe7, 0xde, 0x47, 0xee, 0x25, 0x70, 0xb8, 0xd4, 0xca, 0xaa, 0x53, 373 | 0xcd, 0x45, 0x6e, 0x2c, 0xd7, 0x73, 0x25, 0x9f, 0x73, 0x51, 0x6a, 0x66, 0x73, 0x25, 0xa7, 0x8e, 374 | 0xe1, 0x49, 0x2f, 0xa4, 0x09, 0x0c, 0x6f, 0xb8, 0x31, 0x4c, 0x70, 0x3c, 0x86, 0x81, 0x61, 0x6f, 375 | 0x3b, 0xe8, 0x00, 0xa5, 0x1b, 0x59, 0x3d, 0xd2, 0x3d, 0x18, 0x66, 0xfc, 0xb5, 0xe4, 0xc6, 0x62, 376 | 0x0c, 0xa1, 0x64, 0x05, 0x6f, 0xa9, 0x9b, 0xe9, 0x2e, 0x8c, 0x32, 0x6e, 0x96, 0x4a, 0x1a, 0x67, 377 | 0x2e, 0x8c, 0xe8, 0xcc, 0x85, 0x11, 0x34, 0x85, 0xf1, 0x9d, 0xd5, 0x9c, 0x15, 0xb9, 0x14, 0xdd, 378 | 0x95, 0x2d, 0x58, 0x7f, 0x52, 0xa5, 0xb4, 0x4e, 0x37, 0xc8, 0x9a, 0x85, 0x1e, 0xc3, 0xe6, 0x1f, 379 | 0x65, 0x7b, 0xb0, 0x5f, 0x4a, 0x20, 0xbc, 0xcd, 0xa5, 0xc0, 0xdb, 0x10, 0x19, 0xab, 0xd5, 0x0b, 380 | 0x6f, 0x71, 0xbb, 0x39, 0xae, 0xfc, 0xfc, 0xec, 0x7d, 0x0d, 0x26, 0x59, 0x5f, 0x11, 0xf8, 0x0a, 381 | 0xc2, 0x39, 0x5b, 0x2c, 0x30, 0x99, 0xf6, 0xb7, 0xd8, 0x46, 0x88, 0xf7, 0xbd, 0xbc, 0x79, 0x38, 382 | 0x0d, 0xf0, 0x03, 0x44, 0x4d, 0x1e, 0x7c, 0xe4, 0x11, 0xff, 0x2f, 0x26, 0x4e, 0x57, 0x0b, 0xbb, 383 | 0xf3, 0x33, 0x84, 0xaf, 0x61, 0x54, 0xb7, 0xe0, 0x92, 0x26, 0x1e, 0x67, 0x2d, 0x88, 0xbd, 0x50, 384 | 0x49, 0x41, 0x83, 0x14, 0xcd, 0xd0, 0xe5, 0xc9, 0x67, 0x45, 0xd0, 0x57, 0x45, 0xd0, 0x77, 0x45, 385 | 0xd0, 0xc7, 0x0f, 0x09, 0xee, 0x13, 0xf7, 0x61, 0x2e, 0x7a, 0x9d, 0x8f, 0x91, 0x83, 0xe7, 0xbf, 386 | 0x01, 0x00, 0x00, 0xff, 0xff, 0x14, 0x96, 0x3c, 0xc7, 0x72, 0x02, 0x00, 0x00, 387 | } 388 | 389 | func (m *Message) Marshal() (dAtA []byte, err error) { 390 | size := m.Size() 391 | dAtA = make([]byte, size) 392 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 393 | if err != nil { 394 | return nil, err 395 | } 396 | return dAtA[:n], nil 397 | } 398 | 399 | func (m *Message) MarshalTo(dAtA []byte) (int, error) { 400 | size := m.Size() 401 | return m.MarshalToSizedBuffer(dAtA[:size]) 402 | } 403 | 404 | func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) { 405 | i := len(dAtA) 406 | _ = i 407 | var l int 408 | _ = l 409 | if m.XXX_unrecognized != nil { 410 | i -= len(m.XXX_unrecognized) 411 | copy(dAtA[i:], m.XXX_unrecognized) 412 | } 413 | if len(m.Say) > 0 { 414 | i -= len(m.Say) 415 | copy(dAtA[i:], m.Say) 416 | i = encodeVarintRegisterConfiguration(dAtA, i, uint64(len(m.Say))) 417 | i-- 418 | dAtA[i] = 0xa 419 | } 420 | return len(dAtA) - i, nil 421 | } 422 | 423 | func (m *Request) Marshal() (dAtA []byte, err error) { 424 | size := m.Size() 425 | dAtA = make([]byte, size) 426 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 427 | if err != nil { 428 | return nil, err 429 | } 430 | return dAtA[:n], nil 431 | } 432 | 433 | func (m *Request) MarshalTo(dAtA []byte) (int, error) { 434 | size := m.Size() 435 | return m.MarshalToSizedBuffer(dAtA[:size]) 436 | } 437 | 438 | func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { 439 | i := len(dAtA) 440 | _ = i 441 | var l int 442 | _ = l 443 | if m.XXX_unrecognized != nil { 444 | i -= len(m.XXX_unrecognized) 445 | copy(dAtA[i:], m.XXX_unrecognized) 446 | } 447 | if len(m.Name) > 0 { 448 | i -= len(m.Name) 449 | copy(dAtA[i:], m.Name) 450 | i = encodeVarintRegisterConfiguration(dAtA, i, uint64(len(m.Name))) 451 | i-- 452 | dAtA[i] = 0xa 453 | } 454 | return len(dAtA) - i, nil 455 | } 456 | 457 | func (m *Response) Marshal() (dAtA []byte, err error) { 458 | size := m.Size() 459 | dAtA = make([]byte, size) 460 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 461 | if err != nil { 462 | return nil, err 463 | } 464 | return dAtA[:n], nil 465 | } 466 | 467 | func (m *Response) MarshalTo(dAtA []byte) (int, error) { 468 | size := m.Size() 469 | return m.MarshalToSizedBuffer(dAtA[:size]) 470 | } 471 | 472 | func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { 473 | i := len(dAtA) 474 | _ = i 475 | var l int 476 | _ = l 477 | if m.XXX_unrecognized != nil { 478 | i -= len(m.XXX_unrecognized) 479 | copy(dAtA[i:], m.XXX_unrecognized) 480 | } 481 | if len(m.Msg) > 0 { 482 | i -= len(m.Msg) 483 | copy(dAtA[i:], m.Msg) 484 | i = encodeVarintRegisterConfiguration(dAtA, i, uint64(len(m.Msg))) 485 | i-- 486 | dAtA[i] = 0xa 487 | } 488 | return len(dAtA) - i, nil 489 | } 490 | 491 | func (m *StreamingRequest) Marshal() (dAtA []byte, err error) { 492 | size := m.Size() 493 | dAtA = make([]byte, size) 494 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 495 | if err != nil { 496 | return nil, err 497 | } 498 | return dAtA[:n], nil 499 | } 500 | 501 | func (m *StreamingRequest) MarshalTo(dAtA []byte) (int, error) { 502 | size := m.Size() 503 | return m.MarshalToSizedBuffer(dAtA[:size]) 504 | } 505 | 506 | func (m *StreamingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 507 | i := len(dAtA) 508 | _ = i 509 | var l int 510 | _ = l 511 | if m.XXX_unrecognized != nil { 512 | i -= len(m.XXX_unrecognized) 513 | copy(dAtA[i:], m.XXX_unrecognized) 514 | } 515 | if m.Count != 0 { 516 | i = encodeVarintRegisterConfiguration(dAtA, i, uint64(m.Count)) 517 | i-- 518 | dAtA[i] = 0x8 519 | } 520 | return len(dAtA) - i, nil 521 | } 522 | 523 | func (m *StreamingResponse) Marshal() (dAtA []byte, err error) { 524 | size := m.Size() 525 | dAtA = make([]byte, size) 526 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 527 | if err != nil { 528 | return nil, err 529 | } 530 | return dAtA[:n], nil 531 | } 532 | 533 | func (m *StreamingResponse) MarshalTo(dAtA []byte) (int, error) { 534 | size := m.Size() 535 | return m.MarshalToSizedBuffer(dAtA[:size]) 536 | } 537 | 538 | func (m *StreamingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 539 | i := len(dAtA) 540 | _ = i 541 | var l int 542 | _ = l 543 | if m.XXX_unrecognized != nil { 544 | i -= len(m.XXX_unrecognized) 545 | copy(dAtA[i:], m.XXX_unrecognized) 546 | } 547 | if m.Count != 0 { 548 | i = encodeVarintRegisterConfiguration(dAtA, i, uint64(m.Count)) 549 | i-- 550 | dAtA[i] = 0x8 551 | } 552 | return len(dAtA) - i, nil 553 | } 554 | 555 | func (m *Ping) Marshal() (dAtA []byte, err error) { 556 | size := m.Size() 557 | dAtA = make([]byte, size) 558 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 559 | if err != nil { 560 | return nil, err 561 | } 562 | return dAtA[:n], nil 563 | } 564 | 565 | func (m *Ping) MarshalTo(dAtA []byte) (int, error) { 566 | size := m.Size() 567 | return m.MarshalToSizedBuffer(dAtA[:size]) 568 | } 569 | 570 | func (m *Ping) MarshalToSizedBuffer(dAtA []byte) (int, error) { 571 | i := len(dAtA) 572 | _ = i 573 | var l int 574 | _ = l 575 | if m.XXX_unrecognized != nil { 576 | i -= len(m.XXX_unrecognized) 577 | copy(dAtA[i:], m.XXX_unrecognized) 578 | } 579 | if m.Stroke != 0 { 580 | i = encodeVarintRegisterConfiguration(dAtA, i, uint64(m.Stroke)) 581 | i-- 582 | dAtA[i] = 0x8 583 | } 584 | return len(dAtA) - i, nil 585 | } 586 | 587 | func (m *Pong) Marshal() (dAtA []byte, err error) { 588 | size := m.Size() 589 | dAtA = make([]byte, size) 590 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) 591 | if err != nil { 592 | return nil, err 593 | } 594 | return dAtA[:n], nil 595 | } 596 | 597 | func (m *Pong) MarshalTo(dAtA []byte) (int, error) { 598 | size := m.Size() 599 | return m.MarshalToSizedBuffer(dAtA[:size]) 600 | } 601 | 602 | func (m *Pong) MarshalToSizedBuffer(dAtA []byte) (int, error) { 603 | i := len(dAtA) 604 | _ = i 605 | var l int 606 | _ = l 607 | if m.XXX_unrecognized != nil { 608 | i -= len(m.XXX_unrecognized) 609 | copy(dAtA[i:], m.XXX_unrecognized) 610 | } 611 | if m.Stroke != 0 { 612 | i = encodeVarintRegisterConfiguration(dAtA, i, uint64(m.Stroke)) 613 | i-- 614 | dAtA[i] = 0x8 615 | } 616 | return len(dAtA) - i, nil 617 | } 618 | 619 | func encodeVarintRegisterConfiguration(dAtA []byte, offset int, v uint64) int { 620 | offset -= sovRegisterConfiguration(v) 621 | base := offset 622 | for v >= 1<<7 { 623 | dAtA[offset] = uint8(v&0x7f | 0x80) 624 | v >>= 7 625 | offset++ 626 | } 627 | dAtA[offset] = uint8(v) 628 | return base 629 | } 630 | func (m *Message) Size() (n int) { 631 | if m == nil { 632 | return 0 633 | } 634 | var l int 635 | _ = l 636 | l = len(m.Say) 637 | if l > 0 { 638 | n += 1 + l + sovRegisterConfiguration(uint64(l)) 639 | } 640 | if m.XXX_unrecognized != nil { 641 | n += len(m.XXX_unrecognized) 642 | } 643 | return n 644 | } 645 | 646 | func (m *Request) Size() (n int) { 647 | if m == nil { 648 | return 0 649 | } 650 | var l int 651 | _ = l 652 | l = len(m.Name) 653 | if l > 0 { 654 | n += 1 + l + sovRegisterConfiguration(uint64(l)) 655 | } 656 | if m.XXX_unrecognized != nil { 657 | n += len(m.XXX_unrecognized) 658 | } 659 | return n 660 | } 661 | 662 | func (m *Response) Size() (n int) { 663 | if m == nil { 664 | return 0 665 | } 666 | var l int 667 | _ = l 668 | l = len(m.Msg) 669 | if l > 0 { 670 | n += 1 + l + sovRegisterConfiguration(uint64(l)) 671 | } 672 | if m.XXX_unrecognized != nil { 673 | n += len(m.XXX_unrecognized) 674 | } 675 | return n 676 | } 677 | 678 | func (m *StreamingRequest) Size() (n int) { 679 | if m == nil { 680 | return 0 681 | } 682 | var l int 683 | _ = l 684 | if m.Count != 0 { 685 | n += 1 + sovRegisterConfiguration(uint64(m.Count)) 686 | } 687 | if m.XXX_unrecognized != nil { 688 | n += len(m.XXX_unrecognized) 689 | } 690 | return n 691 | } 692 | 693 | func (m *StreamingResponse) Size() (n int) { 694 | if m == nil { 695 | return 0 696 | } 697 | var l int 698 | _ = l 699 | if m.Count != 0 { 700 | n += 1 + sovRegisterConfiguration(uint64(m.Count)) 701 | } 702 | if m.XXX_unrecognized != nil { 703 | n += len(m.XXX_unrecognized) 704 | } 705 | return n 706 | } 707 | 708 | func (m *Ping) Size() (n int) { 709 | if m == nil { 710 | return 0 711 | } 712 | var l int 713 | _ = l 714 | if m.Stroke != 0 { 715 | n += 1 + sovRegisterConfiguration(uint64(m.Stroke)) 716 | } 717 | if m.XXX_unrecognized != nil { 718 | n += len(m.XXX_unrecognized) 719 | } 720 | return n 721 | } 722 | 723 | func (m *Pong) Size() (n int) { 724 | if m == nil { 725 | return 0 726 | } 727 | var l int 728 | _ = l 729 | if m.Stroke != 0 { 730 | n += 1 + sovRegisterConfiguration(uint64(m.Stroke)) 731 | } 732 | if m.XXX_unrecognized != nil { 733 | n += len(m.XXX_unrecognized) 734 | } 735 | return n 736 | } 737 | 738 | func sovRegisterConfiguration(x uint64) (n int) { 739 | return (math_bits.Len64(x|1) + 6) / 7 740 | } 741 | func sozRegisterConfiguration(x uint64) (n int) { 742 | return sovRegisterConfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 743 | } 744 | func (m *Message) Unmarshal(dAtA []byte) error { 745 | l := len(dAtA) 746 | iNdEx := 0 747 | for iNdEx < l { 748 | preIndex := iNdEx 749 | var wire uint64 750 | for shift := uint(0); ; shift += 7 { 751 | if shift >= 64 { 752 | return ErrIntOverflowRegisterConfiguration 753 | } 754 | if iNdEx >= l { 755 | return io.ErrUnexpectedEOF 756 | } 757 | b := dAtA[iNdEx] 758 | iNdEx++ 759 | wire |= uint64(b&0x7F) << shift 760 | if b < 0x80 { 761 | break 762 | } 763 | } 764 | fieldNum := int32(wire >> 3) 765 | wireType := int(wire & 0x7) 766 | if wireType == 4 { 767 | return fmt.Errorf("proto: Message: wiretype end group for non-group") 768 | } 769 | if fieldNum <= 0 { 770 | return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire) 771 | } 772 | switch fieldNum { 773 | case 1: 774 | if wireType != 2 { 775 | return fmt.Errorf("proto: wrong wireType = %d for field Say", wireType) 776 | } 777 | var stringLen uint64 778 | for shift := uint(0); ; shift += 7 { 779 | if shift >= 64 { 780 | return ErrIntOverflowRegisterConfiguration 781 | } 782 | if iNdEx >= l { 783 | return io.ErrUnexpectedEOF 784 | } 785 | b := dAtA[iNdEx] 786 | iNdEx++ 787 | stringLen |= uint64(b&0x7F) << shift 788 | if b < 0x80 { 789 | break 790 | } 791 | } 792 | intStringLen := int(stringLen) 793 | if intStringLen < 0 { 794 | return ErrInvalidLengthRegisterConfiguration 795 | } 796 | postIndex := iNdEx + intStringLen 797 | if postIndex < 0 { 798 | return ErrInvalidLengthRegisterConfiguration 799 | } 800 | if postIndex > l { 801 | return io.ErrUnexpectedEOF 802 | } 803 | m.Say = string(dAtA[iNdEx:postIndex]) 804 | iNdEx = postIndex 805 | default: 806 | iNdEx = preIndex 807 | skippy, err := skipRegisterConfiguration(dAtA[iNdEx:]) 808 | if err != nil { 809 | return err 810 | } 811 | if (skippy < 0) || (iNdEx+skippy) < 0 { 812 | return ErrInvalidLengthRegisterConfiguration 813 | } 814 | if (iNdEx + skippy) > l { 815 | return io.ErrUnexpectedEOF 816 | } 817 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 818 | iNdEx += skippy 819 | } 820 | } 821 | 822 | if iNdEx > l { 823 | return io.ErrUnexpectedEOF 824 | } 825 | return nil 826 | } 827 | func (m *Request) Unmarshal(dAtA []byte) error { 828 | l := len(dAtA) 829 | iNdEx := 0 830 | for iNdEx < l { 831 | preIndex := iNdEx 832 | var wire uint64 833 | for shift := uint(0); ; shift += 7 { 834 | if shift >= 64 { 835 | return ErrIntOverflowRegisterConfiguration 836 | } 837 | if iNdEx >= l { 838 | return io.ErrUnexpectedEOF 839 | } 840 | b := dAtA[iNdEx] 841 | iNdEx++ 842 | wire |= uint64(b&0x7F) << shift 843 | if b < 0x80 { 844 | break 845 | } 846 | } 847 | fieldNum := int32(wire >> 3) 848 | wireType := int(wire & 0x7) 849 | if wireType == 4 { 850 | return fmt.Errorf("proto: Request: wiretype end group for non-group") 851 | } 852 | if fieldNum <= 0 { 853 | return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) 854 | } 855 | switch fieldNum { 856 | case 1: 857 | if wireType != 2 { 858 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 859 | } 860 | var stringLen uint64 861 | for shift := uint(0); ; shift += 7 { 862 | if shift >= 64 { 863 | return ErrIntOverflowRegisterConfiguration 864 | } 865 | if iNdEx >= l { 866 | return io.ErrUnexpectedEOF 867 | } 868 | b := dAtA[iNdEx] 869 | iNdEx++ 870 | stringLen |= uint64(b&0x7F) << shift 871 | if b < 0x80 { 872 | break 873 | } 874 | } 875 | intStringLen := int(stringLen) 876 | if intStringLen < 0 { 877 | return ErrInvalidLengthRegisterConfiguration 878 | } 879 | postIndex := iNdEx + intStringLen 880 | if postIndex < 0 { 881 | return ErrInvalidLengthRegisterConfiguration 882 | } 883 | if postIndex > l { 884 | return io.ErrUnexpectedEOF 885 | } 886 | m.Name = string(dAtA[iNdEx:postIndex]) 887 | iNdEx = postIndex 888 | default: 889 | iNdEx = preIndex 890 | skippy, err := skipRegisterConfiguration(dAtA[iNdEx:]) 891 | if err != nil { 892 | return err 893 | } 894 | if (skippy < 0) || (iNdEx+skippy) < 0 { 895 | return ErrInvalidLengthRegisterConfiguration 896 | } 897 | if (iNdEx + skippy) > l { 898 | return io.ErrUnexpectedEOF 899 | } 900 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 901 | iNdEx += skippy 902 | } 903 | } 904 | 905 | if iNdEx > l { 906 | return io.ErrUnexpectedEOF 907 | } 908 | return nil 909 | } 910 | func (m *Response) Unmarshal(dAtA []byte) error { 911 | l := len(dAtA) 912 | iNdEx := 0 913 | for iNdEx < l { 914 | preIndex := iNdEx 915 | var wire uint64 916 | for shift := uint(0); ; shift += 7 { 917 | if shift >= 64 { 918 | return ErrIntOverflowRegisterConfiguration 919 | } 920 | if iNdEx >= l { 921 | return io.ErrUnexpectedEOF 922 | } 923 | b := dAtA[iNdEx] 924 | iNdEx++ 925 | wire |= uint64(b&0x7F) << shift 926 | if b < 0x80 { 927 | break 928 | } 929 | } 930 | fieldNum := int32(wire >> 3) 931 | wireType := int(wire & 0x7) 932 | if wireType == 4 { 933 | return fmt.Errorf("proto: Response: wiretype end group for non-group") 934 | } 935 | if fieldNum <= 0 { 936 | return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) 937 | } 938 | switch fieldNum { 939 | case 1: 940 | if wireType != 2 { 941 | return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 942 | } 943 | var stringLen uint64 944 | for shift := uint(0); ; shift += 7 { 945 | if shift >= 64 { 946 | return ErrIntOverflowRegisterConfiguration 947 | } 948 | if iNdEx >= l { 949 | return io.ErrUnexpectedEOF 950 | } 951 | b := dAtA[iNdEx] 952 | iNdEx++ 953 | stringLen |= uint64(b&0x7F) << shift 954 | if b < 0x80 { 955 | break 956 | } 957 | } 958 | intStringLen := int(stringLen) 959 | if intStringLen < 0 { 960 | return ErrInvalidLengthRegisterConfiguration 961 | } 962 | postIndex := iNdEx + intStringLen 963 | if postIndex < 0 { 964 | return ErrInvalidLengthRegisterConfiguration 965 | } 966 | if postIndex > l { 967 | return io.ErrUnexpectedEOF 968 | } 969 | m.Msg = string(dAtA[iNdEx:postIndex]) 970 | iNdEx = postIndex 971 | default: 972 | iNdEx = preIndex 973 | skippy, err := skipRegisterConfiguration(dAtA[iNdEx:]) 974 | if err != nil { 975 | return err 976 | } 977 | if (skippy < 0) || (iNdEx+skippy) < 0 { 978 | return ErrInvalidLengthRegisterConfiguration 979 | } 980 | if (iNdEx + skippy) > l { 981 | return io.ErrUnexpectedEOF 982 | } 983 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 984 | iNdEx += skippy 985 | } 986 | } 987 | 988 | if iNdEx > l { 989 | return io.ErrUnexpectedEOF 990 | } 991 | return nil 992 | } 993 | func (m *StreamingRequest) Unmarshal(dAtA []byte) error { 994 | l := len(dAtA) 995 | iNdEx := 0 996 | for iNdEx < l { 997 | preIndex := iNdEx 998 | var wire uint64 999 | for shift := uint(0); ; shift += 7 { 1000 | if shift >= 64 { 1001 | return ErrIntOverflowRegisterConfiguration 1002 | } 1003 | if iNdEx >= l { 1004 | return io.ErrUnexpectedEOF 1005 | } 1006 | b := dAtA[iNdEx] 1007 | iNdEx++ 1008 | wire |= uint64(b&0x7F) << shift 1009 | if b < 0x80 { 1010 | break 1011 | } 1012 | } 1013 | fieldNum := int32(wire >> 3) 1014 | wireType := int(wire & 0x7) 1015 | if wireType == 4 { 1016 | return fmt.Errorf("proto: StreamingRequest: wiretype end group for non-group") 1017 | } 1018 | if fieldNum <= 0 { 1019 | return fmt.Errorf("proto: StreamingRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1020 | } 1021 | switch fieldNum { 1022 | case 1: 1023 | if wireType != 0 { 1024 | return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) 1025 | } 1026 | m.Count = 0 1027 | for shift := uint(0); ; shift += 7 { 1028 | if shift >= 64 { 1029 | return ErrIntOverflowRegisterConfiguration 1030 | } 1031 | if iNdEx >= l { 1032 | return io.ErrUnexpectedEOF 1033 | } 1034 | b := dAtA[iNdEx] 1035 | iNdEx++ 1036 | m.Count |= int64(b&0x7F) << shift 1037 | if b < 0x80 { 1038 | break 1039 | } 1040 | } 1041 | default: 1042 | iNdEx = preIndex 1043 | skippy, err := skipRegisterConfiguration(dAtA[iNdEx:]) 1044 | if err != nil { 1045 | return err 1046 | } 1047 | if (skippy < 0) || (iNdEx+skippy) < 0 { 1048 | return ErrInvalidLengthRegisterConfiguration 1049 | } 1050 | if (iNdEx + skippy) > l { 1051 | return io.ErrUnexpectedEOF 1052 | } 1053 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1054 | iNdEx += skippy 1055 | } 1056 | } 1057 | 1058 | if iNdEx > l { 1059 | return io.ErrUnexpectedEOF 1060 | } 1061 | return nil 1062 | } 1063 | func (m *StreamingResponse) Unmarshal(dAtA []byte) error { 1064 | l := len(dAtA) 1065 | iNdEx := 0 1066 | for iNdEx < l { 1067 | preIndex := iNdEx 1068 | var wire uint64 1069 | for shift := uint(0); ; shift += 7 { 1070 | if shift >= 64 { 1071 | return ErrIntOverflowRegisterConfiguration 1072 | } 1073 | if iNdEx >= l { 1074 | return io.ErrUnexpectedEOF 1075 | } 1076 | b := dAtA[iNdEx] 1077 | iNdEx++ 1078 | wire |= uint64(b&0x7F) << shift 1079 | if b < 0x80 { 1080 | break 1081 | } 1082 | } 1083 | fieldNum := int32(wire >> 3) 1084 | wireType := int(wire & 0x7) 1085 | if wireType == 4 { 1086 | return fmt.Errorf("proto: StreamingResponse: wiretype end group for non-group") 1087 | } 1088 | if fieldNum <= 0 { 1089 | return fmt.Errorf("proto: StreamingResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1090 | } 1091 | switch fieldNum { 1092 | case 1: 1093 | if wireType != 0 { 1094 | return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) 1095 | } 1096 | m.Count = 0 1097 | for shift := uint(0); ; shift += 7 { 1098 | if shift >= 64 { 1099 | return ErrIntOverflowRegisterConfiguration 1100 | } 1101 | if iNdEx >= l { 1102 | return io.ErrUnexpectedEOF 1103 | } 1104 | b := dAtA[iNdEx] 1105 | iNdEx++ 1106 | m.Count |= int64(b&0x7F) << shift 1107 | if b < 0x80 { 1108 | break 1109 | } 1110 | } 1111 | default: 1112 | iNdEx = preIndex 1113 | skippy, err := skipRegisterConfiguration(dAtA[iNdEx:]) 1114 | if err != nil { 1115 | return err 1116 | } 1117 | if (skippy < 0) || (iNdEx+skippy) < 0 { 1118 | return ErrInvalidLengthRegisterConfiguration 1119 | } 1120 | if (iNdEx + skippy) > l { 1121 | return io.ErrUnexpectedEOF 1122 | } 1123 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1124 | iNdEx += skippy 1125 | } 1126 | } 1127 | 1128 | if iNdEx > l { 1129 | return io.ErrUnexpectedEOF 1130 | } 1131 | return nil 1132 | } 1133 | func (m *Ping) Unmarshal(dAtA []byte) error { 1134 | l := len(dAtA) 1135 | iNdEx := 0 1136 | for iNdEx < l { 1137 | preIndex := iNdEx 1138 | var wire uint64 1139 | for shift := uint(0); ; shift += 7 { 1140 | if shift >= 64 { 1141 | return ErrIntOverflowRegisterConfiguration 1142 | } 1143 | if iNdEx >= l { 1144 | return io.ErrUnexpectedEOF 1145 | } 1146 | b := dAtA[iNdEx] 1147 | iNdEx++ 1148 | wire |= uint64(b&0x7F) << shift 1149 | if b < 0x80 { 1150 | break 1151 | } 1152 | } 1153 | fieldNum := int32(wire >> 3) 1154 | wireType := int(wire & 0x7) 1155 | if wireType == 4 { 1156 | return fmt.Errorf("proto: Ping: wiretype end group for non-group") 1157 | } 1158 | if fieldNum <= 0 { 1159 | return fmt.Errorf("proto: Ping: illegal tag %d (wire type %d)", fieldNum, wire) 1160 | } 1161 | switch fieldNum { 1162 | case 1: 1163 | if wireType != 0 { 1164 | return fmt.Errorf("proto: wrong wireType = %d for field Stroke", wireType) 1165 | } 1166 | m.Stroke = 0 1167 | for shift := uint(0); ; shift += 7 { 1168 | if shift >= 64 { 1169 | return ErrIntOverflowRegisterConfiguration 1170 | } 1171 | if iNdEx >= l { 1172 | return io.ErrUnexpectedEOF 1173 | } 1174 | b := dAtA[iNdEx] 1175 | iNdEx++ 1176 | m.Stroke |= int64(b&0x7F) << shift 1177 | if b < 0x80 { 1178 | break 1179 | } 1180 | } 1181 | default: 1182 | iNdEx = preIndex 1183 | skippy, err := skipRegisterConfiguration(dAtA[iNdEx:]) 1184 | if err != nil { 1185 | return err 1186 | } 1187 | if (skippy < 0) || (iNdEx+skippy) < 0 { 1188 | return ErrInvalidLengthRegisterConfiguration 1189 | } 1190 | if (iNdEx + skippy) > l { 1191 | return io.ErrUnexpectedEOF 1192 | } 1193 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1194 | iNdEx += skippy 1195 | } 1196 | } 1197 | 1198 | if iNdEx > l { 1199 | return io.ErrUnexpectedEOF 1200 | } 1201 | return nil 1202 | } 1203 | func (m *Pong) Unmarshal(dAtA []byte) error { 1204 | l := len(dAtA) 1205 | iNdEx := 0 1206 | for iNdEx < l { 1207 | preIndex := iNdEx 1208 | var wire uint64 1209 | for shift := uint(0); ; shift += 7 { 1210 | if shift >= 64 { 1211 | return ErrIntOverflowRegisterConfiguration 1212 | } 1213 | if iNdEx >= l { 1214 | return io.ErrUnexpectedEOF 1215 | } 1216 | b := dAtA[iNdEx] 1217 | iNdEx++ 1218 | wire |= uint64(b&0x7F) << shift 1219 | if b < 0x80 { 1220 | break 1221 | } 1222 | } 1223 | fieldNum := int32(wire >> 3) 1224 | wireType := int(wire & 0x7) 1225 | if wireType == 4 { 1226 | return fmt.Errorf("proto: Pong: wiretype end group for non-group") 1227 | } 1228 | if fieldNum <= 0 { 1229 | return fmt.Errorf("proto: Pong: illegal tag %d (wire type %d)", fieldNum, wire) 1230 | } 1231 | switch fieldNum { 1232 | case 1: 1233 | if wireType != 0 { 1234 | return fmt.Errorf("proto: wrong wireType = %d for field Stroke", wireType) 1235 | } 1236 | m.Stroke = 0 1237 | for shift := uint(0); ; shift += 7 { 1238 | if shift >= 64 { 1239 | return ErrIntOverflowRegisterConfiguration 1240 | } 1241 | if iNdEx >= l { 1242 | return io.ErrUnexpectedEOF 1243 | } 1244 | b := dAtA[iNdEx] 1245 | iNdEx++ 1246 | m.Stroke |= int64(b&0x7F) << shift 1247 | if b < 0x80 { 1248 | break 1249 | } 1250 | } 1251 | default: 1252 | iNdEx = preIndex 1253 | skippy, err := skipRegisterConfiguration(dAtA[iNdEx:]) 1254 | if err != nil { 1255 | return err 1256 | } 1257 | if (skippy < 0) || (iNdEx+skippy) < 0 { 1258 | return ErrInvalidLengthRegisterConfiguration 1259 | } 1260 | if (iNdEx + skippy) > l { 1261 | return io.ErrUnexpectedEOF 1262 | } 1263 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1264 | iNdEx += skippy 1265 | } 1266 | } 1267 | 1268 | if iNdEx > l { 1269 | return io.ErrUnexpectedEOF 1270 | } 1271 | return nil 1272 | } 1273 | func skipRegisterConfiguration(dAtA []byte) (n int, err error) { 1274 | l := len(dAtA) 1275 | iNdEx := 0 1276 | depth := 0 1277 | for iNdEx < l { 1278 | var wire uint64 1279 | for shift := uint(0); ; shift += 7 { 1280 | if shift >= 64 { 1281 | return 0, ErrIntOverflowRegisterConfiguration 1282 | } 1283 | if iNdEx >= l { 1284 | return 0, io.ErrUnexpectedEOF 1285 | } 1286 | b := dAtA[iNdEx] 1287 | iNdEx++ 1288 | wire |= (uint64(b) & 0x7F) << shift 1289 | if b < 0x80 { 1290 | break 1291 | } 1292 | } 1293 | wireType := int(wire & 0x7) 1294 | switch wireType { 1295 | case 0: 1296 | for shift := uint(0); ; shift += 7 { 1297 | if shift >= 64 { 1298 | return 0, ErrIntOverflowRegisterConfiguration 1299 | } 1300 | if iNdEx >= l { 1301 | return 0, io.ErrUnexpectedEOF 1302 | } 1303 | iNdEx++ 1304 | if dAtA[iNdEx-1] < 0x80 { 1305 | break 1306 | } 1307 | } 1308 | case 1: 1309 | iNdEx += 8 1310 | case 2: 1311 | var length int 1312 | for shift := uint(0); ; shift += 7 { 1313 | if shift >= 64 { 1314 | return 0, ErrIntOverflowRegisterConfiguration 1315 | } 1316 | if iNdEx >= l { 1317 | return 0, io.ErrUnexpectedEOF 1318 | } 1319 | b := dAtA[iNdEx] 1320 | iNdEx++ 1321 | length |= (int(b) & 0x7F) << shift 1322 | if b < 0x80 { 1323 | break 1324 | } 1325 | } 1326 | if length < 0 { 1327 | return 0, ErrInvalidLengthRegisterConfiguration 1328 | } 1329 | iNdEx += length 1330 | case 3: 1331 | depth++ 1332 | case 4: 1333 | if depth == 0 { 1334 | return 0, ErrUnexpectedEndOfGroupRegisterConfiguration 1335 | } 1336 | depth-- 1337 | case 5: 1338 | iNdEx += 4 1339 | default: 1340 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1341 | } 1342 | if iNdEx < 0 { 1343 | return 0, ErrInvalidLengthRegisterConfiguration 1344 | } 1345 | if depth == 0 { 1346 | return iNdEx, nil 1347 | } 1348 | } 1349 | return 0, io.ErrUnexpectedEOF 1350 | } 1351 | 1352 | var ( 1353 | ErrInvalidLengthRegisterConfiguration = fmt.Errorf("proto: negative length found during unmarshaling") 1354 | ErrIntOverflowRegisterConfiguration = fmt.Errorf("proto: integer overflow") 1355 | ErrUnexpectedEndOfGroupRegisterConfiguration = fmt.Errorf("proto: unexpected end of group") 1356 | ) 1357 | -------------------------------------------------------------------------------- /registerConfiguration/proto/registerConfiguration.pb.micro.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-micro. DO NOT EDIT. 2 | // source: proto/registerConfiguration.proto 3 | 4 | package registerConfiguration 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | import ( 13 | context "context" 14 | api "github.com/asim/go-micro/v3/api" 15 | client "github.com/asim/go-micro/v3/client" 16 | server "github.com/asim/go-micro/v3/server" 17 | ) 18 | 19 | // Reference imports to suppress errors if they are not otherwise used. 20 | var _ = proto.Marshal 21 | var _ = fmt.Errorf 22 | var _ = math.Inf 23 | 24 | // This is a compile-time assertion to ensure that this generated file 25 | // is compatible with the proto package it is being compiled against. 26 | // A compilation error at this line likely means your copy of the 27 | // proto package needs to be updated. 28 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 29 | 30 | // Reference imports to suppress errors if they are not otherwise used. 31 | var _ api.Endpoint 32 | var _ context.Context 33 | var _ client.Option 34 | var _ server.Option 35 | 36 | // Api Endpoints for RegisterConfiguration service 37 | 38 | func NewRegisterConfigurationEndpoints() []*api.Endpoint { 39 | return []*api.Endpoint{} 40 | } 41 | 42 | // Client API for RegisterConfiguration service 43 | 44 | type RegisterConfigurationService interface { 45 | Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) 46 | Stream(ctx context.Context, in *StreamingRequest, opts ...client.CallOption) (RegisterConfiguration_StreamService, error) 47 | PingPong(ctx context.Context, opts ...client.CallOption) (RegisterConfiguration_PingPongService, error) 48 | } 49 | 50 | type registerConfigurationService struct { 51 | c client.Client 52 | name string 53 | } 54 | 55 | func NewRegisterConfigurationService(name string, c client.Client) RegisterConfigurationService { 56 | return ®isterConfigurationService{ 57 | c: c, 58 | name: name, 59 | } 60 | } 61 | 62 | func (c *registerConfigurationService) Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) { 63 | req := c.c.NewRequest(c.name, "RegisterConfiguration.Call", in) 64 | out := new(Response) 65 | err := c.c.Call(ctx, req, out, opts...) 66 | if err != nil { 67 | return nil, err 68 | } 69 | return out, nil 70 | } 71 | 72 | func (c *registerConfigurationService) Stream(ctx context.Context, in *StreamingRequest, opts ...client.CallOption) (RegisterConfiguration_StreamService, error) { 73 | req := c.c.NewRequest(c.name, "RegisterConfiguration.Stream", &StreamingRequest{}) 74 | stream, err := c.c.Stream(ctx, req, opts...) 75 | if err != nil { 76 | return nil, err 77 | } 78 | if err := stream.Send(in); err != nil { 79 | return nil, err 80 | } 81 | return ®isterConfigurationServiceStream{stream}, nil 82 | } 83 | 84 | type RegisterConfiguration_StreamService interface { 85 | Context() context.Context 86 | SendMsg(interface{}) error 87 | RecvMsg(interface{}) error 88 | Close() error 89 | Recv() (*StreamingResponse, error) 90 | } 91 | 92 | type registerConfigurationServiceStream struct { 93 | stream client.Stream 94 | } 95 | 96 | func (x *registerConfigurationServiceStream) Close() error { 97 | return x.stream.Close() 98 | } 99 | 100 | func (x *registerConfigurationServiceStream) Context() context.Context { 101 | return x.stream.Context() 102 | } 103 | 104 | func (x *registerConfigurationServiceStream) SendMsg(m interface{}) error { 105 | return x.stream.Send(m) 106 | } 107 | 108 | func (x *registerConfigurationServiceStream) RecvMsg(m interface{}) error { 109 | return x.stream.Recv(m) 110 | } 111 | 112 | func (x *registerConfigurationServiceStream) Recv() (*StreamingResponse, error) { 113 | m := new(StreamingResponse) 114 | err := x.stream.Recv(m) 115 | if err != nil { 116 | return nil, err 117 | } 118 | return m, nil 119 | } 120 | 121 | func (c *registerConfigurationService) PingPong(ctx context.Context, opts ...client.CallOption) (RegisterConfiguration_PingPongService, error) { 122 | req := c.c.NewRequest(c.name, "RegisterConfiguration.PingPong", &Ping{}) 123 | stream, err := c.c.Stream(ctx, req, opts...) 124 | if err != nil { 125 | return nil, err 126 | } 127 | return ®isterConfigurationServicePingPong{stream}, nil 128 | } 129 | 130 | type RegisterConfiguration_PingPongService interface { 131 | Context() context.Context 132 | SendMsg(interface{}) error 133 | RecvMsg(interface{}) error 134 | Close() error 135 | Send(*Ping) error 136 | Recv() (*Pong, error) 137 | } 138 | 139 | type registerConfigurationServicePingPong struct { 140 | stream client.Stream 141 | } 142 | 143 | func (x *registerConfigurationServicePingPong) Close() error { 144 | return x.stream.Close() 145 | } 146 | 147 | func (x *registerConfigurationServicePingPong) Context() context.Context { 148 | return x.stream.Context() 149 | } 150 | 151 | func (x *registerConfigurationServicePingPong) SendMsg(m interface{}) error { 152 | return x.stream.Send(m) 153 | } 154 | 155 | func (x *registerConfigurationServicePingPong) RecvMsg(m interface{}) error { 156 | return x.stream.Recv(m) 157 | } 158 | 159 | func (x *registerConfigurationServicePingPong) Send(m *Ping) error { 160 | return x.stream.Send(m) 161 | } 162 | 163 | func (x *registerConfigurationServicePingPong) Recv() (*Pong, error) { 164 | m := new(Pong) 165 | err := x.stream.Recv(m) 166 | if err != nil { 167 | return nil, err 168 | } 169 | return m, nil 170 | } 171 | 172 | // Server API for RegisterConfiguration service 173 | 174 | type RegisterConfigurationHandler interface { 175 | Call(context.Context, *Request, *Response) error 176 | Stream(context.Context, *StreamingRequest, RegisterConfiguration_StreamStream) error 177 | PingPong(context.Context, RegisterConfiguration_PingPongStream) error 178 | } 179 | 180 | func RegisterRegisterConfigurationHandler(s server.Server, hdlr RegisterConfigurationHandler, opts ...server.HandlerOption) error { 181 | type registerConfiguration interface { 182 | Call(ctx context.Context, in *Request, out *Response) error 183 | Stream(ctx context.Context, stream server.Stream) error 184 | PingPong(ctx context.Context, stream server.Stream) error 185 | } 186 | type RegisterConfiguration struct { 187 | registerConfiguration 188 | } 189 | h := ®isterConfigurationHandler{hdlr} 190 | return s.Handle(s.NewHandler(&RegisterConfiguration{h}, opts...)) 191 | } 192 | 193 | type registerConfigurationHandler struct { 194 | RegisterConfigurationHandler 195 | } 196 | 197 | func (h *registerConfigurationHandler) Call(ctx context.Context, in *Request, out *Response) error { 198 | return h.RegisterConfigurationHandler.Call(ctx, in, out) 199 | } 200 | 201 | func (h *registerConfigurationHandler) Stream(ctx context.Context, stream server.Stream) error { 202 | m := new(StreamingRequest) 203 | if err := stream.Recv(m); err != nil { 204 | return err 205 | } 206 | return h.RegisterConfigurationHandler.Stream(ctx, m, ®isterConfigurationStreamStream{stream}) 207 | } 208 | 209 | type RegisterConfiguration_StreamStream interface { 210 | Context() context.Context 211 | SendMsg(interface{}) error 212 | RecvMsg(interface{}) error 213 | Close() error 214 | Send(*StreamingResponse) error 215 | } 216 | 217 | type registerConfigurationStreamStream struct { 218 | stream server.Stream 219 | } 220 | 221 | func (x *registerConfigurationStreamStream) Close() error { 222 | return x.stream.Close() 223 | } 224 | 225 | func (x *registerConfigurationStreamStream) Context() context.Context { 226 | return x.stream.Context() 227 | } 228 | 229 | func (x *registerConfigurationStreamStream) SendMsg(m interface{}) error { 230 | return x.stream.Send(m) 231 | } 232 | 233 | func (x *registerConfigurationStreamStream) RecvMsg(m interface{}) error { 234 | return x.stream.Recv(m) 235 | } 236 | 237 | func (x *registerConfigurationStreamStream) Send(m *StreamingResponse) error { 238 | return x.stream.Send(m) 239 | } 240 | 241 | func (h *registerConfigurationHandler) PingPong(ctx context.Context, stream server.Stream) error { 242 | return h.RegisterConfigurationHandler.PingPong(ctx, ®isterConfigurationPingPongStream{stream}) 243 | } 244 | 245 | type RegisterConfiguration_PingPongStream interface { 246 | Context() context.Context 247 | SendMsg(interface{}) error 248 | RecvMsg(interface{}) error 249 | Close() error 250 | Send(*Pong) error 251 | Recv() (*Ping, error) 252 | } 253 | 254 | type registerConfigurationPingPongStream struct { 255 | stream server.Stream 256 | } 257 | 258 | func (x *registerConfigurationPingPongStream) Close() error { 259 | return x.stream.Close() 260 | } 261 | 262 | func (x *registerConfigurationPingPongStream) Context() context.Context { 263 | return x.stream.Context() 264 | } 265 | 266 | func (x *registerConfigurationPingPongStream) SendMsg(m interface{}) error { 267 | return x.stream.Send(m) 268 | } 269 | 270 | func (x *registerConfigurationPingPongStream) RecvMsg(m interface{}) error { 271 | return x.stream.Recv(m) 272 | } 273 | 274 | func (x *registerConfigurationPingPongStream) Send(m *Pong) error { 275 | return x.stream.Send(m) 276 | } 277 | 278 | func (x *registerConfigurationPingPongStream) Recv() (*Ping, error) { 279 | m := new(Ping) 280 | if err := x.stream.Recv(m); err != nil { 281 | return nil, err 282 | } 283 | return m, nil 284 | } 285 | -------------------------------------------------------------------------------- /registerConfiguration/proto/registerConfiguration.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package registerConfiguration; 4 | 5 | option go_package = "proto;registerConfiguration"; 6 | 7 | service RegisterConfiguration { 8 | rpc Call(Request) returns (Response) {} 9 | rpc Stream(StreamingRequest) returns (stream StreamingResponse) {} 10 | rpc PingPong(stream Ping) returns (stream Pong) {} 11 | } 12 | 13 | message Message { 14 | string say = 1; 15 | } 16 | 17 | message Request { 18 | string name = 1; 19 | } 20 | 21 | message Response { 22 | string msg = 1; 23 | } 24 | 25 | message StreamingRequest { 26 | int64 count = 1; 27 | } 28 | 29 | message StreamingResponse { 30 | int64 count = 1; 31 | } 32 | 33 | message Ping { 34 | int64 stroke = 1; 35 | } 36 | 37 | message Pong { 38 | int64 stroke = 1; 39 | } 40 | --------------------------------------------------------------------------------