├── docs ├── etcd.png ├── consul.png ├── components.png ├── automanaged.png └── components.csv ├── remote ├── messages │ ├── protos.proto │ ├── README.md │ └── protos.pb.go ├── remote-pong │ └── main.go ├── remote-ping-request │ └── main.go ├── remote-ping-send │ └── main.go └── remote-ping-future │ └── main.go ├── cluster-etcd ├── README.md ├── etcd │ └── Dockerfile ├── cluster-pong │ └── main.go └── cluster-ping-future │ └── main.go ├── docker-compose.yml ├── cluster-automanaged ├── README.md ├── cluster-pong │ └── main.go ├── cluster-ping-future │ └── main.go ├── cluster-ping-grpc │ └── main.go └── cluster-pong-grpc │ └── main.go ├── cluster └── messages │ ├── protos.proto │ ├── README.md │ ├── protos_protoactor.go │ └── protos.pb.go ├── cluster-consul ├── consul │ └── Dockerfile ├── README.md ├── cluster-pong │ └── main.go ├── cluster-ping-request │ └── main.go ├── cluster-ping-grpc │ └── main.go ├── cluster-ping-future │ └── main.go ├── cluster-ping-send │ └── main.go └── cluster-pong-grpc │ └── main.go ├── local-request └── main.go ├── local-send └── main.go ├── local-future └── main.go ├── go.mod ├── README.md └── go.sum /docs/etcd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oklahomer/protoactor-go-sender-example/HEAD/docs/etcd.png -------------------------------------------------------------------------------- /docs/consul.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oklahomer/protoactor-go-sender-example/HEAD/docs/consul.png -------------------------------------------------------------------------------- /docs/components.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oklahomer/protoactor-go-sender-example/HEAD/docs/components.png -------------------------------------------------------------------------------- /docs/automanaged.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oklahomer/protoactor-go-sender-example/HEAD/docs/automanaged.png -------------------------------------------------------------------------------- /remote/messages/protos.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package messages; 3 | option go_package = "protoactor-go-sender-example/remote/messages"; 4 | 5 | message Ping { 6 | uint64 cnt = 1; 7 | } 8 | 9 | message Pong { 10 | uint64 cnt = 1; 11 | } 12 | 13 | -------------------------------------------------------------------------------- /cluster-etcd/README.md: -------------------------------------------------------------------------------- 1 | # Setup 2 | 3 | ![](https://raw.githubusercontent.com/oklahomer/protoactor-go-sender-example/main/docs/etcd.png) 4 | 5 | ``` 6 | docker build --rm -t protoactor-go-sample-etcd:latest consul 7 | docker run -p 2379:2379 protoactor-go-sample-etcd 8 | ``` 9 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | services: 3 | etcd: 4 | build: 5 | context: ./cluster-etcd/etcd 6 | dockerfile: Dockerfile 7 | ports: 8 | - "2379:2379" 9 | consul: 10 | build: 11 | context: ./cluster-consul/consul 12 | dockerfile: Dockerfile 13 | ports: 14 | - "8500:8500" 15 | -------------------------------------------------------------------------------- /cluster-automanaged/README.md: -------------------------------------------------------------------------------- 1 | # AutoManaged Cluster Provider 2 | 3 | This is the simplest implementation of Cluster Provider. 4 | Unlike that of consul or etcd implementation, this does not require any additional dependincy for membership management. 5 | 6 | ![](https://raw.githubusercontent.com/oklahomer/protoactor-go-sender-example/main/docs/automanaged.png) -------------------------------------------------------------------------------- /remote/messages/README.md: -------------------------------------------------------------------------------- 1 | Install `protoc` command. 2 | ``` 3 | $ brew install protobuf 4 | ``` 5 | 6 | Install `protoc-gen-go`. 7 | ``` 8 | $ go install github.com/golang/protobuf/protoc-gen-go@v1.5.2 9 | ``` 10 | 11 | Generate the Go code from the IDL. 12 | ``` 13 | $ protoc --go_out=. --go_opt=paths=source_relative --proto_path=. protos.proto 14 | ``` -------------------------------------------------------------------------------- /cluster/messages/protos.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package messages; 3 | option go_package = "protoactor-go-sender-example/cluster/messages"; 4 | 5 | message PingMessage { 6 | uint64 cnt = 1; 7 | } 8 | 9 | message PongMessage { 10 | uint64 cnt = 1; 11 | } 12 | 13 | service Ponger { 14 | rpc Ping(PingMessage) returns (PongMessage) {} 15 | } 16 | -------------------------------------------------------------------------------- /cluster/messages/README.md: -------------------------------------------------------------------------------- 1 | Install `protoc` command. 2 | ``` 3 | $ brew install protobuf 4 | ``` 5 | 6 | Install `protoc-gen-gograinv2`. 7 | ``` 8 | $ go install github.com/asynkron/protoactor-go/protobuf/protoc-gen-gograinv2 9 | ``` 10 | 11 | Generate the Go code from the IDL. 12 | ``` 13 | # For remoting 14 | $ protoc --go_out=. --go_opt=paths=source_relative protos.proto 15 | 16 | # For Cluster grain 17 | $ protoc --gograinv2_out=paths=source_relative:. protos.proto 18 | ``` 19 | -------------------------------------------------------------------------------- /cluster-consul/consul/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:latest 2 | 3 | ENV CONSUL_VERSION 1.5.3 4 | ENV HASHICORP_RELEASES=https://releases.hashicorp.com 5 | 6 | # Setup 7 | RUN apk add --update ca-certificates 8 | RUN apk add curl 9 | 10 | # Install consul 11 | RUN wget https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip 12 | RUN unzip consul_${CONSUL_VERSION}_linux_amd64.zip -d /bin/ 13 | 14 | EXPOSE 8500 15 | 16 | CMD ["/bin/consul", "agent", "-server", "-dev", "-bootstrap", "-client", "0.0.0.0"] 17 | -------------------------------------------------------------------------------- /cluster-consul/README.md: -------------------------------------------------------------------------------- 1 | # Setup 2 | 3 | ![](https://raw.githubusercontent.com/oklahomer/protoactor-go-sender-example/main/docs/consul.png) 4 | 5 | For the latest version of Protoactor-go, specify [gograinv2_out](https://github.com/asynkron/protoactor-go/blob/dev/protobuf/protoc-gen-gograinv2/Makefile) instead of `gograin_out` to generate files. 6 | ``` 7 | protoc --gograinv2_out=. ./messages/protos.proto 8 | protoc --gogoslick_out=. ./messages/protos.proto 9 | 10 | docker build --rm -t protoactor-go-sample:latest consul 11 | docker run -p 8500:8500 protoactor-go-sample 12 | ``` 13 | -------------------------------------------------------------------------------- /cluster-etcd/etcd/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:latest 2 | 3 | ENV ETCD_VERSION v3.2.32 4 | 5 | # Install etcd 6 | RUN wget https://github.com/etcd-io/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz && \ 7 | tar -xzvf etcd-${ETCD_VERSION}-linux-amd64.tar.gz -C /usr/local/bin && \ 8 | ln -s /usr/local/bin/etcd-${ETCD_VERSION}-linux-amd64/etcd /usr/local/bin/ 9 | 10 | EXPOSE 2379 11 | 12 | CMD ["/usr/local/bin/etcd", \ 13 | "--name", "node1", \ 14 | "--data-dir", "/etcd-data", \ 15 | "--listen-client-urls", "http://0.0.0.0:2379", \ 16 | "--listen-peer-urls", "http://0.0.0.0:2380", \ 17 | "--advertise-client-urls", "http://127.0.0.1:2379", \ 18 | "--initial-advertise-peer-urls", "http://127.0.0.1:2380", \ 19 | "--initial-cluster", "node1=http://127.0.0.1:2380", \ 20 | "--auto-compaction-retention", "1"] -------------------------------------------------------------------------------- /remote/remote-pong/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/remote" 6 | "log" 7 | "os" 8 | "os/signal" 9 | "protoactor-go-sender-example/remote/messages" 10 | ) 11 | 12 | func main() { 13 | // Set up the actor system 14 | system := actor.NewActorSystem() 15 | 16 | // Set up a remote env that listens to 8080 17 | config := remote.Configure("127.0.0.1", 8080) 18 | remoter := remote.NewRemote(system, config) 19 | remoter.Start() 20 | defer remoter.Shutdown(false) 21 | 22 | // Run pong actor that receives ping payload, and then send back pong payload 23 | pongProps := actor.PropsFromFunc(func(ctx actor.Context) { 24 | switch msg := ctx.Message().(type) { 25 | case *messages.Ping: 26 | pong := &messages.Pong{Cnt: msg.Cnt} 27 | log.Print("Received ping message") 28 | ctx.Respond(pong) 29 | 30 | default: 31 | 32 | } 33 | }) 34 | pongPid, err := system.Root.SpawnNamed(pongProps, "pongActorID") 35 | if err != nil { 36 | log.Fatalf("Failed to spawn actor: %s.", err.Error()) 37 | } 38 | log.Printf("Actor is running. Address: %s. ID: %s.", pongPid.Address, pongPid.Id) 39 | 40 | // Run till a signal comes 41 | finish := make(chan os.Signal, 1) 42 | signal.Notify(finish, os.Interrupt, os.Kill) 43 | <-finish 44 | } 45 | -------------------------------------------------------------------------------- /cluster-consul/cluster-pong/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/cluster" 6 | "github.com/asynkron/protoactor-go/cluster/clusterproviders/consul" 7 | "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash" 8 | "github.com/asynkron/protoactor-go/remote" 9 | "log" 10 | "os" 11 | "os/signal" 12 | "protoactor-go-sender-example/cluster/messages" 13 | ) 14 | 15 | type ponger struct { 16 | } 17 | 18 | func (*ponger) Receive(ctx actor.Context) { 19 | switch msg := ctx.Message().(type) { 20 | case *messages.PingMessage: 21 | pong := &messages.PongMessage{Cnt: msg.Cnt} 22 | log.Print("Received ping message") 23 | ctx.Respond(pong) 24 | 25 | default: 26 | 27 | } 28 | } 29 | 30 | func main() { 31 | // Set up actor system 32 | system := actor.NewActorSystem() 33 | 34 | // Prepare a remote env that listens to 8080 35 | config := remote.Configure("127.0.0.1", 8080) 36 | 37 | // Configure a cluster on top of the above remote env 38 | cp, err := consul.New() 39 | if err != nil { 40 | log.Fatal(err) 41 | } 42 | lookup := disthash.New() 43 | clusterKind := cluster.NewKind( 44 | "Ponger", 45 | actor.PropsFromProducer(func() actor.Actor { 46 | return &ponger{} 47 | })) 48 | clusterConfig := cluster.Configure("cluster-example", cp, lookup, config, cluster.WithKinds(clusterKind)) 49 | c := cluster.New(system, clusterConfig) 50 | 51 | // Manage the cluster node's lifecycle 52 | c.StartMember() 53 | defer c.Shutdown(false) 54 | 55 | // Run till a signal comes 56 | finish := make(chan os.Signal, 1) 57 | signal.Notify(finish, os.Interrupt, os.Kill) 58 | <-finish 59 | } 60 | -------------------------------------------------------------------------------- /cluster-automanaged/cluster-pong/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/cluster" 6 | "github.com/asynkron/protoactor-go/cluster/clusterproviders/automanaged" 7 | "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash" 8 | "github.com/asynkron/protoactor-go/remote" 9 | "log" 10 | "os" 11 | "os/signal" 12 | "protoactor-go-sender-example/cluster/messages" 13 | "time" 14 | ) 15 | 16 | type ponger struct { 17 | } 18 | 19 | func (*ponger) Receive(ctx actor.Context) { 20 | switch msg := ctx.Message().(type) { 21 | case *messages.PingMessage: 22 | pong := &messages.PongMessage{Cnt: msg.Cnt} 23 | log.Print("Received ping message") 24 | ctx.Respond(pong) 25 | 26 | default: 27 | 28 | } 29 | } 30 | 31 | func main() { 32 | // Set up the actor system 33 | system := actor.NewActorSystem() 34 | 35 | // Prepare a remote env that listens to 8080 36 | config := remote.Configure("127.0.0.1", 8080) 37 | 38 | // Configure a cluster on top of the above remote env 39 | provider := automanaged.NewWithConfig(1*time.Second, 6331, "localhost:6331") 40 | lookup := disthash.New() 41 | clusterKind := cluster.NewKind( 42 | "Ponger", 43 | actor.PropsFromProducer(func() actor.Actor { 44 | return &ponger{} 45 | })) 46 | clusterConfig := cluster.Configure("cluster-example", provider, lookup, config, cluster.WithKinds(clusterKind)) 47 | c := cluster.New(system, clusterConfig) 48 | 49 | // Manage the cluster node's lifecycle 50 | c.StartMember() 51 | defer c.Shutdown(false) 52 | 53 | // Run till a signal comes 54 | finish := make(chan os.Signal, 1) 55 | signal.Notify(finish, os.Interrupt, os.Kill) 56 | <-finish 57 | } 58 | -------------------------------------------------------------------------------- /cluster-etcd/cluster-pong/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/cluster" 6 | "github.com/asynkron/protoactor-go/cluster/clusterproviders/etcd" 7 | "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash" 8 | "github.com/asynkron/protoactor-go/remote" 9 | clientv3 "go.etcd.io/etcd/client/v3" 10 | "log" 11 | "os" 12 | "os/signal" 13 | "protoactor-go-sender-example/cluster/messages" 14 | "time" 15 | ) 16 | 17 | type ponger struct { 18 | } 19 | 20 | func (*ponger) Receive(ctx actor.Context) { 21 | switch msg := ctx.Message().(type) { 22 | case *messages.PingMessage: 23 | pong := &messages.PongMessage{Cnt: msg.Cnt} 24 | log.Print("Received ping message") 25 | ctx.Respond(pong) 26 | 27 | default: 28 | 29 | } 30 | } 31 | 32 | func main() { 33 | // Set up actor system 34 | system := actor.NewActorSystem() 35 | 36 | // Prepare a remote env that listens to 8080 37 | remoteConfig := remote.Configure("127.0.0.1", 8080) 38 | 39 | // Configure a cluster on top of the above remote env 40 | clusterKind := cluster.NewKind( 41 | "Ponger", 42 | actor.PropsFromProducer(func() actor.Actor { 43 | return &ponger{} 44 | })) 45 | // Configure cluster on top of the above remote env 46 | cp, err := etcd.NewWithConfig("/protoactor", clientv3.Config{ 47 | Endpoints: []string{"127.0.0.1:2379"}, 48 | DialTimeout: time.Second * 5, 49 | }) 50 | if err != nil { 51 | panic(err) 52 | } 53 | lookup := disthash.New() 54 | clusterConfig := cluster.Configure("cluster-example", cp, lookup, remoteConfig, cluster.WithKinds(clusterKind)) 55 | c := cluster.New(system, clusterConfig) 56 | 57 | // Manage the cluster node's lifecycle 58 | c.StartMember() 59 | defer c.Shutdown(false) 60 | 61 | // Run till a signal comes 62 | finish := make(chan os.Signal, 1) 63 | signal.Notify(finish, os.Interrupt, os.Kill) 64 | <-finish 65 | } 66 | -------------------------------------------------------------------------------- /local-request/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "log" 6 | "os" 7 | "os/signal" 8 | "time" 9 | ) 10 | 11 | type pong struct { 12 | } 13 | 14 | type ping struct { 15 | } 16 | 17 | type pingActor struct { 18 | pongPid *actor.PID 19 | } 20 | 21 | func (p *pingActor) Receive(ctx actor.Context) { 22 | switch ctx.Message().(type) { 23 | case struct{}: 24 | // ctx.Send() do not set the sender information and hence the recipient can not respond to the sender; 25 | // ctx.Request() sets the sender information so the receiving actor can refer to the sender's PID and respond. 26 | ctx.Request(p.pongPid, &ping{}) 27 | 28 | case *pong: 29 | log.Print("Received pong message") 30 | 31 | } 32 | } 33 | 34 | func main() { 35 | // Set up the actor system 36 | system := actor.NewActorSystem() 37 | 38 | // Run a pong actor that receives a ping payload and sends back a pong payload 39 | pongProps := actor.PropsFromFunc(func(ctx actor.Context) { 40 | switch ctx.Message().(type) { 41 | case *ping: 42 | log.Print("Received ping message") 43 | ctx.Respond(&pong{}) 44 | 45 | default: 46 | 47 | } 48 | }) 49 | pongPid := system.Root.Spawn(pongProps) 50 | 51 | // Run a ping actor that receives an arbitrary payload from outside the actor system, and then sends a ping payload to the pong actor 52 | pingProps := actor.PropsFromProducer(func() actor.Actor { 53 | return &pingActor{ 54 | pongPid: pongPid, 55 | } 56 | }) 57 | pingPid := system.Root.Spawn(pingProps) 58 | 59 | // Subscribe to a signal to finish the interaction 60 | finish := make(chan os.Signal, 1) 61 | signal.Notify(finish, os.Interrupt, os.Kill) 62 | 63 | // Periodically send a ping payload till a signal comes 64 | ticker := time.NewTicker(1 * time.Second) 65 | defer ticker.Stop() 66 | for { 67 | select { 68 | case <-ticker.C: 69 | system.Root.Send(pingPid, struct{}{}) 70 | 71 | case <-finish: 72 | log.Print("Finish") 73 | return 74 | 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /remote/remote-ping-request/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/remote" 6 | "log" 7 | "os" 8 | "os/signal" 9 | "protoactor-go-sender-example/remote/messages" 10 | "time" 11 | ) 12 | 13 | var cnt uint64 = 0 14 | 15 | type pingActor struct { 16 | cnt uint 17 | pongPid *actor.PID 18 | } 19 | 20 | func (p *pingActor) Receive(ctx actor.Context) { 21 | switch ctx.Message().(type) { 22 | case struct{}: 23 | cnt += 1 24 | ping := &messages.Ping{ 25 | Cnt: cnt, 26 | } 27 | 28 | ctx.Request(p.pongPid, ping) 29 | 30 | case *messages.Pong: 31 | log.Print("Received pong message") 32 | 33 | } 34 | } 35 | 36 | func main() { 37 | // Set up actor system 38 | system := actor.NewActorSystem() 39 | 40 | // Set up a remote env that listens to a randomly chosen port. 41 | // To specify a port number, pass a desired port number as a second argument of remote.Configure instead of 0. 42 | // Note that a ponger implementation at ../remote-pong/main.go specifies its actor system's port as 8080 so the pinger can refer to it. 43 | config := remote.Configure("127.0.0.1", 0) 44 | remoting := remote.NewRemote(system, config) 45 | remoting.Start() 46 | 47 | // Declare the remote pong actor's address, and let the ping actor send a ping payload to it 48 | remotePong := actor.NewPID("127.0.0.1:8080", "pongActorID") 49 | pingProps := actor.PropsFromProducer(func() actor.Actor { 50 | return &pingActor{ 51 | pongPid: remotePong, 52 | } 53 | }) 54 | pingPid := system.Root.Spawn(pingProps) 55 | 56 | // Subscribe to a signal to finish the interaction 57 | finish := make(chan os.Signal, 1) 58 | signal.Notify(finish, os.Interrupt, os.Kill) 59 | 60 | // Periodically send a ping payload till signal comes 61 | ticker := time.NewTicker(1 * time.Second) 62 | defer ticker.Stop() 63 | for { 64 | select { 65 | case <-ticker.C: 66 | system.Root.Send(pingPid, struct{}{}) 67 | 68 | case <-finish: 69 | log.Print("Finish") 70 | return 71 | 72 | } 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /local-send/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "log" 6 | "os" 7 | "os/signal" 8 | "time" 9 | ) 10 | 11 | type pong struct { 12 | } 13 | 14 | type ping struct { 15 | } 16 | 17 | type pingActor struct { 18 | pongPid *actor.PID 19 | } 20 | 21 | func (p *pingActor) Receive(ctx actor.Context) { 22 | switch ctx.Message().(type) { 23 | case struct{}: 24 | // Below do not set ctx.Self() as a sender, and hence the recipient has no knowledge of the sender actor 25 | // even though the message is sent from one actor to another. 26 | // Use ctx.Request() or ctx.RequestFuture() when expecting a response. 27 | ctx.Send(p.pongPid, &ping{}) 28 | 29 | case *pong: 30 | // Never comes here. 31 | // When the pong actor tries to respond, the sender is not set. 32 | log.Print("Received pong message") 33 | 34 | } 35 | } 36 | 37 | func main() { 38 | // Set up actor system 39 | system := actor.NewActorSystem() 40 | 41 | // Run a pong actor that receives a ping payload and sends back a pong payload 42 | pongProps := actor.PropsFromFunc(func(ctx actor.Context) { 43 | switch ctx.Message().(type) { 44 | case *ping: 45 | log.Print("Received ping message") 46 | 47 | // This call fails and ends up with a dead letter because the sender did not set the sender information. 48 | ctx.Respond(&pong{}) 49 | 50 | default: 51 | 52 | } 53 | }) 54 | pongPid := system.Root.Spawn(pongProps) 55 | 56 | // Run a ping actor that receives an arbitrary payload from outside the actor system, and then sends a ping payload to the pong actor 57 | pingProps := actor.PropsFromProducer(func() actor.Actor { 58 | return &pingActor{ 59 | pongPid: pongPid, 60 | } 61 | }) 62 | pingPid := system.Root.Spawn(pingProps) 63 | 64 | // Subscribe to a signal to finish the interaction 65 | finish := make(chan os.Signal, 1) 66 | signal.Notify(finish, os.Interrupt, os.Kill) 67 | 68 | // Periodically send a ping payload till a signal comes 69 | ticker := time.NewTicker(1 * time.Second) 70 | defer ticker.Stop() 71 | for { 72 | select { 73 | case <-ticker.C: 74 | system.Root.Send(pingPid, struct{}{}) 75 | 76 | case <-finish: 77 | log.Print("Finish") 78 | return 79 | 80 | } 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /remote/remote-ping-send/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/remote" 6 | "log" 7 | "os" 8 | "os/signal" 9 | "protoactor-go-sender-example/remote/messages" 10 | "time" 11 | ) 12 | 13 | var cnt uint64 = 0 14 | 15 | type pingActor struct { 16 | cnt uint 17 | pongPid *actor.PID 18 | } 19 | 20 | func (p *pingActor) Receive(ctx actor.Context) { 21 | switch ctx.Message().(type) { 22 | case struct{}: 23 | cnt += 1 24 | ping := &messages.Ping{ 25 | Cnt: cnt, 26 | } 27 | 28 | // Below do not set ctx.Self() as the sender, and hence the recipient has no knowledge of the sender 29 | // even though the message is sent from one actor to another. 30 | ctx.Send(p.pongPid, ping) 31 | 32 | case *messages.Pong: 33 | // Never comes here. 34 | // The recipient can not refer to the sender. 35 | log.Print("Received pong message") 36 | 37 | } 38 | } 39 | 40 | func main() { 41 | // Set up actor system 42 | system := actor.NewActorSystem() 43 | 44 | // Set up a remote env that listens to a randomly chosen port. 45 | // To specify a port number, pass a desired port number as a second argument of remote.Configure instead of 0. 46 | // Note that a ponger implementation at ../remote-pong/main.go specifies its actor system's port as 8080 so the pinger can refer to it. 47 | config := remote.Configure("127.0.0.1", 0) 48 | remoting := remote.NewRemote(system, config) 49 | remoting.Start() 50 | 51 | // Declare the remote pong actor's address, and let the ping actor send a ping payload to it 52 | remotePong := actor.NewPID("127.0.0.1:8080", "pongActorID") 53 | pingProps := actor.PropsFromProducer(func() actor.Actor { 54 | return &pingActor{ 55 | pongPid: remotePong, 56 | } 57 | }) 58 | pingPid := system.Root.Spawn(pingProps) 59 | 60 | // Subscribe to a signal to finish the interaction 61 | finish := make(chan os.Signal, 1) 62 | signal.Notify(finish, os.Interrupt, os.Kill) 63 | 64 | // Periodically send a ping payload till signal comes 65 | ticker := time.NewTicker(1 * time.Second) 66 | defer ticker.Stop() 67 | for { 68 | select { 69 | case <-ticker.C: 70 | system.Root.Send(pingPid, struct{}{}) 71 | 72 | case <-finish: 73 | log.Print("Finish") 74 | remoting.Shutdown(false) 75 | return 76 | 77 | } 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /cluster-consul/cluster-ping-request/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/cluster" 6 | "github.com/asynkron/protoactor-go/cluster/clusterproviders/consul" 7 | "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash" 8 | "github.com/asynkron/protoactor-go/remote" 9 | "log" 10 | "os" 11 | "os/signal" 12 | "protoactor-go-sender-example/cluster/messages" 13 | "time" 14 | ) 15 | 16 | var cnt uint64 = 0 17 | 18 | type pingActor struct { 19 | system *actor.ActorSystem 20 | cnt uint 21 | } 22 | 23 | func (p *pingActor) Receive(ctx actor.Context) { 24 | switch ctx.Message().(type) { 25 | case struct{}: 26 | cnt += 1 27 | ping := &messages.PingMessage{ 28 | Cnt: cnt, 29 | } 30 | 31 | grainPid := cluster.GetCluster(p.system).Get("ponger-1", "Ponger") 32 | ctx.Request(grainPid, ping) 33 | 34 | case *messages.PongMessage: 35 | log.Print("Received pong message") 36 | 37 | } 38 | } 39 | 40 | func main() { 41 | // Set up actor system 42 | system := actor.NewActorSystem() 43 | 44 | // Prepare a remote env that listens to 8081 45 | remoteConfig := remote.Configure("127.0.0.1", 8081) 46 | 47 | // Configure a cluster on top of the above remote env 48 | cp, err := consul.New() 49 | if err != nil { 50 | log.Fatal(err) 51 | } 52 | lookup := disthash.New() 53 | clusterConfig := cluster.Configure("cluster-example", cp, lookup, remoteConfig) 54 | c := cluster.New(system, clusterConfig) 55 | 56 | // Manage the cluster client's lifecycle 57 | c.StartClient() // Configure as a client 58 | defer c.Shutdown(false) 59 | 60 | // Start a ping actor that periodically sends a "ping" payload to the "Ponger" cluster grain 61 | pingProps := actor.PropsFromProducer(func() actor.Actor { 62 | return &pingActor{ 63 | system: system, 64 | } 65 | }) 66 | pingPid := system.Root.Spawn(pingProps) 67 | 68 | // Subscribe to a signal to finish the interaction 69 | finish := make(chan os.Signal, 1) 70 | signal.Notify(finish, os.Interrupt, os.Kill) 71 | 72 | // Periodically send a ping payload till a signal comes 73 | ticker := time.NewTicker(1 * time.Second) 74 | defer ticker.Stop() 75 | for { 76 | select { 77 | case <-ticker.C: 78 | system.Root.Send(pingPid, struct{}{}) 79 | 80 | case <-finish: 81 | log.Print("Finish") 82 | return 83 | 84 | } 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /local-future/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "log" 6 | "os" 7 | "os/signal" 8 | "time" 9 | ) 10 | 11 | type pong struct { 12 | } 13 | 14 | type ping struct { 15 | } 16 | 17 | type pingActor struct { 18 | pongPid *actor.PID 19 | } 20 | 21 | func (p *pingActor) Receive(ctx actor.Context) { 22 | switch ctx.Message().(type) { 23 | case struct{}: 24 | // Unlike ctx.Request(), this sends a request and waits for a response, 25 | // expecting the receiving actor to respond with ctx.Respond(). 26 | // The call to ctx.RequestFuture() itself is not blocking because its returning value is Future. 27 | // However, Future.Result() blocks until the receiving actor responds 28 | // or the timeout interval specified by the call to ctx.RequestFuture() passes. 29 | future := ctx.RequestFuture(p.pongPid, &ping{}, time.Second) 30 | result, err := future.Result() 31 | if err != nil { 32 | log.Print(err.Error()) 33 | return 34 | } 35 | log.Printf("Received %#v", result) 36 | 37 | case *pong: 38 | // Never comes here. 39 | // When the pong actor responds to the sender, 40 | // the sender is not a ping actor but a future process. 41 | log.Print("Received pong message") 42 | 43 | } 44 | } 45 | 46 | func main() { 47 | // Set up the actor system 48 | system := actor.NewActorSystem() 49 | 50 | // Run a pong actor that receives a ping payload and sends back a pong payload 51 | pongProps := actor.PropsFromFunc(func(ctx actor.Context) { 52 | switch ctx.Message().(type) { 53 | case *ping: 54 | log.Print("Received ping message") 55 | ctx.Respond(&pong{}) 56 | 57 | default: 58 | 59 | } 60 | }) 61 | pongPid := system.Root.Spawn(pongProps) 62 | 63 | // Run a ping actor that receives an arbitrary payload from outside the actor system, and then sends a ping payload to the pong actor 64 | pingProps := actor.PropsFromProducer(func() actor.Actor { 65 | return &pingActor{ 66 | pongPid: pongPid, 67 | } 68 | }) 69 | pingPid := system.Root.Spawn(pingProps) 70 | 71 | // Subscribe to a signal to finish the interaction 72 | finish := make(chan os.Signal, 1) 73 | signal.Notify(finish, os.Interrupt, os.Kill) 74 | 75 | // Periodically send a ping payload till a signal comes 76 | ticker := time.NewTicker(1 * time.Second) 77 | defer ticker.Stop() 78 | for { 79 | select { 80 | case <-ticker.C: 81 | system.Root.Send(pingPid, struct{}{}) 82 | 83 | case <-finish: 84 | log.Print("Finish") 85 | return 86 | 87 | } 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /remote/remote-ping-future/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/remote" 6 | "log" 7 | "os" 8 | "os/signal" 9 | "protoactor-go-sender-example/remote/messages" 10 | "time" 11 | ) 12 | 13 | var cnt uint64 = 0 14 | 15 | type pingActor struct { 16 | cnt uint 17 | pongPid *actor.PID 18 | } 19 | 20 | func (p *pingActor) Receive(ctx actor.Context) { 21 | switch ctx.Message().(type) { 22 | case struct{}: 23 | cnt += 1 24 | ping := &messages.Ping{ 25 | Cnt: cnt, 26 | } 27 | 28 | // Besides the fact that a payload is serialized and is sent to a remove environment, 29 | // the usage of ctx.RequestFuture is still the same as that of local messaging. 30 | future := ctx.RequestFuture(p.pongPid, ping, time.Second) 31 | result, err := future.Result() 32 | if err != nil { 33 | log.Print(err.Error()) 34 | return 35 | } 36 | log.Printf("Received %v", result) 37 | 38 | case *messages.Pong: 39 | // Never comes here. 40 | // When the pong actor responds to the sender, 41 | // the sender is not a ping actor but a future process. 42 | log.Print("Received pong message") 43 | 44 | } 45 | } 46 | 47 | func main() { 48 | // Set up the actor system 49 | system := actor.NewActorSystem() 50 | 51 | // Set up a remote env that listens to a randomly chosen port. 52 | // To specify a port number, pass a desired port number as a second argument of remote.Configure instead of 0. 53 | // Note that a ponger implementation at ../remote-pong/main.go specifies its actor system's port as 8080 so the pinger can refer to it. 54 | config := remote.Configure("127.0.0.1", 0) 55 | remoter := remote.NewRemote(system, config) 56 | remoter.Start() 57 | defer remoter.Shutdown(false) 58 | 59 | // Declare the remote pong actor's address, and let the ping actor send a ping payload to it 60 | remotePong := actor.NewPID("127.0.0.1:8080", "pongActorID") 61 | pingProps := actor.PropsFromProducer(func() actor.Actor { 62 | return &pingActor{ 63 | pongPid: remotePong, 64 | } 65 | }) 66 | pingPid := system.Root.Spawn(pingProps) 67 | 68 | // Subscribe to a signal to finish the interaction 69 | finish := make(chan os.Signal, 1) 70 | signal.Notify(finish, os.Interrupt, os.Kill) 71 | 72 | // Periodically send a ping payload till signal comes 73 | ticker := time.NewTicker(1 * time.Second) 74 | defer ticker.Stop() 75 | for { 76 | select { 77 | case <-ticker.C: 78 | system.Root.Send(pingPid, struct{}{}) 79 | 80 | case <-finish: 81 | log.Print("Finish") 82 | return 83 | 84 | } 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /cluster-consul/cluster-ping-grpc/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/cluster" 6 | "github.com/asynkron/protoactor-go/cluster/clusterproviders/consul" 7 | "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash" 8 | "github.com/asynkron/protoactor-go/remote" 9 | "log" 10 | "os" 11 | "os/signal" 12 | "protoactor-go-sender-example/cluster/messages" 13 | "time" 14 | ) 15 | 16 | var cnt uint64 = 0 17 | 18 | type pingActor struct { 19 | system *actor.ActorSystem 20 | cnt uint 21 | } 22 | 23 | func (p *pingActor) Receive(ctx actor.Context) { 24 | switch ctx.Message().(type) { 25 | case struct{}: 26 | cnt += 1 27 | ping := &messages.PingMessage{ 28 | Cnt: cnt, 29 | } 30 | 31 | client := messages.GetPongerGrainClient(cluster.GetCluster(p.system), "ponger-1") 32 | pong, err := client.Ping(ping, cluster.WithTimeout(time.Second), cluster.WithRetry(5)) 33 | if err != nil { 34 | log.Print(err.Error()) 35 | return 36 | } 37 | log.Printf("Received %v", pong) 38 | 39 | case *messages.PongMessage: 40 | // Never comes here. 41 | // When the pong grain responds to the sender's gRPC call, 42 | // the sender is not a ping actor but a future process. 43 | log.Print("Received pong message") 44 | 45 | } 46 | } 47 | 48 | func main() { 49 | // Set up actor system 50 | system := actor.NewActorSystem() 51 | 52 | // Prepare remote env that listens to 8081 53 | remoteConfig := remote.Configure("127.0.0.1", 8081) 54 | 55 | // Configure cluster on top of the above remote env 56 | cp, err := consul.New() 57 | if err != nil { 58 | log.Fatal(err) 59 | } 60 | lookup := disthash.New() 61 | clusterConfig := cluster.Configure("cluster-example", cp, lookup, remoteConfig) 62 | c := cluster.New(system, clusterConfig) 63 | 64 | // Manage the cluster client's lifecycle 65 | c.StartClient() // Configure as a client 66 | defer c.Shutdown(false) 67 | 68 | // Start a ping actor that periodically send a "ping" payload to the "Ponger" cluster grain 69 | pingProps := actor.PropsFromProducer(func() actor.Actor { 70 | return &pingActor{ 71 | system: system, 72 | } 73 | }) 74 | pingPid := system.Root.Spawn(pingProps) 75 | 76 | // Subscribe to a signal to finish the interaction 77 | finish := make(chan os.Signal, 1) 78 | signal.Notify(finish, os.Interrupt, os.Kill) 79 | 80 | // Periodically send a ping payload till a signal comes 81 | ticker := time.NewTicker(1 * time.Second) 82 | defer ticker.Stop() 83 | for { 84 | select { 85 | case <-ticker.C: 86 | system.Root.Send(pingPid, struct{}{}) 87 | 88 | case <-finish: 89 | log.Print("Finish") 90 | return 91 | 92 | } 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /cluster-automanaged/cluster-ping-future/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/cluster" 6 | "github.com/asynkron/protoactor-go/cluster/clusterproviders/automanaged" 7 | "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash" 8 | "github.com/asynkron/protoactor-go/remote" 9 | "log" 10 | "os" 11 | "os/signal" 12 | "protoactor-go-sender-example/cluster/messages" 13 | "time" 14 | ) 15 | 16 | var cnt uint64 = 0 17 | 18 | type pingActor struct { 19 | system *actor.ActorSystem 20 | cnt uint 21 | } 22 | 23 | func (p *pingActor) Receive(ctx actor.Context) { 24 | switch ctx.Message().(type) { 25 | case struct{}: 26 | cnt += 1 27 | ping := &messages.PingMessage{ 28 | Cnt: cnt, 29 | } 30 | 31 | grainPid := cluster.GetCluster(p.system).Get("ponger-1", "Ponger") 32 | future := ctx.RequestFuture(grainPid, ping, time.Second) 33 | result, err := future.Result() 34 | if err != nil { 35 | log.Print(err.Error()) 36 | return 37 | } 38 | log.Printf("Received %v", result) 39 | 40 | case *messages.PongMessage: 41 | // Never comes here. 42 | // When the pong actor responds to the sender, 43 | // the sender is not a ping actor but a future process. 44 | log.Print("Received pong message") 45 | 46 | } 47 | } 48 | 49 | func main() { 50 | // Set up actor system 51 | system := actor.NewActorSystem() 52 | 53 | // Prepare a remote env that listens to 8081 54 | config := remote.Configure("127.0.0.1", 8081) 55 | 56 | // Configure a cluster on top of the above remote env 57 | clusterProvider := automanaged.NewWithConfig(1*time.Second, 6330, "localhost:6331") 58 | lookup := disthash.New() 59 | clusterConfig := cluster.Configure("cluster-example", clusterProvider, lookup, config) 60 | c := cluster.New(system, clusterConfig) 61 | 62 | // Manage the cluster client's lifecycle 63 | c.StartClient() // Configure as a client 64 | defer c.Shutdown(false) 65 | 66 | // Start a ping actor that periodically sends a "ping" payload to the "Ponger" cluster grain 67 | pingProps := actor.PropsFromProducer(func() actor.Actor { 68 | return &pingActor{ 69 | system: system, 70 | } 71 | }) 72 | pingPid := system.Root.Spawn(pingProps) 73 | 74 | // Subscribe to a signal to finish the interaction 75 | finish := make(chan os.Signal, 1) 76 | signal.Notify(finish, os.Interrupt, os.Kill) 77 | 78 | // Periodically send a ping payload till a signal comes 79 | ticker := time.NewTicker(1 * time.Second) 80 | defer ticker.Stop() 81 | for { 82 | select { 83 | case <-ticker.C: 84 | system.Root.Send(pingPid, struct{}{}) 85 | 86 | case <-finish: 87 | log.Print("Finish") 88 | return 89 | 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /cluster-consul/cluster-ping-future/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/cluster" 6 | "github.com/asynkron/protoactor-go/cluster/clusterproviders/consul" 7 | "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash" 8 | "github.com/asynkron/protoactor-go/remote" 9 | "log" 10 | "os" 11 | "os/signal" 12 | "protoactor-go-sender-example/cluster/messages" 13 | "time" 14 | ) 15 | 16 | var cnt uint64 = 0 17 | 18 | type pingActor struct { 19 | system *actor.ActorSystem 20 | cnt uint 21 | } 22 | 23 | func (p *pingActor) Receive(ctx actor.Context) { 24 | switch ctx.Message().(type) { 25 | case struct{}: 26 | cnt += 1 27 | ping := &messages.PingMessage{ 28 | Cnt: cnt, 29 | } 30 | 31 | grainPid := cluster.GetCluster(p.system).Get("ponger-1", "Ponger") 32 | future := ctx.RequestFuture(grainPid, ping, time.Second) 33 | result, err := future.Result() 34 | if err != nil { 35 | log.Print(err.Error()) 36 | return 37 | } 38 | log.Printf("Received %v", result) 39 | 40 | case *messages.PongMessage: 41 | // Never comes here. 42 | // When the pong actor responds to the sender, 43 | // the sender is not a ping actor but a future process. 44 | log.Print("Received pong message") 45 | 46 | } 47 | } 48 | 49 | func main() { 50 | // Set up actor system 51 | system := actor.NewActorSystem() 52 | 53 | // Prepare a remote env that listens to 8081 54 | remoteConfig := remote.Configure("127.0.0.1", 8081) 55 | 56 | // Configure a cluster on top of the above remote env 57 | clusterProvider, err := consul.New() 58 | if err != nil { 59 | log.Fatal(err) 60 | } 61 | lookup := disthash.New() 62 | clusterConfig := cluster.Configure("cluster-example", clusterProvider, lookup, remoteConfig) 63 | c := cluster.New(system, clusterConfig) 64 | 65 | // Manage the cluster client's lifecycle 66 | c.StartClient() // Configure as a client 67 | defer c.Shutdown(false) 68 | 69 | // Start a ping actor that periodically sends a "ping" payload to the "Ponger" cluster grain 70 | pingProps := actor.PropsFromProducer(func() actor.Actor { 71 | return &pingActor{ 72 | system: system, 73 | } 74 | }) 75 | pingPid := system.Root.Spawn(pingProps) 76 | 77 | // Subscribe to a signal to finish the interaction 78 | finish := make(chan os.Signal, 1) 79 | signal.Notify(finish, os.Interrupt, os.Kill) 80 | 81 | // Periodically send a ping payload till a signal comes 82 | ticker := time.NewTicker(1 * time.Second) 83 | defer ticker.Stop() 84 | for { 85 | select { 86 | case <-ticker.C: 87 | system.Root.Send(pingPid, struct{}{}) 88 | 89 | case <-finish: 90 | log.Print("Finish") 91 | return 92 | 93 | } 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /docs/components.csv: -------------------------------------------------------------------------------- 1 | Id,Name,Shape Library,Page ID,Contained By,Group,Line Source,Line Destination,Source Arrow,Destination Arrow,Text Area 1,Text Area 2 2 | 1,Page,,,,,,,,,actors, 3 | 2,Package,UML,1,,,,,,,Process A, 4 | 3,Package,UML,1,,,,,,,Process B, 5 | 4,Component,UML,1,,,,,,,Actor A, 6 | 5,Component,UML,1,,,,,,,Actor B, 7 | 6,Component,UML,1,,,,,,,Actor C, 8 | 7,Component,UML,1,,,,,,,Actor D, 9 | 8,Component,UML,1,,,,,,,Actor E, 10 | 9,Cloud,Mind Mapping,1,,,,,,,, 11 | 10,Package,UML,1,,,,,,,Process C, 12 | 11,Package,UML,1,,,,,,,Process D, 13 | 12,Component,UML,1,,,,,,,Grain A, 14 | 13,Component,UML,1,,,,,,,Grain A, 15 | 14,Callout,UI Mockups,1,,,,,,,Currently unavailable, 16 | 15,Connector,Flowchart Shapes,1,,,,,,,ClusterProvider
Implementation, 17 | 16,Text,Standard,1,,,,,,,Actor Relations, 18 | 17,Cloud,Mind Mapping,1,,,,,,,, 19 | 18,Package,UML,1,,,,,,,Process C, 20 | 19,Package,UML,1,,,,,,,Process D, 21 | 20,Component,UML,1,,,,,,,Grain A, 22 | 21,Component,UML,1,,,,,,,Grain A, 23 | 22,Callout,UI Mockups,1,,,,,,,Currently unavailable, 24 | 23,Text,Standard,1,,,,,,,Service Discovery with Automanaged, 25 | 24,Cloud,Mind Mapping,1,,,,,,,, 26 | 25,Package,UML,1,,,,,,,Process C, 27 | 26,Package,UML,1,,,,,,,Process D, 28 | 27,Component,UML,1,,,,,,,Grain A, 29 | 28,Component,UML,1,,,,,,,Grain A, 30 | 29,Callout,UI Mockups,1,,,,,,,Currently unavailable, 31 | 30,Connector,Flowchart Shapes,1,,,,,,,Consul, 32 | 31,Text,Standard,1,,,,,,,Service Discovery with Consul, 33 | 32,Cloud,Mind Mapping,1,,,,,,,, 34 | 33,Package,UML,1,,,,,,,Process C, 35 | 34,Package,UML,1,,,,,,,Process D, 36 | 35,Component,UML,1,,,,,,,Grain A, 37 | 36,Component,UML,1,,,,,,,Grain A, 38 | 37,Callout,UI Mockups,1,,,,,,,Currently unavailable, 39 | 38,Connector,Flowchart Shapes,1,,,,,,,etcd, 40 | 39,Text,Standard,1,,,,,,,Service Discovery with etcd, 41 | 40,Line,,1,,,4,5,Arrow,Arrow,Local, 42 | 41,Line,,1,,,5,6,Arrow,Arrow,Local, 43 | 42,Line,,1,,,5,7,Arrow,Arrow,Remote, 44 | 43,Line,,1,,,7,8,Arrow,Arrow,Local, 45 | 44,Line,,1,,,,12,None,Arrow,gRPC based call
or plain remote call, 46 | 45,Line,,1,,,,15,None,Arrow,Ask for
availability, 47 | 46,Line,,1,,,15,11,Arrow,Arrow,, 48 | 47,Line,,1,,,15,10,Arrow,Arrow,, 49 | 48,Line,,1,,,,18,Arrow,Arrow,Ping each other for
membership management, 50 | 49,Line,,1,,,,19,Arrow,Arrow,Ping each other for
membership management, 51 | 50,Line,,1,,,19,18,Arrow,Arrow,Ping each other for
membership management, 52 | 51,Line,,1,,,,20,None,Arrow,gRPC based call
or plain remote call, 53 | 52,Line,,1,,,,27,None,Arrow,gRPC based call
or plain remote call, 54 | 53,Line,,1,,,,30,None,Arrow,Ask for
availability, 55 | 54,Line,,1,,,30,26,Arrow,Arrow,, 56 | 55,Line,,1,,,30,25,Arrow,Arrow,, 57 | 56,Line,,1,,,,35,None,Arrow,gRPC based call
or plain remote call, 58 | 57,Line,,1,,,,38,None,Arrow,Ask for
availability, 59 | 58,Line,,1,,,38,34,Arrow,Arrow,, 60 | 59,Line,,1,,,38,33,Arrow,Arrow,, -------------------------------------------------------------------------------- /cluster-consul/cluster-ping-send/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/cluster" 6 | "github.com/asynkron/protoactor-go/cluster/clusterproviders/consul" 7 | "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash" 8 | "github.com/asynkron/protoactor-go/remote" 9 | "log" 10 | "os" 11 | "os/signal" 12 | "protoactor-go-sender-example/cluster/messages" 13 | "time" 14 | ) 15 | 16 | var cnt uint64 = 0 17 | 18 | type pingActor struct { 19 | system *actor.ActorSystem 20 | cnt uint 21 | } 22 | 23 | func (p *pingActor) Receive(ctx actor.Context) { 24 | switch ctx.Message().(type) { 25 | case struct{}: 26 | cnt += 1 27 | ping := &messages.PingMessage{ 28 | Cnt: cnt, 29 | } 30 | 31 | grainPid := cluster.GetCluster(p.system).Get("ponger-1", "Ponger") 32 | // Below do not set ctx.Self() as the sender, and hence the recipient has no knowledge of the sender 33 | // even though the message is sent from one actor to another. 34 | // 35 | ctx.Send(grainPid, ping) 36 | 37 | case *messages.PongMessage: 38 | // Never comes here because the recipient can not refer to the sender. 39 | // Instead, the cluster grain leaves logs as below: 40 | // YYYY/MM/DD hh:mm:ss Received ping message 41 | // YYYY/MM/DD hh:mm:ss DEBUG [ACTOR] [DeadLetter] pid="" msg=*messages.PongMessage sender="" 42 | // 43 | log.Print("Received pong message") 44 | 45 | } 46 | } 47 | 48 | func main() { 49 | // Set up actor system 50 | system := actor.NewActorSystem() 51 | 52 | // Prepare a remote env that listens to 8081 53 | remoteConfig := remote.Configure("127.0.0.1", 8081) 54 | 55 | // Configure a cluster on top of the above remote env 56 | cp, err := consul.New() 57 | if err != nil { 58 | log.Fatal(err) 59 | } 60 | lookup := disthash.New() 61 | clusterConfig := cluster.Configure("cluster-example", cp, lookup, remoteConfig) 62 | c := cluster.New(system, clusterConfig) 63 | 64 | // Manage the cluster client's lifecycle 65 | c.StartClient() // Configure as a client 66 | defer c.Shutdown(false) 67 | 68 | // Start a ping actor that periodically sends a "ping" payload to the "Ponger" cluster grain 69 | pingProps := actor.PropsFromProducer(func() actor.Actor { 70 | return &pingActor{ 71 | system: system, 72 | } 73 | }) 74 | pingPid := system.Root.Spawn(pingProps) 75 | 76 | // Subscribe to a signal to finish the interaction 77 | finish := make(chan os.Signal, 1) 78 | signal.Notify(finish, os.Interrupt, os.Kill) 79 | 80 | // Periodically send a ping payload till a signal comes 81 | ticker := time.NewTicker(1 * time.Second) 82 | defer ticker.Stop() 83 | for { 84 | select { 85 | case <-ticker.C: 86 | system.Root.Send(pingPid, struct{}{}) 87 | 88 | case <-finish: 89 | log.Print("Finish") 90 | return 91 | 92 | } 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /cluster-etcd/cluster-ping-future/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/cluster" 6 | "github.com/asynkron/protoactor-go/cluster/clusterproviders/etcd" 7 | "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash" 8 | "github.com/asynkron/protoactor-go/remote" 9 | clientv3 "go.etcd.io/etcd/client/v3" 10 | "log" 11 | "os" 12 | "os/signal" 13 | "protoactor-go-sender-example/cluster/messages" 14 | "time" 15 | ) 16 | 17 | var cnt uint64 = 0 18 | 19 | type pingActor struct { 20 | system *actor.ActorSystem 21 | cnt uint 22 | } 23 | 24 | func (p *pingActor) Receive(ctx actor.Context) { 25 | switch ctx.Message().(type) { 26 | case struct{}: 27 | cnt += 1 28 | ping := &messages.PingMessage{ 29 | Cnt: cnt, 30 | } 31 | 32 | grainPid := cluster.GetCluster(p.system).Get("ponger-1", "Ponger") 33 | future := ctx.RequestFuture(grainPid, ping, time.Second) 34 | result, err := future.Result() 35 | if err != nil { 36 | log.Print(err.Error()) 37 | return 38 | } 39 | log.Printf("Received %v", result) 40 | 41 | case *messages.PongMessage: 42 | // Never comes here. 43 | // When the pong actor responds to the sender, the sender is not a ping actor but a future process. 44 | log.Print("Received pong message") 45 | 46 | } 47 | } 48 | 49 | func main() { 50 | // Set up actor system 51 | system := actor.NewActorSystem() 52 | 53 | // Prepare a remote env that listens to 8081 54 | remoteConfig := remote.Configure("127.0.0.1", 8081) 55 | 56 | // Configure a cluster on top of the above remote env 57 | clusterProvider, err := etcd.NewWithConfig("/protoactor", clientv3.Config{ 58 | Endpoints: []string{"127.0.0.1:2379"}, 59 | DialTimeout: time.Second * 5, 60 | }) 61 | if err != nil { 62 | panic(err) 63 | } 64 | lookup := disthash.New() 65 | clusterConfig := cluster.Configure("cluster-example", clusterProvider, lookup, remoteConfig) 66 | c := cluster.New(system, clusterConfig) 67 | 68 | // Manage the cluster client's lifecycle 69 | c.StartClient() // Configure as a client 70 | defer c.Shutdown(false) 71 | 72 | // Start a ping actor that periodically sends a "ping" payload to the "Ponger" cluster grain 73 | pingProps := actor.PropsFromProducer(func() actor.Actor { 74 | return &pingActor{ 75 | system: system, 76 | } 77 | }) 78 | pingPid := system.Root.Spawn(pingProps) 79 | 80 | // Subscribe to a signal to finish the interaction 81 | finish := make(chan os.Signal, 1) 82 | signal.Notify(finish, os.Interrupt, os.Kill) 83 | 84 | // Periodically send a ping payload till a signal comes 85 | ticker := time.NewTicker(1 * time.Second) 86 | defer ticker.Stop() 87 | for { 88 | select { 89 | case <-ticker.C: 90 | system.Root.Send(pingPid, struct{}{}) 91 | 92 | case <-finish: 93 | log.Print("Finish") 94 | return 95 | 96 | } 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /cluster-automanaged/cluster-ping-grpc/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/cluster" 6 | "github.com/asynkron/protoactor-go/cluster/clusterproviders/automanaged" 7 | "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash" 8 | "github.com/asynkron/protoactor-go/remote" 9 | "log" 10 | "os" 11 | "os/signal" 12 | "protoactor-go-sender-example/cluster/messages" 13 | "time" 14 | ) 15 | 16 | var cnt uint64 = 0 17 | 18 | type pingActor struct { 19 | system *actor.ActorSystem 20 | cnt uint 21 | } 22 | 23 | func (p *pingActor) Receive(ctx actor.Context) { 24 | switch ctx.Message().(type) { 25 | case struct{}: 26 | cnt += 1 27 | ping := &messages.PingMessage{ 28 | Cnt: cnt, 29 | } 30 | 31 | client := messages.GetPongerGrainClient(cluster.GetCluster(p.system), "ponger-1") 32 | pong, err := client.Ping(ping, cluster.WithTimeout(time.Second), cluster.WithRetry(5)) 33 | if err != nil { 34 | log.Print(err.Error()) 35 | return 36 | } 37 | log.Printf("Received %v", pong) 38 | 39 | case *messages.PongMessage: 40 | // Never comes here. 41 | // When the pong grain responds to the sender's gRPC call, 42 | // the sender is not a ping actor but a future process. 43 | log.Print("Received pong message") 44 | 45 | } 46 | } 47 | 48 | func main() { 49 | // Set up actor system 50 | system := actor.NewActorSystem() 51 | 52 | // Prepare a remote env that listens to 8081 53 | remoteConfig := remote.Configure("127.0.0.1", 8081) 54 | 55 | // Configure a cluster on top of the above remote env. 56 | // This node uses port 6330 for the cluster provider, and add ponger node -- localhost:6331 -- as member. 57 | // With automanaged implementation, one must list up all known nodes at first place to ping each other. 58 | // Note that this node itself is not registered as a member node because this only works as a client. 59 | cp := automanaged.NewWithConfig(1*time.Second, 6330, "localhost:6331") 60 | lookup := disthash.New() 61 | clusterConfig := cluster.Configure("cluster-example", cp, lookup, remoteConfig) 62 | c := cluster.New(system, clusterConfig) 63 | 64 | // Manage the cluster client's lifecycle 65 | c.StartClient() // Configure as a client 66 | defer c.Shutdown(false) 67 | 68 | // Start a ping actor that periodically send a "ping" payload to the "Ponger" cluster grain 69 | pingProps := actor.PropsFromProducer(func() actor.Actor { 70 | return &pingActor{ 71 | system: system, 72 | } 73 | }) 74 | pingPid := system.Root.Spawn(pingProps) 75 | 76 | // Subscribe to signal to finish interaction 77 | finish := make(chan os.Signal, 1) 78 | signal.Notify(finish, os.Interrupt, os.Kill) 79 | 80 | // Periodically send ping payload till signal comes 81 | ticker := time.NewTicker(1 * time.Second) 82 | defer ticker.Stop() 83 | for { 84 | select { 85 | case <-ticker.C: 86 | system.Root.Send(pingPid, struct{}{}) 87 | 88 | case <-finish: 89 | log.Print("Finish") 90 | return 91 | 92 | } 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module protoactor-go-sender-example 2 | 3 | go 1.18 4 | 5 | require ( 6 | github.com/asynkron/protoactor-go v0.0.0-20220616142548-afd2d973a1d1 7 | go.etcd.io/etcd/client/v3 v3.5.4 8 | google.golang.org/protobuf v1.28.0 9 | ) 10 | 11 | require ( 12 | github.com/Workiva/go-datastructures v1.0.53 // indirect 13 | github.com/armon/go-metrics v0.4.0 // indirect 14 | github.com/asynkron/gofun v0.0.0-20220329210725-34fed760f4c2 // indirect 15 | github.com/beorn7/perks v1.0.1 // indirect 16 | github.com/cespare/xxhash/v2 v2.1.2 // indirect 17 | github.com/coreos/go-semver v0.3.0 // indirect 18 | github.com/coreos/go-systemd/v22 v22.3.2 // indirect 19 | github.com/emirpasic/gods v1.18.1 // indirect 20 | github.com/fatih/color v1.13.0 // indirect 21 | github.com/go-logr/logr v1.2.3 // indirect 22 | github.com/go-logr/stdr v1.2.2 // indirect 23 | github.com/gogo/protobuf v1.3.2 // indirect 24 | github.com/golang/protobuf v1.5.2 // indirect 25 | github.com/google/uuid v1.3.0 // indirect 26 | github.com/hashicorp/consul/api v1.12.0 // indirect 27 | github.com/hashicorp/go-cleanhttp v0.5.2 // indirect 28 | github.com/hashicorp/go-hclog v1.2.0 // indirect 29 | github.com/hashicorp/go-immutable-radix v1.3.1 // indirect 30 | github.com/hashicorp/go-rootcerts v1.0.2 // indirect 31 | github.com/hashicorp/go-uuid v1.0.2 // indirect 32 | github.com/hashicorp/golang-lru v0.5.4 // indirect 33 | github.com/hashicorp/serf v0.9.8 // indirect 34 | github.com/labstack/echo v3.3.10+incompatible // indirect 35 | github.com/labstack/gommon v0.3.1 // indirect 36 | github.com/lithammer/shortuuid/v4 v4.0.0 // indirect 37 | github.com/mattn/go-colorable v0.1.12 // indirect 38 | github.com/mattn/go-isatty v0.0.14 // indirect 39 | github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect 40 | github.com/mitchellh/go-homedir v1.1.0 // indirect 41 | github.com/mitchellh/go-testing-interface v1.14.0 // indirect 42 | github.com/mitchellh/mapstructure v1.5.0 // indirect 43 | github.com/orcaman/concurrent-map v1.0.0 // indirect 44 | github.com/prometheus/client_golang v1.12.2 // indirect 45 | github.com/prometheus/client_model v0.2.0 // indirect 46 | github.com/prometheus/common v0.34.0 // indirect 47 | github.com/prometheus/procfs v0.7.3 // indirect 48 | github.com/spaolacci/murmur3 v1.1.0 // indirect 49 | github.com/valyala/bytebufferpool v1.0.0 // indirect 50 | github.com/valyala/fasttemplate v1.2.1 // indirect 51 | go.etcd.io/etcd/api/v3 v3.5.4 // indirect 52 | go.etcd.io/etcd/client/pkg/v3 v3.5.4 // indirect 53 | go.opentelemetry.io/otel v1.7.0 // indirect 54 | go.opentelemetry.io/otel/exporters/prometheus v0.30.0 // indirect 55 | go.opentelemetry.io/otel/metric v0.30.0 // indirect 56 | go.opentelemetry.io/otel/sdk v1.7.0 // indirect 57 | go.opentelemetry.io/otel/sdk/export/metric v0.28.0 // indirect 58 | go.opentelemetry.io/otel/sdk/metric v0.30.0 // indirect 59 | go.opentelemetry.io/otel/trace v1.7.0 // indirect 60 | go.uber.org/atomic v1.9.0 // indirect 61 | go.uber.org/multierr v1.8.0 // indirect 62 | go.uber.org/zap v1.21.0 // indirect 63 | golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect 64 | golang.org/x/exp v0.0.0-20220518171630-0b5c67f07fdf // indirect 65 | golang.org/x/net v0.0.0-20220526153639-5463443f8c37 // indirect 66 | golang.org/x/sync v0.0.0-20220513210516-0976fa681c29 // indirect 67 | golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect 68 | golang.org/x/text v0.3.7 // indirect 69 | google.golang.org/genproto v0.0.0-20220526192754-51939a95c655 // indirect 70 | google.golang.org/grpc v1.46.2 // indirect 71 | ) 72 | -------------------------------------------------------------------------------- /cluster-consul/cluster-pong-grpc/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/cluster" 6 | "github.com/asynkron/protoactor-go/cluster/clusterproviders/consul" 7 | "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash" 8 | "github.com/asynkron/protoactor-go/remote" 9 | "log" 10 | "os" 11 | "os/signal" 12 | "protoactor-go-sender-example/cluster/messages" 13 | "time" 14 | ) 15 | 16 | // ponger handles the incoming messages. 17 | // This supports gRPC Ponger service and plain message handling. 18 | type ponger struct { 19 | } 20 | 21 | var _ messages.Ponger = (*ponger)(nil) 22 | 23 | // Init takes care of the initialization. 24 | func (p *ponger) Init(ctx cluster.GrainContext) { 25 | log.Printf("Initializing ponger: %s", ctx.Self().GetId()) 26 | } 27 | 28 | // Terminate takes care of the finalization. 29 | func (p *ponger) Terminate(ctx cluster.GrainContext) { 30 | // Do finalization if required. e.g. Store the current state to storage and switch its behavior to reject further messages. 31 | // This method is called when a pre-configured idle interval passes from the last message reception. 32 | // The actor will be re-initialized when a message comes for the next time. 33 | // Terminating the idle actor is effective to free unused server resource. 34 | // 35 | // A poison pill message is enqueued right after this method execution and the actor eventually stops. 36 | log.Printf("Terminating ponger: %s", ctx.Self().GetId()) 37 | } 38 | 39 | // ReceiveDefault is a default method to receive and handle incoming messages. 40 | func (p *ponger) ReceiveDefault(ctx cluster.GrainContext) { 41 | log.Printf("A plain message is sent from sender: %+v", ctx.Sender()) 42 | 43 | switch msg := ctx.Message().(type) { 44 | case *messages.PingMessage: 45 | log.Print("Received ping message") 46 | pong := &messages.PongMessage{Cnt: msg.Cnt} 47 | ctx.Respond(pong) 48 | 49 | default: 50 | 51 | } 52 | } 53 | 54 | // Ping is called when gRPC-based request is sent against Ponger service. 55 | func (p *ponger) Ping(ping *messages.PingMessage, ctx cluster.GrainContext) (*messages.PongMessage, error) { 56 | // The sender process is not a sending actor, but a future process 57 | sender := ctx.Sender() 58 | log.Printf("Received Ping call from sender. Address: %s. ID: %s.", sender.GetAddress(), sender.GetId()) 59 | 60 | pong := &messages.PongMessage{ 61 | Cnt: ping.Cnt, 62 | } 63 | return pong, nil 64 | } 65 | 66 | func main() { 67 | // Set up actor system 68 | system := actor.NewActorSystem() 69 | 70 | // Register a ponger constructor. 71 | // This is called when the wrapping PongerActor is initialized. 72 | // PongerActor proxies messages to ponger's corresponding methods. 73 | messages.PongerFactory(func() messages.Ponger { 74 | return &ponger{} 75 | }) 76 | 77 | // Prepare a remote env that listens to 8080. 78 | // Messages are sent to this port. 79 | remoteConfig := remote.Configure("127.0.0.1", 8080) 80 | 81 | // Configure a cluster provider so the Ponger grain can work as a cluster member. 82 | cp, err := consul.New() 83 | if err != nil { 84 | log.Fatal(err) 85 | } 86 | 87 | // Register an actor constructor for the Ponger kind. 88 | // With this registration, the message sender and other cluster nodes know this node is capable of providing a Ponger. 89 | // PongerActor will implicitly be initialized when the first message comes in. 90 | clusterKind := cluster.NewKind( 91 | "Ponger", 92 | actor.PropsFromProducer(func() actor.Actor { 93 | return &messages.PongerActor{ 94 | // The actor stops when 10 seconds is passed after the last message reception. 95 | // Ponger.Terminate() is called on the finalization. 96 | // When the next message comes, the actor is revitalized so Ponger.Init() is called again. 97 | Timeout: 10 * time.Second, 98 | } 99 | })) 100 | lookup := disthash.New() 101 | clusterConfig := cluster.Configure("cluster-example", cp, lookup, remoteConfig, cluster.WithKinds(clusterKind)) 102 | c := cluster.New(system, clusterConfig) 103 | 104 | // Manage the cluster node's lifecycle 105 | // Use StartClient() when this process is not a member of the cluster nodes but required to send messages to cluster grains. 106 | c.StartMember() 107 | defer c.Shutdown(false) 108 | 109 | // Run till a signal comes 110 | finish := make(chan os.Signal, 1) 111 | signal.Notify(finish, os.Interrupt, os.Kill) 112 | <-finish 113 | } 114 | -------------------------------------------------------------------------------- /cluster-automanaged/cluster-pong-grpc/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/asynkron/protoactor-go/actor" 5 | "github.com/asynkron/protoactor-go/cluster" 6 | "github.com/asynkron/protoactor-go/cluster/clusterproviders/automanaged" 7 | "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash" 8 | "github.com/asynkron/protoactor-go/remote" 9 | "log" 10 | "os" 11 | "os/signal" 12 | "protoactor-go-sender-example/cluster/messages" 13 | "time" 14 | ) 15 | 16 | // ponger handles the incoming messages. 17 | // This supports gRPC Ponger service and plain message handling. 18 | type ponger struct { 19 | } 20 | 21 | var _ messages.Ponger = (*ponger)(nil) 22 | 23 | // Init takes care of the initialization. 24 | func (p *ponger) Init(ctx cluster.GrainContext) { 25 | log.Printf("Initializing ponger: %s", ctx.Self().GetId()) 26 | } 27 | 28 | // Terminate takes care of the finalization. 29 | func (p *ponger) Terminate(ctx cluster.GrainContext) { 30 | // Do finalization if required. e.g. Store the current state to storage and switch its behavior to reject further messages. 31 | // This method is called when a pre-configured idle interval passes from the last message reception. 32 | // The actor will be re-initialized when a message comes for the next time. 33 | // Terminating the idle actor is effective to free unused server resource. 34 | // 35 | // A poison pill message is enqueued right after this method execution and the actor eventually stops. 36 | log.Printf("Terminating ponger: %s", ctx.Self().GetId()) 37 | } 38 | 39 | // ReceiveDefault is a default method to receive and handle incoming messages. 40 | func (p *ponger) ReceiveDefault(ctx cluster.GrainContext) { 41 | log.Printf("A plain message is sent from sender: %+v", ctx.Sender()) 42 | 43 | switch msg := ctx.Message().(type) { 44 | case *messages.PingMessage: 45 | log.Print("Received ping message") 46 | pong := &messages.PongMessage{Cnt: msg.Cnt} 47 | ctx.Respond(pong) 48 | 49 | default: 50 | 51 | } 52 | } 53 | 54 | // Ping is called when gRPC-based request is sent against Ponger service. 55 | func (p *ponger) Ping(ping *messages.PingMessage, ctx cluster.GrainContext) (*messages.PongMessage, error) { 56 | // The sender process is not a sending actor, but a future process 57 | sender := ctx.Sender() 58 | log.Printf("Received Ping call from sender. Address: %s. ID: %s.", sender.GetAddress(), sender.GetId()) 59 | 60 | pong := &messages.PongMessage{ 61 | Cnt: ping.Cnt, 62 | } 63 | return pong, nil 64 | } 65 | 66 | func main() { 67 | // Set up actor system 68 | system := actor.NewActorSystem() 69 | 70 | // Register a ponger constructor. 71 | // This is called when the wrapping PongerActor is initialized. 72 | // PongerActor proxies messages to ponger's corresponding methods. 73 | messages.PongerFactory(func() messages.Ponger { 74 | return &ponger{} 75 | }) 76 | 77 | // Prepare a remote env that listens to 8080. 78 | // Messages are sent to this port. 79 | config := remote.Configure("127.0.0.1", 8080) 80 | 81 | // Configure a cluster provider so the Ponger grain can work as a cluster member. 82 | // This node uses port 6331 for cluster provider, and register itself -- localhost:6331" -- as a cluster member. 83 | cp := automanaged.NewWithConfig(1*time.Second, 6331, "localhost:6331") 84 | 85 | // Register an actor constructor for the Ponger kind. 86 | // With this registration, the message sender and other cluster nodes know this node is capable of providing a Ponger. 87 | // PongerActor will implicitly be initialized when the first message comes in. 88 | clusterKind := cluster.NewKind( 89 | "Ponger", 90 | actor.PropsFromProducer(func() actor.Actor { 91 | return &messages.PongerActor{ 92 | // The actor stops when 10 seconds is passed after the last message reception. 93 | // Ponger.Terminate() is called on the finalization. 94 | // When the next message comes, the actor is revitalized so Ponger.Init() is called again. 95 | Timeout: 10 * time.Second, 96 | } 97 | })) 98 | lookup := disthash.New() 99 | clusterConfig := cluster.Configure("cluster-example", cp, lookup, config, cluster.WithKinds(clusterKind)) 100 | c := cluster.New(system, clusterConfig) 101 | 102 | // Manage the cluster node's lifecycle 103 | // Use StartClient() when this process is not a member of the cluster nodes but required to send messages to cluster grains. 104 | c.StartMember() 105 | defer c.Shutdown(false) 106 | 107 | // Run till a signal comes 108 | finish := make(chan os.Signal, 1) 109 | signal.Notify(finish, os.Interrupt, os.Kill) 110 | <-finish 111 | } 112 | -------------------------------------------------------------------------------- /cluster/messages/protos_protoactor.go: -------------------------------------------------------------------------------- 1 | // Package messages is generated by protoactor-go/protoc-gen-gograin@0.1.0 2 | package messages 3 | 4 | import ( 5 | "errors" 6 | "fmt" 7 | "math" 8 | "time" 9 | 10 | "github.com/asynkron/protoactor-go/actor" 11 | "github.com/asynkron/protoactor-go/cluster" 12 | logmod "github.com/asynkron/protoactor-go/log" 13 | "google.golang.org/protobuf/proto" 14 | ) 15 | 16 | var ( 17 | plog = logmod.New(logmod.InfoLevel, "[GRAIN][messages]") 18 | _ = proto.Marshal 19 | _ = fmt.Errorf 20 | _ = math.Inf 21 | ) 22 | 23 | // SetLogLevel sets the log level. 24 | func SetLogLevel(level logmod.Level) { 25 | plog.SetLevel(level) 26 | } 27 | 28 | var xPongerFactory func() Ponger 29 | 30 | // PongerFactory produces a Ponger 31 | func PongerFactory(factory func() Ponger) { 32 | xPongerFactory = factory 33 | } 34 | 35 | // GetPongerGrainClient instantiates a new PongerGrainClient with given Identity 36 | func GetPongerGrainClient(c *cluster.Cluster, id string) *PongerGrainClient { 37 | if c == nil { 38 | panic(fmt.Errorf("nil cluster instance")) 39 | } 40 | if id == "" { 41 | panic(fmt.Errorf("empty id")) 42 | } 43 | return &PongerGrainClient{Identity: id, cluster: c} 44 | } 45 | 46 | // GetPongerKind instantiates a new cluster.Kind for Ponger 47 | func GetPongerKind(opts ...actor.PropsOption) *cluster.Kind { 48 | props := actor.PropsFromProducer(func() actor.Actor { 49 | return &PongerActor{ 50 | Timeout: 60 * time.Second, 51 | } 52 | }, opts...) 53 | kind := cluster.NewKind("Ponger", props) 54 | return kind 55 | } 56 | 57 | // GetPongerKind instantiates a new cluster.Kind for Ponger 58 | func NewPongerKind(factory func() Ponger, timeout time.Duration ,opts ...actor.PropsOption) *cluster.Kind { 59 | xPongerFactory = factory 60 | props := actor.PropsFromProducer(func() actor.Actor { 61 | return &PongerActor{ 62 | Timeout: timeout, 63 | } 64 | }, opts...) 65 | kind := cluster.NewKind("Ponger", props) 66 | return kind 67 | } 68 | 69 | // Ponger interfaces the services available to the Ponger 70 | type Ponger interface { 71 | Init(ctx cluster.GrainContext) 72 | Terminate(ctx cluster.GrainContext) 73 | ReceiveDefault(ctx cluster.GrainContext) 74 | Ping(*PingMessage, cluster.GrainContext) (*PongMessage, error) 75 | 76 | } 77 | 78 | // PongerGrainClient holds the base data for the PongerGrain 79 | type PongerGrainClient struct { 80 | Identity string 81 | cluster *cluster.Cluster 82 | } 83 | 84 | // Ping requests the execution on to the cluster with CallOptions 85 | func (g *PongerGrainClient) Ping(r *PingMessage, opts ...cluster.GrainCallOption) (*PongMessage, error) { 86 | bytes, err := proto.Marshal(r) 87 | if err != nil { 88 | return nil, err 89 | } 90 | reqMsg := &cluster.GrainRequest{MethodIndex: 0, MessageData: bytes} 91 | resp, err := g.cluster.Call(g.Identity, "Ponger", reqMsg, opts...) 92 | if err != nil { 93 | return nil, err 94 | } 95 | switch msg := resp.(type) { 96 | case *cluster.GrainResponse: 97 | result := &PongMessage{} 98 | err = proto.Unmarshal(msg.MessageData, result) 99 | if err != nil { 100 | return nil, err 101 | } 102 | return result, nil 103 | case *cluster.GrainErrorResponse: 104 | return nil, errors.New(msg.Err) 105 | default: 106 | return nil, errors.New("unknown response") 107 | } 108 | } 109 | 110 | 111 | // PongerActor represents the actor structure 112 | type PongerActor struct { 113 | ctx cluster.GrainContext 114 | inner Ponger 115 | Timeout time.Duration 116 | } 117 | 118 | // Receive ensures the lifecycle of the actor for the received message 119 | func (a *PongerActor) Receive(ctx actor.Context) { 120 | switch msg := ctx.Message().(type) { 121 | case *actor.Started: //pass 122 | case *cluster.ClusterInit: 123 | a.ctx = cluster.NewGrainContext(ctx, msg.Identity, msg.Cluster) 124 | a.inner = xPongerFactory() 125 | a.inner.Init(a.ctx) 126 | 127 | if a.Timeout > 0 { 128 | ctx.SetReceiveTimeout(a.Timeout) 129 | } 130 | case *actor.ReceiveTimeout: 131 | ctx.Poison(ctx.Self()) 132 | case *actor.Stopped: 133 | a.inner.Terminate(a.ctx) 134 | case actor.AutoReceiveMessage: // pass 135 | case actor.SystemMessage: // pass 136 | 137 | case *cluster.GrainRequest: 138 | switch msg.MethodIndex { 139 | case 0: 140 | req := &PingMessage{} 141 | err := proto.Unmarshal(msg.MessageData, req) 142 | if err != nil { 143 | plog.Error("Ping(PingMessage) proto.Unmarshal failed.", logmod.Error(err)) 144 | resp := &cluster.GrainErrorResponse{Err: err.Error()} 145 | ctx.Respond(resp) 146 | return 147 | } 148 | r0, err := a.inner.Ping(req, a.ctx) 149 | if err != nil { 150 | resp := &cluster.GrainErrorResponse{Err: err.Error()} 151 | ctx.Respond(resp) 152 | return 153 | } 154 | bytes, err := proto.Marshal(r0) 155 | if err != nil { 156 | plog.Error("Ping(PingMessage) proto.Marshal failed", logmod.Error(err)) 157 | resp := &cluster.GrainErrorResponse{Err: err.Error()} 158 | ctx.Respond(resp) 159 | return 160 | } 161 | resp := &cluster.GrainResponse{MessageData: bytes} 162 | ctx.Respond(resp) 163 | 164 | } 165 | default: 166 | a.inner.ReceiveDefault(a.ctx) 167 | } 168 | } 169 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This repository contains supplemental examples for my blog article, [[Golang] Protoactor-go 101: How actors communicate with each other](https://blog.oklahome.net/2018/09/protoactor-go-messaging-protocol.html) , to cover all message passing methods for all kinds of actors provided by protoactor-go. 2 | 3 | ![](https://raw.githubusercontent.com/oklahomer/protoactor-go-sender-example/main/docs/components.png) 4 | 5 | # Local 6 | For local message passing, see the below directories: 7 | - [local-send](./local-send/main.go) ... Use Send() for local message passing. The recipient actor cannot refer to the sender actor. 8 | - [local-request](./local-request/main.go) ... Use Request() for local message passing. The recipient actor can refer to the sender actor. 9 | - [local-future](./local-future/main.go) ... Use RequestFuture() for local message passing. Context.Sender() does not return the PID of sender actor but that of actor.Future. 10 | 11 | # Remote 12 | - [remote/messages](./remote/messages/) ... Contain Protobuf serializable message structures. See **README.md** for code generation. 13 | - [rmeote/remote-pong](./remote/remote-pong/main.go) ... A process that returns pong message to sender. 14 | - [remote/remote-ping-send](./remote/remote-ping-send/main.go) ... A process that sends message to pong actor by Send(). The recipient cannot refer to the sender actor. 15 | - [remote/remote-ping-request](./remote/remote-ping-request/main.go) ... A process that sends message to pong actor by Request(). The recipient actor can refer to the sender actor. 16 | - [remote/remote-ping-future](./remote/remote-ping-future/main.go) ... A process that sends message to pong actor by RequestFuture(). Context.Sender() does not return the PID of sender actor but that of actor.Future. 17 | 18 | # Cluster Grain 19 | - [cluster/messages](./cluster/messages/) ... Contain Protobuf serializable message structures and generated actor.Actor implementation for gRPC based communication. See **README.md** for code generation. 20 | 21 | ## Cluster Grain usage with remote communication 22 | Below examples use Consul Cluster Provider for service discovery. Run `docker-compose -f docker-compose.yml up --build -d` or something equivalent to run Consul on your local environment. 23 | - [cluster-consul/cluster-pong](./cluster-consul/cluster-pong/main.go) ... A process that returns pong message to the sender based on remote actor implementation. 24 | - [cluster-consul/cluster-ping-send](./cluster-consul/cluster-ping-send/main.go) ... A process that sends message to pong actor by Send(). The recipient cannot refer to the sender actor. 25 | - [cluster-consul/cluster-ping-request](./cluster-consul/cluster-ping-request/main.go) ... A process that sends message to pong actor by Request(). The recipient actor can refer to the sender actor. 26 | - [cluster-consul/cluster-ping-future](./cluster-consul/cluster-ping-future/main.go) ... A process that sends message to pong actor by RequestFuture(). Context.Sender() does not return the PID of sender actor but that of actor.Future. 27 | 28 | ## Cluster Grain usage with gRPC based communication 29 | Below examples use Consul Cluster Provider for service discovery. Run `docker-compose -f docker-compose.yml up --build -d` or something equivalent to run Consul on your local environment. 30 | - [cluster-consul/cluster-pong-grpc](./cluster-consul/cluster-pong-grpc/main.go) ... A process that returns pong message to the sender via gRPC service. 31 | - [cluster-consul/cluster-ping-grpc](./cluster-consul/cluster-ping-grpc/main.go) ... A process that sends message to pong actor over gRPC based service. 32 | 33 | ## Cluster with Automanaged Cluster Provider 34 | Below examples use Automanaged Cluster Provider for service discovery 35 | - [cluster-automanaged/cluster-pong](./cluster-automanaged/cluster-pong/main.go) ... A process that returns pong message to the sender based on remote actor implementation. 36 | - [cluster-automanaged/cluster-ping-future](./cluster-automanaged/cluster-ping-future/main.go) ... A process that sends message to pong actor by Request(). The recipient actor can refer to the sender actor and therefore can successfully respond. 37 | 38 | ## Cluster with etcd Cluster Provider 39 | Below examples uses etcd Cluster Provider for service discovery. Run `docker-compose -f docker-compose.yml up --build -d` or something equivalent to run etcd on your local environment. 40 | - [cluster-etcd/cluster-pong](./cluster-etcd/cluster-pong/main.go) ... A process that returns pong message to the sender based on remote actor implementation. 41 | - [cluster-etcd/cluster-ping-future](./cluster-etcd/cluster-ping-future/main.go) ... A process that sends message to pong actor by Request(). The recipient actor can refer to the sender actor and therefore can successfully respond. 42 | 43 | # References 44 | - [[Golang] Protoactor-go 101: Introduction to golang's actor model implementation](https://blog.oklahome.net/2018/07/protoactor-go-introduction.html) 45 | - [[Golang] Protoactor-go 101: How actors communicate with each other](https://blog.oklahome.net/2018/09/protoactor-go-messaging-protocol.html) 46 | - [[Golang] protoactor-go 101: How actor.Future works to synchronize concurrent task execution](https://blog.oklahome.net/2018/11/protoactor-go-how-future-works.html) 47 | - [[Golang] protoactor-go 201: How middleware works to intercept incoming and outgoing messages](https://blog.oklahome.net/2018/11/protoactor-go-middleware.html) 48 | - [[Golang] protoactor-go 201: Use plugins to add behaviors to an actor](https://blog.oklahome.net/2018/12/protoactor-go-use-plugin-to-add-behavior.html) 49 | - [[Golang] protoactor-go 301: How proto.actor's clustering works to achieve higher availability](https://blog.oklahome.net/2021/05/protoactor-clustering.html) 50 | 51 | # Other Example Codes 52 | - [oklahomer/protoactor-go-future-example](https://github.com/oklahomer/protoactor-go-future-example) 53 | - Some example codes to illustrate how protoactor-go handles Future process 54 | - [oklahomer/protoactor-go-middleware-example](https://github.com/oklahomer/protoactor-go-middleware-example) 55 | - Some example codes to illustrate how protoactor-go use Middleware 56 | -------------------------------------------------------------------------------- /remote/messages/protos.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // versions: 3 | // protoc-gen-go v1.26.0 4 | // protoc v3.21.3 5 | // source: protos.proto 6 | 7 | package messages 8 | 9 | import ( 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 | reflect "reflect" 13 | sync "sync" 14 | ) 15 | 16 | const ( 17 | // Verify that this generated code is sufficiently up-to-date. 18 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 | // Verify that runtime/protoimpl is sufficiently up-to-date. 20 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 | ) 22 | 23 | type Ping struct { 24 | state protoimpl.MessageState 25 | sizeCache protoimpl.SizeCache 26 | unknownFields protoimpl.UnknownFields 27 | 28 | Cnt uint64 `protobuf:"varint,1,opt,name=cnt,proto3" json:"cnt,omitempty"` 29 | } 30 | 31 | func (x *Ping) Reset() { 32 | *x = Ping{} 33 | if protoimpl.UnsafeEnabled { 34 | mi := &file_protos_proto_msgTypes[0] 35 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 36 | ms.StoreMessageInfo(mi) 37 | } 38 | } 39 | 40 | func (x *Ping) String() string { 41 | return protoimpl.X.MessageStringOf(x) 42 | } 43 | 44 | func (*Ping) ProtoMessage() {} 45 | 46 | func (x *Ping) ProtoReflect() protoreflect.Message { 47 | mi := &file_protos_proto_msgTypes[0] 48 | if protoimpl.UnsafeEnabled && x != nil { 49 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 50 | if ms.LoadMessageInfo() == nil { 51 | ms.StoreMessageInfo(mi) 52 | } 53 | return ms 54 | } 55 | return mi.MessageOf(x) 56 | } 57 | 58 | // Deprecated: Use Ping.ProtoReflect.Descriptor instead. 59 | func (*Ping) Descriptor() ([]byte, []int) { 60 | return file_protos_proto_rawDescGZIP(), []int{0} 61 | } 62 | 63 | func (x *Ping) GetCnt() uint64 { 64 | if x != nil { 65 | return x.Cnt 66 | } 67 | return 0 68 | } 69 | 70 | type Pong struct { 71 | state protoimpl.MessageState 72 | sizeCache protoimpl.SizeCache 73 | unknownFields protoimpl.UnknownFields 74 | 75 | Cnt uint64 `protobuf:"varint,1,opt,name=cnt,proto3" json:"cnt,omitempty"` 76 | } 77 | 78 | func (x *Pong) Reset() { 79 | *x = Pong{} 80 | if protoimpl.UnsafeEnabled { 81 | mi := &file_protos_proto_msgTypes[1] 82 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 83 | ms.StoreMessageInfo(mi) 84 | } 85 | } 86 | 87 | func (x *Pong) String() string { 88 | return protoimpl.X.MessageStringOf(x) 89 | } 90 | 91 | func (*Pong) ProtoMessage() {} 92 | 93 | func (x *Pong) ProtoReflect() protoreflect.Message { 94 | mi := &file_protos_proto_msgTypes[1] 95 | if protoimpl.UnsafeEnabled && x != nil { 96 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97 | if ms.LoadMessageInfo() == nil { 98 | ms.StoreMessageInfo(mi) 99 | } 100 | return ms 101 | } 102 | return mi.MessageOf(x) 103 | } 104 | 105 | // Deprecated: Use Pong.ProtoReflect.Descriptor instead. 106 | func (*Pong) Descriptor() ([]byte, []int) { 107 | return file_protos_proto_rawDescGZIP(), []int{1} 108 | } 109 | 110 | func (x *Pong) GetCnt() uint64 { 111 | if x != nil { 112 | return x.Cnt 113 | } 114 | return 0 115 | } 116 | 117 | var File_protos_proto protoreflect.FileDescriptor 118 | 119 | var file_protos_proto_rawDesc = []byte{ 120 | 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 121 | 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x18, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 122 | 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x63, 123 | 0x6e, 0x74, 0x22, 0x18, 0x0a, 0x04, 0x50, 0x6f, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6e, 124 | 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x63, 0x6e, 0x74, 0x42, 0x2e, 0x5a, 0x2c, 125 | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2d, 0x67, 0x6f, 0x2d, 0x73, 0x65, 126 | 0x6e, 0x64, 0x65, 0x72, 0x2d, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2f, 0x72, 0x65, 0x6d, 127 | 0x6f, 0x74, 0x65, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 128 | 0x6f, 0x74, 0x6f, 0x33, 129 | } 130 | 131 | var ( 132 | file_protos_proto_rawDescOnce sync.Once 133 | file_protos_proto_rawDescData = file_protos_proto_rawDesc 134 | ) 135 | 136 | func file_protos_proto_rawDescGZIP() []byte { 137 | file_protos_proto_rawDescOnce.Do(func() { 138 | file_protos_proto_rawDescData = protoimpl.X.CompressGZIP(file_protos_proto_rawDescData) 139 | }) 140 | return file_protos_proto_rawDescData 141 | } 142 | 143 | var file_protos_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 144 | var file_protos_proto_goTypes = []interface{}{ 145 | (*Ping)(nil), // 0: messages.Ping 146 | (*Pong)(nil), // 1: messages.Pong 147 | } 148 | var file_protos_proto_depIdxs = []int32{ 149 | 0, // [0:0] is the sub-list for method output_type 150 | 0, // [0:0] is the sub-list for method input_type 151 | 0, // [0:0] is the sub-list for extension type_name 152 | 0, // [0:0] is the sub-list for extension extendee 153 | 0, // [0:0] is the sub-list for field type_name 154 | } 155 | 156 | func init() { file_protos_proto_init() } 157 | func file_protos_proto_init() { 158 | if File_protos_proto != nil { 159 | return 160 | } 161 | if !protoimpl.UnsafeEnabled { 162 | file_protos_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 163 | switch v := v.(*Ping); i { 164 | case 0: 165 | return &v.state 166 | case 1: 167 | return &v.sizeCache 168 | case 2: 169 | return &v.unknownFields 170 | default: 171 | return nil 172 | } 173 | } 174 | file_protos_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 175 | switch v := v.(*Pong); i { 176 | case 0: 177 | return &v.state 178 | case 1: 179 | return &v.sizeCache 180 | case 2: 181 | return &v.unknownFields 182 | default: 183 | return nil 184 | } 185 | } 186 | } 187 | type x struct{} 188 | out := protoimpl.TypeBuilder{ 189 | File: protoimpl.DescBuilder{ 190 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 191 | RawDescriptor: file_protos_proto_rawDesc, 192 | NumEnums: 0, 193 | NumMessages: 2, 194 | NumExtensions: 0, 195 | NumServices: 0, 196 | }, 197 | GoTypes: file_protos_proto_goTypes, 198 | DependencyIndexes: file_protos_proto_depIdxs, 199 | MessageInfos: file_protos_proto_msgTypes, 200 | }.Build() 201 | File_protos_proto = out.File 202 | file_protos_proto_rawDesc = nil 203 | file_protos_proto_goTypes = nil 204 | file_protos_proto_depIdxs = nil 205 | } 206 | -------------------------------------------------------------------------------- /cluster/messages/protos.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // versions: 3 | // protoc-gen-go v1.26.0 4 | // protoc v3.21.3 5 | // source: protos.proto 6 | 7 | package messages 8 | 9 | import ( 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 | reflect "reflect" 13 | sync "sync" 14 | ) 15 | 16 | const ( 17 | // Verify that this generated code is sufficiently up-to-date. 18 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 | // Verify that runtime/protoimpl is sufficiently up-to-date. 20 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 | ) 22 | 23 | type PingMessage struct { 24 | state protoimpl.MessageState 25 | sizeCache protoimpl.SizeCache 26 | unknownFields protoimpl.UnknownFields 27 | 28 | Cnt uint64 `protobuf:"varint,1,opt,name=cnt,proto3" json:"cnt,omitempty"` 29 | } 30 | 31 | func (x *PingMessage) Reset() { 32 | *x = PingMessage{} 33 | if protoimpl.UnsafeEnabled { 34 | mi := &file_protos_proto_msgTypes[0] 35 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 36 | ms.StoreMessageInfo(mi) 37 | } 38 | } 39 | 40 | func (x *PingMessage) String() string { 41 | return protoimpl.X.MessageStringOf(x) 42 | } 43 | 44 | func (*PingMessage) ProtoMessage() {} 45 | 46 | func (x *PingMessage) ProtoReflect() protoreflect.Message { 47 | mi := &file_protos_proto_msgTypes[0] 48 | if protoimpl.UnsafeEnabled && x != nil { 49 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 50 | if ms.LoadMessageInfo() == nil { 51 | ms.StoreMessageInfo(mi) 52 | } 53 | return ms 54 | } 55 | return mi.MessageOf(x) 56 | } 57 | 58 | // Deprecated: Use PingMessage.ProtoReflect.Descriptor instead. 59 | func (*PingMessage) Descriptor() ([]byte, []int) { 60 | return file_protos_proto_rawDescGZIP(), []int{0} 61 | } 62 | 63 | func (x *PingMessage) GetCnt() uint64 { 64 | if x != nil { 65 | return x.Cnt 66 | } 67 | return 0 68 | } 69 | 70 | type PongMessage struct { 71 | state protoimpl.MessageState 72 | sizeCache protoimpl.SizeCache 73 | unknownFields protoimpl.UnknownFields 74 | 75 | Cnt uint64 `protobuf:"varint,1,opt,name=cnt,proto3" json:"cnt,omitempty"` 76 | } 77 | 78 | func (x *PongMessage) Reset() { 79 | *x = PongMessage{} 80 | if protoimpl.UnsafeEnabled { 81 | mi := &file_protos_proto_msgTypes[1] 82 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 83 | ms.StoreMessageInfo(mi) 84 | } 85 | } 86 | 87 | func (x *PongMessage) String() string { 88 | return protoimpl.X.MessageStringOf(x) 89 | } 90 | 91 | func (*PongMessage) ProtoMessage() {} 92 | 93 | func (x *PongMessage) ProtoReflect() protoreflect.Message { 94 | mi := &file_protos_proto_msgTypes[1] 95 | if protoimpl.UnsafeEnabled && x != nil { 96 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97 | if ms.LoadMessageInfo() == nil { 98 | ms.StoreMessageInfo(mi) 99 | } 100 | return ms 101 | } 102 | return mi.MessageOf(x) 103 | } 104 | 105 | // Deprecated: Use PongMessage.ProtoReflect.Descriptor instead. 106 | func (*PongMessage) Descriptor() ([]byte, []int) { 107 | return file_protos_proto_rawDescGZIP(), []int{1} 108 | } 109 | 110 | func (x *PongMessage) GetCnt() uint64 { 111 | if x != nil { 112 | return x.Cnt 113 | } 114 | return 0 115 | } 116 | 117 | var File_protos_proto protoreflect.FileDescriptor 118 | 119 | var file_protos_proto_rawDesc = []byte{ 120 | 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 121 | 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x69, 0x6e, 0x67, 122 | 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6e, 0x74, 0x18, 0x01, 123 | 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x63, 0x6e, 0x74, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x6f, 0x6e, 124 | 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6e, 0x74, 0x18, 125 | 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x63, 0x6e, 0x74, 0x32, 0x40, 0x0a, 0x06, 0x50, 0x6f, 126 | 0x6e, 0x67, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x15, 0x2e, 0x6d, 127 | 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 128 | 0x61, 0x67, 0x65, 0x1a, 0x15, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x50, 129 | 0x6f, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x42, 0x2f, 0x5a, 0x2d, 130 | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2d, 0x67, 0x6f, 0x2d, 0x73, 0x65, 131 | 0x6e, 0x64, 0x65, 0x72, 0x2d, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x75, 132 | 0x73, 0x74, 0x65, 0x72, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x62, 0x06, 0x70, 133 | 0x72, 0x6f, 0x74, 0x6f, 0x33, 134 | } 135 | 136 | var ( 137 | file_protos_proto_rawDescOnce sync.Once 138 | file_protos_proto_rawDescData = file_protos_proto_rawDesc 139 | ) 140 | 141 | func file_protos_proto_rawDescGZIP() []byte { 142 | file_protos_proto_rawDescOnce.Do(func() { 143 | file_protos_proto_rawDescData = protoimpl.X.CompressGZIP(file_protos_proto_rawDescData) 144 | }) 145 | return file_protos_proto_rawDescData 146 | } 147 | 148 | var file_protos_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 149 | var file_protos_proto_goTypes = []interface{}{ 150 | (*PingMessage)(nil), // 0: messages.PingMessage 151 | (*PongMessage)(nil), // 1: messages.PongMessage 152 | } 153 | var file_protos_proto_depIdxs = []int32{ 154 | 0, // 0: messages.Ponger.Ping:input_type -> messages.PingMessage 155 | 1, // 1: messages.Ponger.Ping:output_type -> messages.PongMessage 156 | 1, // [1:2] is the sub-list for method output_type 157 | 0, // [0:1] is the sub-list for method input_type 158 | 0, // [0:0] is the sub-list for extension type_name 159 | 0, // [0:0] is the sub-list for extension extendee 160 | 0, // [0:0] is the sub-list for field type_name 161 | } 162 | 163 | func init() { file_protos_proto_init() } 164 | func file_protos_proto_init() { 165 | if File_protos_proto != nil { 166 | return 167 | } 168 | if !protoimpl.UnsafeEnabled { 169 | file_protos_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 170 | switch v := v.(*PingMessage); i { 171 | case 0: 172 | return &v.state 173 | case 1: 174 | return &v.sizeCache 175 | case 2: 176 | return &v.unknownFields 177 | default: 178 | return nil 179 | } 180 | } 181 | file_protos_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 182 | switch v := v.(*PongMessage); i { 183 | case 0: 184 | return &v.state 185 | case 1: 186 | return &v.sizeCache 187 | case 2: 188 | return &v.unknownFields 189 | default: 190 | return nil 191 | } 192 | } 193 | } 194 | type x struct{} 195 | out := protoimpl.TypeBuilder{ 196 | File: protoimpl.DescBuilder{ 197 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 198 | RawDescriptor: file_protos_proto_rawDesc, 199 | NumEnums: 0, 200 | NumMessages: 2, 201 | NumExtensions: 0, 202 | NumServices: 1, 203 | }, 204 | GoTypes: file_protos_proto_goTypes, 205 | DependencyIndexes: file_protos_proto_depIdxs, 206 | MessageInfos: file_protos_proto_msgTypes, 207 | }.Build() 208 | File_protos_proto = out.File 209 | file_protos_proto_rawDesc = nil 210 | file_protos_proto_goTypes = nil 211 | file_protos_proto_depIdxs = nil 212 | } 213 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 6 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 7 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= 8 | cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= 9 | cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= 10 | cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= 11 | cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= 12 | cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= 13 | cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= 14 | cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= 15 | cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= 16 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 17 | cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= 18 | cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= 19 | cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= 20 | cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= 21 | cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= 22 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 23 | cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= 24 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 25 | cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= 26 | cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= 27 | cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= 28 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 29 | cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= 30 | cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= 31 | cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= 32 | cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= 33 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 34 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 35 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 36 | github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= 37 | github.com/Workiva/go-datastructures v1.0.53 h1:J6Y/52yX10Xc5JjXmGtWoSSxs3mZnGSaq37xZZh7Yig= 38 | github.com/Workiva/go-datastructures v1.0.53/go.mod h1:1yZL+zfsztete+ePzZz/Zb1/t5BnDuE2Ya2MMGhzP6A= 39 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 40 | github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 41 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 42 | github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 43 | github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= 44 | github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= 45 | github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= 46 | github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= 47 | github.com/armon/go-metrics v0.4.0 h1:yCQqn7dwca4ITXb+CbubHmedzaQYHhNhrEXLYUeEe8Q= 48 | github.com/armon/go-metrics v0.4.0/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= 49 | github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= 50 | github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= 51 | github.com/asynkron/gofun v0.0.0-20220329210725-34fed760f4c2 h1:jEsFZ9d/ieJGVrx3fSPi8oe/qv21fRmyUL5cS3ZEn5A= 52 | github.com/asynkron/gofun v0.0.0-20220329210725-34fed760f4c2/go.mod h1:5GMOSqaYxNWwuVRWyampTPJEntwz7Mj9J8v1a7gSU2E= 53 | github.com/asynkron/protoactor-go v0.0.0-20220616142548-afd2d973a1d1 h1:6F78LldraDX6+Pv7H73+q+Q2nN8nqPfdz9ihks4kr5U= 54 | github.com/asynkron/protoactor-go v0.0.0-20220616142548-afd2d973a1d1/go.mod h1:OnIxGbrnX2NFZaOolL4Z3mlSC3ERyqWnz9mepxvdCj0= 55 | github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= 56 | github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= 57 | github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= 58 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 59 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= 60 | github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= 61 | github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= 62 | github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= 63 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 64 | github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 65 | github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= 66 | github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 67 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 68 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 69 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 70 | github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= 71 | github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= 72 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 73 | github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= 74 | github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= 75 | github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= 76 | github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= 77 | github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= 78 | github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= 79 | github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM= 80 | github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= 81 | github.com/coreos/go-systemd/v22 v22.3.2 h1:D9/bQk5vlXQFZ6Kwuu6zaiXJ9oTPe68++AzAJc1DzSI= 82 | github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= 83 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 84 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 85 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 86 | github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= 87 | github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= 88 | github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= 89 | github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 90 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 91 | github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= 92 | github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= 93 | github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= 94 | github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= 95 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 96 | github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= 97 | github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= 98 | github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= 99 | github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= 100 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 101 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 102 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 103 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 104 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 105 | github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 106 | github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= 107 | github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= 108 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 109 | github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= 110 | github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= 111 | github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= 112 | github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= 113 | github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= 114 | github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= 115 | github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= 116 | github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= 117 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 118 | github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= 119 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 120 | github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= 121 | github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= 122 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 123 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 124 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 125 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 126 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 127 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 128 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 129 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 130 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 131 | github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 132 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= 133 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 134 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 135 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 136 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 137 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 138 | github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= 139 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 140 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 141 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 142 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 143 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 144 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 145 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 146 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 147 | github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= 148 | github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= 149 | github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= 150 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 151 | github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo= 152 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 153 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 154 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 155 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 156 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 157 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 158 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 159 | github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 160 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 161 | github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 162 | github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 163 | github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o= 164 | github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= 165 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 166 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 167 | github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 168 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 169 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 170 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 171 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 172 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 173 | github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 174 | github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 175 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 176 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 177 | github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= 178 | github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 179 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 180 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 181 | github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= 182 | github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= 183 | github.com/hashicorp/consul/api v1.12.0 h1:k3y1FYv6nuKyNTqj6w9gXOx5r5CfLj/k/euUeBXj1OY= 184 | github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= 185 | github.com/hashicorp/consul/sdk v0.8.0 h1:OJtKBtEjboEZvG6AOUdh4Z1Zbyu0WcxQ0qatRrZHTVU= 186 | github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= 187 | github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= 188 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 189 | github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= 190 | github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= 191 | github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= 192 | github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= 193 | github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= 194 | github.com/hashicorp/go-hclog v1.2.0 h1:La19f8d7WIlm4ogzNHB0JGqs5AUDAZ2UfCY4sJXcJdM= 195 | github.com/hashicorp/go-hclog v1.2.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= 196 | github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= 197 | github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= 198 | github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= 199 | github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= 200 | github.com/hashicorp/go-msgpack v0.5.5 h1:i9R9JSrqIz0QVLz3sz+i3YJdT7TTSLcfLLzJi9aZTuI= 201 | github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= 202 | github.com/hashicorp/go-multierror v1.1.0 h1:B9UzwGQJehnUY1yNrnwREHc3fGbC2xefo8g4TbElacI= 203 | github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= 204 | github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= 205 | github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= 206 | github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= 207 | github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= 208 | github.com/hashicorp/go-sockaddr v1.0.2 h1:ztczhD1jLxIRjVejw8gFomI1BQZOe2WoVOu0SyteCQc= 209 | github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= 210 | github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 211 | github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 212 | github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= 213 | github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 214 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 215 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 216 | github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc= 217 | github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= 218 | github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= 219 | github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= 220 | github.com/hashicorp/memberlist v0.3.0 h1:8+567mCcFDnS5ADl7lrpxPMWiFCElyUEeW0gtj34fMA= 221 | github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= 222 | github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= 223 | github.com/hashicorp/serf v0.9.8 h1:JGklO/2Drf1QGa312EieQN3zhxQ+aJg6pG+aC3MFaVo= 224 | github.com/hashicorp/serf v0.9.8/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= 225 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 226 | github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= 227 | github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 228 | github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 229 | github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 230 | github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 231 | github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= 232 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 233 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 234 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 235 | github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= 236 | github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= 237 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 238 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 239 | github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 240 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 241 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 242 | github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= 243 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 244 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 245 | github.com/labstack/echo v3.3.10+incompatible h1:pGRcYk231ExFAyoAjAfD85kQzRJCRI8bbnE7CX5OEgg= 246 | github.com/labstack/echo v3.3.10+incompatible/go.mod h1:0INS7j/VjnFxD4E2wkz67b8cVwCLbBmJyDaka6Cmk1s= 247 | github.com/labstack/gommon v0.3.1 h1:OomWaJXm7xR6L1HmEtGyQf26TEn7V6X88mktX9kee9o= 248 | github.com/labstack/gommon v0.3.1/go.mod h1:uW6kP17uPlLJsD3ijUYn3/M5bAxtlZhMI6m3MFxTMTM= 249 | github.com/lithammer/shortuuid/v4 v4.0.0 h1:QRbbVkfgNippHOS8PXDkti4NaWeyYfcBTHtw7k08o4c= 250 | github.com/lithammer/shortuuid/v4 v4.0.0/go.mod h1:Zs8puNcrvf2rV9rTH51ZLLcj7ZXqQI3lv67aw4KiB1Y= 251 | github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= 252 | github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= 253 | github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= 254 | github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= 255 | github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= 256 | github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= 257 | github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= 258 | github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= 259 | github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= 260 | github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= 261 | github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= 262 | github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= 263 | github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= 264 | github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= 265 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 266 | github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 h1:I0XW9+e1XWDxdcEniV4rQAIOPUGDq67JSCiRCgGCZLI= 267 | github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= 268 | github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= 269 | github.com/miekg/dns v1.1.41 h1:WMszZWJG0XmzbK9FEmzH2TVcqYzFesusSIB41b8KHxY= 270 | github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= 271 | github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= 272 | github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= 273 | github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= 274 | github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= 275 | github.com/mitchellh/go-testing-interface v1.14.0 h1:/x0XQ6h+3U3nAyk1yx+bHPURrKa9sVVvYbuqZ7pIAtI= 276 | github.com/mitchellh/go-testing-interface v1.14.0/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= 277 | github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 278 | github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 279 | github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= 280 | github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= 281 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 282 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 283 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 284 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 285 | github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= 286 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 287 | github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 288 | github.com/orcaman/concurrent-map v1.0.0 h1:I/2A2XPCb4IuQWcQhBhSwGfiuybl/J0ev9HDbW65HOY= 289 | github.com/orcaman/concurrent-map v1.0.0/go.mod h1:Lu3tH6HLW3feq74c2GC+jIMS/K2CFcDWnWD9XkenwhI= 290 | github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= 291 | github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= 292 | github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= 293 | github.com/philhofer/fwd v1.1.1/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= 294 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 295 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 296 | github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= 297 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 298 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 299 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 300 | github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= 301 | github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= 302 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 303 | github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= 304 | github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= 305 | github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= 306 | github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= 307 | github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= 308 | github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= 309 | github.com/prometheus/client_golang v1.12.2 h1:51L9cDoUHVrXx4zWYlcLQIZ+d+VXHgqnYKkIuq4g/34= 310 | github.com/prometheus/client_golang v1.12.2/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= 311 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 312 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 313 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 314 | github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= 315 | github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 316 | github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 317 | github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= 318 | github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= 319 | github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= 320 | github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= 321 | github.com/prometheus/common v0.34.0 h1:RBmGO9d/FVjqHT0yUGQwBJhkwKV+wPCn7KGpvfab0uE= 322 | github.com/prometheus/common v0.34.0/go.mod h1:gB3sOl7P0TvJabZpLY5uQMpUqRCPPCyRLCZYc7JZTNE= 323 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 324 | github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 325 | github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= 326 | github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= 327 | github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= 328 | github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= 329 | github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= 330 | github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= 331 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 332 | github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= 333 | github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I= 334 | github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= 335 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 336 | github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= 337 | github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= 338 | github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= 339 | github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= 340 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 341 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 342 | github.com/stretchr/objx v0.3.0 h1:NGXK3lHquSN08v5vWalVI/L8XU9hdzE/G6xsrze47As= 343 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 344 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 345 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 346 | github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= 347 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 348 | github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= 349 | github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 350 | github.com/tinylib/msgp v1.1.5/go.mod h1:eQsjooMTnV42mHu917E26IogZ2930nFyBQdofk10Udg= 351 | github.com/ttacon/chalk v0.0.0-20160626202418-22c06c80ed31/go.mod h1:onvgF043R+lC5RZ8IT9rBXDaEDnpnw/Cl+HFiw+v/7Q= 352 | github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= 353 | github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= 354 | github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= 355 | github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4= 356 | github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= 357 | github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 358 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 359 | github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 360 | github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 361 | github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= 362 | go.etcd.io/etcd/api/v3 v3.5.4 h1:OHVyt3TopwtUQ2GKdd5wu3PmmipR4FTwCqoEjSyRdIc= 363 | go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= 364 | go.etcd.io/etcd/client/pkg/v3 v3.5.4 h1:lrneYvz923dvC14R54XcA7FXoZ3mlGZAgmwhfm7HqOg= 365 | go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= 366 | go.etcd.io/etcd/client/v3 v3.5.4 h1:p83BUL3tAYS0OT/r0qglgc3M1JjhM0diV8DSWAhVXv4= 367 | go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= 368 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 369 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 370 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 371 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 372 | go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 373 | go.opentelemetry.io/otel v1.6.0/go.mod h1:bfJD2DZVw0LBxghOTlgnlI0CV3hLDu9XF/QKOUXMTQQ= 374 | go.opentelemetry.io/otel v1.7.0 h1:Z2lA3Tdch0iDcrhJXDIlC94XE+bxok1F9B+4Lz/lGsM= 375 | go.opentelemetry.io/otel v1.7.0/go.mod h1:5BdUoMIz5WEs0vt0CUEMtSSaTSHBBVwrhnz7+nrD5xk= 376 | go.opentelemetry.io/otel/exporters/prometheus v0.30.0 h1:YXo5ZY5nofaEYMCMTTMaRH2cLDZB8+0UGuk5RwMfIo0= 377 | go.opentelemetry.io/otel/exporters/prometheus v0.30.0/go.mod h1:qN5feW+0/d661KDtJuATEmHtw5bKBK7NSvNEP927zSs= 378 | go.opentelemetry.io/otel/metric v0.28.0/go.mod h1:TrzsfQAmQaB1PDcdhBauLMk7nyyg9hm+GoQq/ekE9Iw= 379 | go.opentelemetry.io/otel/metric v0.30.0 h1:Hs8eQZ8aQgs0U49diZoaS6Uaxw3+bBE3lcMUKBFIk3c= 380 | go.opentelemetry.io/otel/metric v0.30.0/go.mod h1:/ShZ7+TS4dHzDFmfi1kSXMhMVubNoP0oIaBp70J6UXU= 381 | go.opentelemetry.io/otel/sdk v1.6.0/go.mod h1:PjLRUfDsoPy0zl7yrDGSUqjj43tL7rEtFdCEiGlxXRM= 382 | go.opentelemetry.io/otel/sdk v1.7.0 h1:4OmStpcKVOfvDOgCt7UriAPtKolwIhxpnSNI/yK+1B0= 383 | go.opentelemetry.io/otel/sdk v1.7.0/go.mod h1:uTEOTwaqIVuTGiJN7ii13Ibp75wJmYUDe374q6cZwUU= 384 | go.opentelemetry.io/otel/sdk/export/metric v0.28.0 h1:Ob5e5X1BsFPs8kfEuonHjGUu0Gt8rO/rH4KqyvIS2ns= 385 | go.opentelemetry.io/otel/sdk/export/metric v0.28.0/go.mod h1:2HTuv+l3ia7NquArnWavCoKhXi9yBJPpKqMHr1trKa0= 386 | go.opentelemetry.io/otel/sdk/metric v0.28.0/go.mod h1:DqJmT0ovBgoW6TJ8CAQyTnwxZPIp3KWtCiDDZ1uHAzU= 387 | go.opentelemetry.io/otel/sdk/metric v0.30.0 h1:XTqQ4y3erR2Oj8xSAOL5ovO5011ch2ELg51z4fVkpME= 388 | go.opentelemetry.io/otel/sdk/metric v0.30.0/go.mod h1:8AKFRi5HyvTR0RRty3paN1aMC9HMT+NzcEhw/BLkLX8= 389 | go.opentelemetry.io/otel/trace v1.6.0/go.mod h1:qs7BrU5cZ8dXQHBGxHMOxwME/27YH2qEp4/+tZLLwJE= 390 | go.opentelemetry.io/otel/trace v1.7.0 h1:O37Iogk1lEkMRXewVtZ1BBTVn5JEp8GrJvP92bJqC6o= 391 | go.opentelemetry.io/otel/trace v1.7.0/go.mod h1:fzLSB9nqR2eXzxPXb2JW9IKE+ScyXA48yyE4TNvoHqU= 392 | go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= 393 | go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= 394 | go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= 395 | go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= 396 | go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= 397 | go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= 398 | go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= 399 | go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8= 400 | go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= 401 | go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= 402 | go.uber.org/zap v1.21.0 h1:WefMeulhovoZ2sYXz7st6K0sLj7bBhpiFaud4r4zST8= 403 | go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= 404 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 405 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 406 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 407 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 408 | golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= 409 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 410 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 411 | golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e h1:T8NU3HyQ8ClP4SEE+KbFlg6n0NhuTsN4MyznaarGsZM= 412 | golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= 413 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 414 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 415 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 416 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 417 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 418 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 419 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 420 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 421 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= 422 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= 423 | golang.org/x/exp v0.0.0-20220518171630-0b5c67f07fdf h1:oXVg4h2qJDd9htKxb5SCpFBHLipW6hXmL3qpUixS2jw= 424 | golang.org/x/exp v0.0.0-20220518171630-0b5c67f07fdf/go.mod h1:yh0Ynu2b5ZUe3MQfp2nM0ecK7wsgouWTDN0FNeJuIys= 425 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 426 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 427 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 428 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 429 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 430 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 431 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 432 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 433 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 434 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 435 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 436 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 437 | golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 438 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 439 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 440 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 441 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 442 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 443 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 444 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 445 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 446 | golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 447 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 448 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 449 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 450 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 451 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 452 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 453 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 454 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 455 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 456 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 457 | golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 458 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 459 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 460 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 461 | golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 462 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 463 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 464 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 465 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 466 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 467 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 468 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 469 | golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 470 | golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 471 | golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 472 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 473 | golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 474 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 475 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 476 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 477 | golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 478 | golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= 479 | golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= 480 | golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= 481 | golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= 482 | golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= 483 | golang.org/x/net v0.0.0-20220526153639-5463443f8c37 h1:lUkvobShwKsOesNfWWlCS5q7fnbG1MEliIzwu886fn8= 484 | golang.org/x/net v0.0.0-20220526153639-5463443f8c37/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= 485 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 486 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 487 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 488 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 489 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 490 | golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 491 | golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= 492 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 493 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 494 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 495 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 496 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 497 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 498 | golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 499 | golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 500 | golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 501 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 502 | golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 503 | golang.org/x/sync v0.0.0-20220513210516-0976fa681c29 h1:w8s32wxx3sY+OjLlv9qltkLU5yvJzxjjgiHWLjdIcw4= 504 | golang.org/x/sync v0.0.0-20220513210516-0976fa681c29/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 505 | golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 506 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 507 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 508 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 509 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 510 | golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 511 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 512 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 513 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 514 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 515 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 516 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 517 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 518 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 519 | golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 520 | golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 521 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 522 | golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 523 | golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 524 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 525 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 526 | golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 527 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 528 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 529 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 530 | golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 531 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 532 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 533 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 534 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 535 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 536 | golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 537 | golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 538 | golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 539 | golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 540 | golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 541 | golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 542 | golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 543 | golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 544 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 545 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 546 | golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 547 | golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 548 | golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 549 | golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 550 | golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 551 | golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 552 | golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 553 | golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 554 | golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 555 | golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 556 | golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 557 | golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 558 | golang.org/x/sys v0.0.0-20211103235746-7861aae1554b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 559 | golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 560 | golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 561 | golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k= 562 | golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 563 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 564 | golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= 565 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 566 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 567 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 568 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 569 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 570 | golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 571 | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 572 | golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= 573 | golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= 574 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 575 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 576 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 577 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 578 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 579 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 580 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 581 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 582 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 583 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 584 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 585 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 586 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 587 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 588 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 589 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 590 | golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 591 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 592 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 593 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 594 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 595 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 596 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 597 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 598 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 599 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 600 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 601 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 602 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 603 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 604 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 605 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 606 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 607 | golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 608 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 609 | golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 610 | golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= 611 | golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 612 | golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 613 | golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 614 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 615 | golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 616 | golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 617 | golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 618 | golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 619 | golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 620 | golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 621 | golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= 622 | golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= 623 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 624 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 625 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 626 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= 627 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 628 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 629 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 630 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 631 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 632 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 633 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 634 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 635 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 636 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 637 | google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 638 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 639 | google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 640 | google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 641 | google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 642 | google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= 643 | google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= 644 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 645 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 646 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 647 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 648 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 649 | google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 650 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 651 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 652 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 653 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 654 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 655 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 656 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 657 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 658 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 659 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 660 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 661 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 662 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 663 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 664 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= 665 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 666 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 667 | google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 668 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 669 | google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 670 | google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 671 | google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 672 | google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 673 | google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 674 | google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= 675 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 676 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= 677 | google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 678 | google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 679 | google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 680 | google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= 681 | google.golang.org/genproto v0.0.0-20220526192754-51939a95c655 h1:56rmjc5LUAanErbiNrY+s/Nd47wDQEJkpqS7i43M1I0= 682 | google.golang.org/genproto v0.0.0-20220526192754-51939a95c655/go.mod h1:yKyY4AMRwFiC8yMMNaMi+RkCnjZJt9LoWuvhXjMs+To= 683 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 684 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 685 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 686 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 687 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= 688 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 689 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 690 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 691 | google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= 692 | google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= 693 | google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 694 | google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 695 | google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= 696 | google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= 697 | google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= 698 | google.golang.org/grpc v1.46.2 h1:u+MLGgVf7vRdjEYZ8wDFhAVNmhkbJ5hmrA1LMWK1CAQ= 699 | google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= 700 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 701 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 702 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 703 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 704 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 705 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 706 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 707 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 708 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 709 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 710 | google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= 711 | google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= 712 | google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= 713 | google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= 714 | google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= 715 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 716 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 717 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 718 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 719 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 720 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 721 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 722 | gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 723 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 724 | gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 725 | gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 726 | gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 727 | gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= 728 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 729 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 730 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 731 | gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 732 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 733 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 734 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 735 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 736 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 737 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 738 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 739 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 740 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 741 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 742 | sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= 743 | --------------------------------------------------------------------------------