├── deploy.sh ├── .envExample ├── docs ├── agent.jpg └── overall.jpg ├── Dockerfile ├── .gitignore ├── run.sh ├── pkg ├── repository │ ├── database.go │ ├── in_memory_repo.go │ └── postgres.go ├── broker │ ├── errors.go │ └── broker.go └── metric │ └── metrics.go ├── k8 ├── service.yml └── deployment.yml ├── internal └── broker │ ├── topicStorage.go │ ├── subscriber.go │ ├── module.go │ ├── topic.go │ └── module_test.go ├── .evans.toml ├── go.mod ├── api ├── proto │ ├── broker.proto │ ├── broker_grpc.pb.go │ └── broker.pb.go └── server │ └── server.go ├── client └── client.go ├── README.md ├── main.go └── go.sum /deploy.sh: -------------------------------------------------------------------------------- 1 | !/bin/bash 2 | echo "folan" -------------------------------------------------------------------------------- /.envExample: -------------------------------------------------------------------------------- 1 | HOST=test 2 | PORT=test 3 | PUSER=test 4 | PASSWORD=test 5 | DB=test -------------------------------------------------------------------------------- /docs/agent.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinamna/ChizBroker/HEAD/docs/agent.jpg -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang 2 | COPY ./build/server/broker /bin/broker 3 | CMD /bin/broker -------------------------------------------------------------------------------- /docs/overall.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sinamna/ChizBroker/HEAD/docs/overall.jpg -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | .idea/ 3 | cpu.pprof 4 | mem.pprof 5 | trace.out 6 | .env 7 | k8/sinaDbConfig.yml -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | go build -o build/server/broker 4 | docker build . -t broker 5 | docker run broker -------------------------------------------------------------------------------- /pkg/repository/database.go: -------------------------------------------------------------------------------- 1 | package repository 2 | 3 | import "therealbroker/pkg/broker" 4 | 5 | type Database interface{ 6 | SaveMessage(msg broker.Message, subject string)int 7 | FetchMessage(id int, subject string) (broker.Message, error) 8 | DeleteMessage(id int, subject string) 9 | } 10 | -------------------------------------------------------------------------------- /k8/service.yml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: broker-sina-svc 5 | namespace: bootcamp 6 | spec: 7 | selector: 8 | app: broker-sina 9 | ports: 10 | - name: grpc 11 | port: 8086 12 | targetPort: 8086 13 | - name: prometheus 14 | port: 8000 15 | targetPort: 8000 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /pkg/broker/errors.go: -------------------------------------------------------------------------------- 1 | package broker 2 | 3 | import "errors" 4 | 5 | var ( 6 | // Use this error for the calls that are coming after that 7 | // server is shutting down 8 | ErrUnavailable = errors.New("service is unavailable") 9 | // Use this error when the message with provided id is not available 10 | ErrInvalidID = errors.New("message with id provided is not valid or never published") 11 | // Use this error when message had been published, but it is not 12 | // available anymore because the expiration time has reached. 13 | ErrExpiredID = errors.New("message with id provided is expired") 14 | ) 15 | -------------------------------------------------------------------------------- /internal/broker/topicStorage.go: -------------------------------------------------------------------------------- 1 | package broker 2 | 3 | import "sync" 4 | 5 | type TopicStorage struct{ 6 | topics map[string]*Topic 7 | sync.RWMutex 8 | } 9 | 10 | func (ts *TopicStorage) GetTopic(name string)(*Topic,bool){ 11 | ts.RLock() 12 | defer ts.RUnlock() 13 | topic, err := ts.topics[name] 14 | return topic,err 15 | } 16 | func (ts *TopicStorage) CreateTopic(name string)*Topic{ 17 | ts.Lock() 18 | defer ts.Unlock() 19 | newTopic:= NewTopic(name) 20 | ts.topics[name] = newTopic 21 | return newTopic 22 | } 23 | func CreateTopicStorage()*TopicStorage{ 24 | return &TopicStorage{ 25 | topics: map[string]*Topic{}, 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /.evans.toml: -------------------------------------------------------------------------------- 1 | 2 | [default] 3 | package = "" 4 | protofile = [""] 5 | protopath = [""] 6 | service = "" 7 | 8 | [log] 9 | prefix = "evans: " 10 | 11 | [meta] 12 | autoupdate = false 13 | configversion = "0.10.0" 14 | updatelevel = "patch" 15 | 16 | [repl] 17 | coloredoutput = true 18 | historysize = 100 19 | inputpromptformat = "{ancestor}{name} ({type}) => " 20 | promptformat = "{package}.{service}@{addr}:{port}" 21 | silent = false 22 | splashtextpath = "" 23 | 24 | [request] 25 | cacertfile = "" 26 | certfile = "" 27 | certkeyfile = "" 28 | web = false 29 | 30 | [request.header] 31 | grpc-client = ["evans"] 32 | 33 | [server] 34 | host = "127.0.0.1" 35 | name = "" 36 | port = "50051" 37 | reflection = false 38 | tls = false 39 | -------------------------------------------------------------------------------- /k8/deployment.yml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: broker-sina 5 | namespace: bootcamp 6 | labels: 7 | app: broker-sina 8 | spec: 9 | selector: 10 | matchLabels: 11 | app: broker-sina 12 | template: 13 | metadata: 14 | labels: 15 | app: broker-sina 16 | service_monitoring: bootcamp 17 | spec: 18 | containers: 19 | - name: sina-broker-container 20 | image: sinamna/bale_broker:v27 21 | resources: 22 | requests: 23 | memory: "512Mi" 24 | cpu: "1" 25 | limits: 26 | memory: "1Gi" 27 | cpu: "1" 28 | ports: 29 | - name: grpc 30 | containerPort: 8086 31 | - name: prometheus 32 | containerPort: 8000 33 | envFrom: 34 | - configMapRef: 35 | name: sina-db-config 36 | replicas: 1 37 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module therealbroker 2 | 3 | go 1.15 4 | 5 | require ( 6 | github.com/google/go-cmp v0.5.6 // indirect 7 | github.com/joho/godotenv v1.3.0 8 | github.com/kr/pretty v0.3.0 // indirect 9 | github.com/lib/pq v1.10.2 10 | github.com/pkg/profile v1.6.0 11 | github.com/prometheus/client_golang v1.11.0 12 | github.com/prometheus/common v0.30.0 // indirect 13 | github.com/prometheus/procfs v0.7.3 // indirect 14 | github.com/rogpeppe/go-internal v1.8.0 // indirect 15 | github.com/stretchr/testify v1.7.0 16 | golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d // indirect 17 | golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55 // indirect 18 | golang.org/x/text v0.3.7 // indirect 19 | google.golang.org/genproto v0.0.0-20210820002220-43fce44e7af1 // indirect 20 | google.golang.org/grpc v1.40.0 21 | google.golang.org/protobuf v1.27.1 22 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect 23 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect 24 | ) 25 | -------------------------------------------------------------------------------- /api/proto/broker.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package broker; 4 | 5 | option go_package = "broker/api/proto"; 6 | 7 | service Broker { 8 | // Publish returns an id if the delivery is successful 9 | // If broker is closed, should return Unavailable 10 | rpc Publish (PublishRequest) returns (PublishResponse); 11 | // Subscribe returns an stream of messages 12 | // If broker is closed, should return Unavailable 13 | rpc Subscribe(SubscribeRequest) returns (stream MessageResponse); 14 | // Fetch returns the proper message body, if its present 15 | // If broker is closed, should return Unavailable 16 | // If the provided id is expired or not present, 17 | // should return InvalidArgument 18 | rpc Fetch(FetchRequest) returns (MessageResponse); 19 | } 20 | 21 | message PublishRequest { 22 | string subject = 1; 23 | bytes body = 2; 24 | int32 expirationSeconds = 3; 25 | } 26 | 27 | message PublishResponse { 28 | int32 id = 1; 29 | } 30 | 31 | message SubscribeRequest { 32 | string subject = 1; 33 | } 34 | 35 | message MessageResponse { 36 | bytes body = 1; 37 | } 38 | 39 | message FetchRequest { 40 | string subject = 1; 41 | int32 id = 2; 42 | } -------------------------------------------------------------------------------- /internal/broker/subscriber.go: -------------------------------------------------------------------------------- 1 | package broker 2 | 3 | import ( 4 | "context" 5 | "therealbroker/pkg/broker" 6 | ) 7 | 8 | var subscriberId = AutoIncId{id: 1} 9 | 10 | type Subscriber struct { 11 | //sync.Mutex 12 | Id int 13 | Channel chan broker.Message 14 | Ctx context.Context 15 | unSubSignal chan *Subscriber 16 | RegisterChannel chan *broker.Message 17 | messages []*broker.Message 18 | } 19 | 20 | func (s *Subscriber) SendMessages() { 21 | for { 22 | 23 | select { 24 | case <-s.Ctx.Done(): 25 | go func() { s.unSubSignal <- s }() 26 | return 27 | case msg := <-s.RegisterChannel: 28 | s.Channel<-*msg 29 | //fmt.Println("message published") 30 | } 31 | 32 | } 33 | } 34 | func CreateNewSubscriber(ctx context.Context, ch chan broker.Message, unSubSignal chan *Subscriber) *Subscriber { 35 | newSub := &Subscriber{ 36 | Id: subscriberId.GetID(), 37 | Channel: ch, 38 | Ctx: ctx, 39 | unSubSignal: unSubSignal, 40 | RegisterChannel: make(chan *broker.Message), 41 | messages: make([]*broker.Message, 0), 42 | } 43 | go newSub.SendMessages() 44 | return newSub 45 | } 46 | -------------------------------------------------------------------------------- /client/client.go: -------------------------------------------------------------------------------- 1 | 2 | package main 3 | 4 | import ( 5 | "context" 6 | "fmt" 7 | "google.golang.org/grpc" 8 | "log" 9 | pb "therealbroker/api/proto" 10 | //"time" 11 | ) 12 | 13 | const address = "localhost:8086" 14 | 15 | func main() { 16 | conn, err := grpc.Dial(address, grpc.WithInsecure(), grpc.WithBlock()) 17 | if err != nil { 18 | log.Fatalf("did not connect: %v", err) 19 | } 20 | defer conn.Close() 21 | c := pb.NewBrokerClient(conn) 22 | counter:=0 23 | ids := make([]int, 0) 24 | for { 25 | func() { 26 | id, err := c.Publish(context.Background(), &pb.PublishRequest{ 27 | Subject: "test", 28 | Body: []byte("bruh"), 29 | ExpirationSeconds: 10, 30 | }) 31 | fmt.Println(id) 32 | ids=append(ids, int(id.Id)) 33 | if err != nil { 34 | fmt.Println(err) 35 | } 36 | counter++ 37 | fmt.Println(counter,"sent") 38 | ctx := context.WithValue(context.Background(), "a", "b") 39 | ch, _ := c.Subscribe(ctx, &pb.SubscribeRequest{Subject: "test"}) 40 | go func() { 41 | _, err := ch.Recv() 42 | //fmt.Println(response) 43 | if err!= nil{ 44 | fmt.Println(err) 45 | } 46 | }() 47 | //time.Sleep(time.Second) 48 | }() 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /pkg/repository/in_memory_repo.go: -------------------------------------------------------------------------------- 1 | package repository 2 | 3 | import ( 4 | "sync" 5 | "therealbroker/pkg/broker" 6 | ) 7 | 8 | type mapMemory struct{ 9 | sync.RWMutex 10 | messages map[int]*broker.Message 11 | } 12 | func (m *mapMemory) SaveMessage(id int, msg broker.Message, subject string){ 13 | m.Lock() 14 | defer m.Unlock() 15 | if msg.Expiration != 0 { 16 | m.messages[id]=&msg 17 | }else{ 18 | m.messages[id]=nil 19 | } 20 | //return nil 21 | } 22 | func (m *mapMemory) FetchMessage(id int, subject string)(broker.Message,error){ 23 | m.RLock() 24 | defer m.RUnlock() 25 | var fetchedMessage broker.Message 26 | message, existed := m.messages[id] 27 | if !existed { 28 | return fetchedMessage, broker.ErrInvalidID 29 | } else { 30 | if message == nil { 31 | return broker.Message{}, broker.ErrExpiredID 32 | } else { 33 | fetchedMessage = *message 34 | } 35 | } 36 | return fetchedMessage, nil 37 | } 38 | func (m *mapMemory) DeleteMessage(id int, subject string){ 39 | m.Lock() 40 | defer m.Unlock() 41 | delete(m.messages,id) 42 | //return / 43 | } 44 | // 45 | //func GetInMemoryDB()Database{ 46 | // return &mapMemory{ 47 | // messages: map[int]*broker.Message{}, 48 | // } 49 | //} -------------------------------------------------------------------------------- /pkg/metric/metrics.go: -------------------------------------------------------------------------------- 1 | package metric 2 | 3 | import ( 4 | "github.com/prometheus/client_golang/prometheus" 5 | "github.com/prometheus/client_golang/prometheus/promauto" 6 | ) 7 | 8 | var ( 9 | MethodDuration = promauto.NewSummaryVec(prometheus.SummaryOpts{ 10 | Name: "method_duration", 11 | Help: "calculating the latency of grpc calls", 12 | Objectives: map[float64]float64{ 13 | 0.5: 0.05, 14 | 0.9: 0.01, 15 | 0.99: 0.001, 16 | }, 17 | },[]string{"method"}) 18 | 19 | ActiveSubscribers = promauto.NewGauge(prometheus.GaugeOpts{ 20 | Name: "broker_active_subscribers", 21 | Help: "number of active subscribers in broker", 22 | }) 23 | MethodCalls = promauto.NewCounterVec(prometheus.CounterOpts{ 24 | Name: "method_count", 25 | Help: "number of method calls in broker", 26 | },[]string{"method"}) 27 | 28 | MethodError = promauto.NewCounterVec(prometheus.CounterOpts{ 29 | Name: "method_error_count", 30 | Help: "counter error of each method", 31 | },[]string{"method"}) 32 | 33 | ) 34 | 35 | func init(){ 36 | prometheus.Register(MethodDuration) 37 | prometheus.Register(ActiveSubscribers) 38 | prometheus.Register(MethodCalls) 39 | prometheus.Register(MethodError) 40 | } 41 | -------------------------------------------------------------------------------- /pkg/broker/broker.go: -------------------------------------------------------------------------------- 1 | package broker 2 | 3 | import ( 4 | "context" 5 | "io" 6 | "time" 7 | ) 8 | 9 | type Message struct { 10 | // This parameter is optional. If it's not provided, 11 | // the Message can't be accessible through Fetch() 12 | // id is unique per every subject 13 | id int 14 | // Body of the message 15 | Body string 16 | // The time that message can be accessible through Fetch() 17 | // with the proper Message id 18 | // 0 when there is no need to keep message ( fire & forget mode ) 19 | Expiration time.Duration 20 | } 21 | 22 | // The whole implementation should be thread-safe 23 | // If any problem occurred, return the proper error based on errors.go 24 | type Broker interface { 25 | io.Closer 26 | // Publish returns an int as the id of message published. 27 | // It should preserve the order. So if we are publishing messages 28 | // A, B and C, all subscribers should get these messages as 29 | // A, B and C. 30 | Publish(ctx context.Context, subject string, msg Message) (int, error) 31 | 32 | // Subscribe listens to every publish, and returns the messages to all 33 | // subscribed clients ( channels ). 34 | // If the context is cancelled, you have to stop sending messages 35 | // to this subscriber. Do nothing on time-out 36 | Subscribe(ctx context.Context, subject string) (<-chan Message, error) 37 | 38 | // Fetch enables us to retrieve a message that is already published, if 39 | // it's not expired yet. 40 | Fetch(ctx context.Context, subject string, id int) (Message, error) 41 | } 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Chiz Broker: a broker for fun 2 | 3 | ChizBroker is a fast and simple GRPC based implementation of kafka. 4 | Features: 5 | - Ready to be deployed on kubernetes 6 | - Prometheus metrics 7 | - Handling up to 7k publish rpcs on a single node 8 | - All message get stored in DB 9 | 10 | # Architecture 11 | ![overall architecture](docs/overall.jpg) 12 | Broker can have several topics and each message published to certain topic will be broadcasted 13 | to all subscribers to that topic. 14 | 15 | ## RPCs Description 16 | - Publish Requst 17 | ```protobuf 18 | message PublishRequest { 19 | string subject = 1; 20 | bytes body = 2; 21 | int32 expirationSeconds = 3; 22 | } 23 | ``` 24 | - Fetch Request 25 | ```protobuf 26 | message FetchRequest { 27 | string subject = 1; 28 | int32 id = 2; 29 | } 30 | ``` 31 | - Subscribe Request 32 | ```protobuf 33 | message SubscribeRequest { 34 | string subject = 1; 35 | } 36 | ``` 37 | - RPC Service 38 | ```protobuf 39 | service Broker { 40 | rpc Publish (PublishRequest) returns (PublishResponse); 41 | rpc Subscribe(SubscribeRequest) returns (stream MessageResponse); 42 | rpc Fetch(FetchRequest) returns (MessageResponse); 43 | } 44 | ``` 45 | 46 | # How to Run it? 47 | ## docker 48 | ```shell 49 | chmod +x run.sh 50 | ./run.sh 51 | ``` 52 | this starts grpc server on port 8086. prometheus metrics can be accessed from `:8000/metrics` 53 | ## kubernetes 54 | ```shell 55 | cd k8 56 | kubectl apply -f service.yml 57 | kubectl apply -f deployment.yml 58 | ``` 59 | 60 | this project was part of Bale messenger's bootcamp -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "github.com/joho/godotenv" 6 | 7 | //"github.com/joho/godotenv" 8 | 9 | //"github.com/joho/godotenv" 10 | 11 | //"github.com/pkg/profile" 12 | "github.com/prometheus/client_golang/prometheus/promhttp" 13 | "google.golang.org/grpc" 14 | "google.golang.org/grpc/reflection" 15 | "log" 16 | "net" 17 | "net/http" 18 | pb "therealbroker/api/proto" 19 | "therealbroker/api/server" 20 | //"runtime" 21 | _ "net/http/pprof" 22 | ) 23 | 24 | 25 | func main() { 26 | err := godotenv.Load() 27 | if err != nil { 28 | fmt.Println("couldn't load file") 29 | } 30 | 31 | //defer profile.Start(profile.CPUProfile, profile.ProfilePath(".")).Stop() 32 | //defer profile.Start(profile.MemProfile,profile.MemProfileRate(1), profile.ProfilePath(".")).Stop() 33 | //defer profile.Start(profile.TraceProfile, profile.ProfilePath(".")).Stop() 34 | go func(){ 35 | fmt.Println("starting prometheus on 8000") 36 | http.Handle("/metrics",promhttp.Handler()) 37 | err := http.ListenAndServe(":8000", nil) 38 | if err != nil { 39 | fmt.Println(err) 40 | } 41 | }() 42 | //go func() { 43 | // http.ListenAndServe(":8080",nil) 44 | //}() 45 | lis, err := net.Listen("tcp", ":8086") 46 | if err != nil { 47 | log.Fatalf("failed to listen: %v", err) 48 | } 49 | var opts []grpc.ServerOption 50 | grpcServer := grpc.NewServer(opts...) 51 | pb.RegisterBrokerServer(grpcServer,server.GetServer()) 52 | fmt.Println("starting grpc server on 8086") 53 | reflection.Register(grpcServer) 54 | err = grpcServer.Serve(lis) 55 | if err != nil { 56 | log.Fatalf("failed to run server: %v\n", err) 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /internal/broker/module.go: -------------------------------------------------------------------------------- 1 | package broker 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | 7 | //"fmt" 8 | "sync" 9 | 10 | //"fmt" 11 | "log" 12 | "therealbroker/pkg/broker" 13 | "therealbroker/pkg/repository" 14 | ) 15 | 16 | type Module struct { 17 | closed bool 18 | sync.RWMutex 19 | topicStorage *TopicStorage 20 | //topics map[string]*Topic 21 | DB repository.Database 22 | } 23 | 24 | func NewModule() broker.Broker { 25 | db, err:= repository.GetPostgreDB() 26 | if err!=nil{ 27 | log.Fatalln(err) 28 | return nil 29 | } 30 | fmt.Println("connected to postgres.") 31 | return &Module{ 32 | closed: false, 33 | //topics: map[string]*Topic{}, 34 | topicStorage: CreateTopicStorage(), 35 | DB: db, 36 | } 37 | } 38 | 39 | func (m *Module) Close() error { 40 | if m.closed { 41 | return broker.ErrUnavailable 42 | } 43 | m.closed = true 44 | return nil 45 | } 46 | 47 | func (m *Module) Publish(ctx context.Context, subject string, msg broker.Message) (int, error) { 48 | if m.closed { 49 | return -1, broker.ErrUnavailable 50 | } 51 | //m.Lock() 52 | //topic, exists := m.topics[subject] 53 | //if !exists { 54 | // topic = NewTopic(subject) 55 | // m.topics[subject]=topic 56 | // topic.SetDB(m.DB) 57 | //} 58 | //m.Unlock() 59 | topic, exists:= m.topicStorage.GetTopic(subject) 60 | if !exists{ 61 | topic = m.topicStorage.CreateTopic(subject) 62 | topic.SetDB(m.DB) 63 | 64 | } 65 | 66 | id := topic.PublishMessage(msg) 67 | return id,nil 68 | } 69 | 70 | func (m *Module) Subscribe(ctx context.Context, subject string) (<-chan broker.Message, error) { 71 | if m.closed { 72 | return nil, broker.ErrUnavailable 73 | } 74 | //m.Lock() 75 | //topic, exists := m.topics[subject] 76 | //if !exists { 77 | // topic = NewTopic(subject) 78 | // m.topics[subject]=topic 79 | // topic.SetDB(m.DB) 80 | //} 81 | //m.Unlock() 82 | topic, exists:= m.topicStorage.GetTopic(subject) 83 | if !exists{ 84 | topic = m.topicStorage.CreateTopic(subject) 85 | topic.SetDB(m.DB) 86 | 87 | } 88 | 89 | channel:= topic.RegisterSubscriber(ctx) 90 | return channel, nil 91 | } 92 | 93 | func (m *Module) Fetch(ctx context.Context, subject string, id int) (broker.Message, error) { 94 | if m.closed { 95 | return broker.Message{}, broker.ErrUnavailable 96 | } 97 | 98 | topic, exists:= m.topicStorage.GetTopic(subject) 99 | if !exists{ 100 | log.Fatalln("invalid topic") 101 | } 102 | //m.RLock() 103 | //topic, exists := m.topics[subject] 104 | //if !exists{ 105 | // fmt.Println("invalid topic") 106 | //} 107 | //m.RUnlock() 108 | return topic.Fetch(id) 109 | } 110 | -------------------------------------------------------------------------------- /api/server/server.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | "context" 5 | 6 | "google.golang.org/grpc/codes" 7 | "google.golang.org/grpc/status" 8 | pb "therealbroker/api/proto" 9 | broker2 "therealbroker/internal/broker" 10 | "therealbroker/pkg/broker" 11 | "therealbroker/pkg/metric" 12 | "time" 13 | ) 14 | type Server struct{ 15 | broker broker.Broker 16 | pb.UnimplementedBrokerServer 17 | } 18 | 19 | 20 | func(s Server) Publish(ctx context.Context,publishReq *pb.PublishRequest) (*pb.PublishResponse, error) { 21 | metric.MethodCalls.WithLabelValues("publish").Inc() 22 | currentTime := time.Now() 23 | defer metric.MethodDuration.WithLabelValues("publish").Observe(float64(time.Since(currentTime).Nanoseconds())) 24 | //fmt.Println(publishReq) 25 | message:= broker.Message{ 26 | Body: string(publishReq.GetBody()), 27 | Expiration: time.Duration(publishReq.ExpirationSeconds)*time.Second, 28 | } 29 | messageId, err := s.broker.Publish(ctx,publishReq.GetSubject(),message) 30 | if err != nil { 31 | metric.MethodError.WithLabelValues("publish").Inc() 32 | return nil, status.Errorf(codes.Unavailable,"Broker has been closed bruh.") 33 | } 34 | response := &pb.PublishResponse{Id: int32(messageId)} 35 | return response,nil 36 | 37 | } 38 | func(s Server) Subscribe(req *pb.SubscribeRequest,stream pb.Broker_SubscribeServer) error{ 39 | metric.MethodCalls.WithLabelValues("subscribe").Inc() 40 | currentTime := time.Now() 41 | defer metric.MethodDuration.WithLabelValues("subscribe").Observe(float64(time.Since(currentTime).Nanoseconds())) 42 | metric.ActiveSubscribers.Inc() 43 | defer metric.ActiveSubscribers.Dec() 44 | 45 | ch, err :=s.broker.Subscribe(context.Background(),req.GetSubject()) 46 | if err!= nil{ 47 | metric.MethodError.WithLabelValues("subscribe").Inc() 48 | return status.Errorf(codes.Unavailable,"Broker has been closed bruh.") 49 | } 50 | for message := range ch{ 51 | messageResponse := &pb.MessageResponse{Body: []byte(message.Body)} 52 | err := stream.Send(messageResponse) 53 | if err != nil { 54 | return err 55 | } 56 | } 57 | return nil 58 | } 59 | func(s Server) Fetch(ctx context.Context,fetchReq *pb.FetchRequest) (*pb.MessageResponse, error){ 60 | metric.MethodCalls.WithLabelValues("fetch").Inc() 61 | currentTime := time.Now() 62 | defer metric.MethodDuration.WithLabelValues("fetch").Observe(float64(time.Since(currentTime).Nanoseconds())) 63 | 64 | message, err:= s.broker.Fetch(ctx,fetchReq.GetSubject(),int(fetchReq.GetId())) 65 | if err!= nil{ 66 | metric.MethodError.WithLabelValues("fetch").Inc() 67 | switch err{ 68 | case broker.ErrUnavailable: 69 | return nil, status.Errorf(codes.Unavailable,"broker has been closed bruh") 70 | case broker.ErrInvalidID: 71 | return nil, status.Errorf(codes.InvalidArgument,"invalid ID has been entered") 72 | case broker.ErrExpiredID: 73 | return nil, status.Errorf(codes.DeadlineExceeded,"message has been expired") 74 | } 75 | } 76 | messageResponse := &pb.MessageResponse{Body: []byte(message.Body)} 77 | return messageResponse, nil 78 | } 79 | 80 | func GetServer() pb.BrokerServer{ 81 | return &Server{broker: broker2.NewModule()} 82 | } -------------------------------------------------------------------------------- /internal/broker/topic.go: -------------------------------------------------------------------------------- 1 | package broker 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | 7 | //"github.com/prometheus/common/log" 8 | "therealbroker/pkg/repository" 9 | 10 | //"fmt" 11 | "sync" 12 | "therealbroker/pkg/broker" 13 | "time" 14 | ) 15 | 16 | var MessageID = AutoIncId{id: 1} 17 | 18 | type Topic struct { 19 | sync.Mutex 20 | Name string 21 | db repository.Database 22 | Subscribers map[int]*Subscriber 23 | //Messages map[int]*broker.Message 24 | expireSignal chan int 25 | subDeleteChan chan *Subscriber 26 | subAddChan chan *Subscriber 27 | msgPubChan chan *broker.Message 28 | } 29 | 30 | func (t *Topic) RegisterSubscriber(ctx context.Context) chan broker.Message { 31 | ch := make(chan broker.Message,70) 32 | newSub := CreateNewSubscriber(ctx, ch, t.subDeleteChan) 33 | t.subAddChan <- newSub 34 | return ch 35 | } 36 | 37 | func (t *Topic) PublishMessage(msg broker.Message) int { 38 | //messageId:= MessageID.GetID() 39 | var id int 40 | id = -1 41 | if msg.Expiration != 0 { 42 | t.Lock() 43 | id = t.db.SaveMessage(msg, t.Name) 44 | t.Unlock() 45 | if id != -1 { 46 | go t.expireMessage(id, msg.Expiration) 47 | } 48 | } 49 | t.msgPubChan <- &msg 50 | //fmt.Println("message published ") 51 | return id 52 | } 53 | func (t *Topic) actionListener() { 54 | for { 55 | select { 56 | case id := <-t.expireSignal: 57 | go t.db.DeleteMessage(id, t.Name) 58 | //fmt.Println("deleting") 59 | case newSub := <-t.subAddChan: 60 | t.Subscribers[newSub.Id] = newSub 61 | case subscriber := <-t.subDeleteChan: 62 | delete(t.Subscribers, subscriber.Id) 63 | case msg := <-t.msgPubChan: 64 | var wg sync.WaitGroup 65 | for _, sub := range t.Subscribers { 66 | sub := sub 67 | wg.Add(1) 68 | go func() { 69 | sub.RegisterChannel <- msg 70 | //sub.SendMessages(*msg) 71 | wg.Done() 72 | }() 73 | } 74 | wg.Wait() 75 | 76 | } 77 | } 78 | } 79 | 80 | func (t *Topic) Fetch(id int) (broker.Message, error) { 81 | //var fetchedMessage broker.Message 82 | 83 | //t.Lock() 84 | //defer t.Unlock() 85 | 86 | //message, existed := t.Messages[id] 87 | //if !existed { 88 | // return fetchedMessage, broker.ErrInvalidID 89 | //} else { 90 | // if message == nil { 91 | // return broker.Message{}, broker.ErrExpiredID 92 | // } else { 93 | // fetchedMessage = *message 94 | // } 95 | //} 96 | fetchedMessage, err:= t.db.FetchMessage(id,t.Name) 97 | if err!=nil{ 98 | fmt.Println("error in fetching: ",err) 99 | return broker.Message{},broker.ErrInvalidID 100 | } 101 | return fetchedMessage, nil 102 | } 103 | //func (t *Topic) WatchForExpiration() { 104 | // for { 105 | // select {} 106 | // } 107 | // 108 | //} 109 | func (t *Topic) expireMessage(id int, expiration time.Duration) { 110 | select { 111 | case <-time.After(expiration): 112 | t.expireSignal <- id 113 | } 114 | } 115 | func (t *Topic) SetDB(db repository.Database) { 116 | t.Lock() 117 | t.db = db 118 | t.Unlock() 119 | } 120 | func NewTopic(name string) *Topic { 121 | newTopic := &Topic{ 122 | Name: name, 123 | Subscribers: map[int]*Subscriber{}, 124 | //Messages: map[int]*broker.Message{}, 125 | expireSignal: make(chan int, 3), 126 | subDeleteChan: make(chan *Subscriber, 3), 127 | subAddChan: make(chan *Subscriber), 128 | msgPubChan: make(chan *broker.Message), 129 | //db: db, 130 | } 131 | go newTopic.actionListener() 132 | //go newTopic.WatchForExpiration() 133 | return newTopic 134 | } 135 | 136 | type AutoIncId struct { 137 | id int 138 | } 139 | 140 | func (ai *AutoIncId) GetID() (id int) { 141 | id = ai.id 142 | ai.id++ 143 | return 144 | } 145 | -------------------------------------------------------------------------------- /pkg/repository/postgres.go: -------------------------------------------------------------------------------- 1 | package repository 2 | 3 | import ( 4 | "database/sql" 5 | "fmt" 6 | _ "github.com/lib/pq" 7 | "strings" 8 | 9 | //"strconv" 10 | 11 | //"github.com/prometheus/common/log" 12 | "os" 13 | "sync" 14 | "therealbroker/pkg/broker" 15 | "time" 16 | ) 17 | 18 | var postgresDB *PostgresDatabase 19 | var connectionError error 20 | 21 | type PostgresDatabase struct { 22 | sync.Mutex 23 | client *sql.DB 24 | addMessages []string 25 | deleteMessages []string 26 | } 27 | 28 | func (db *PostgresDatabase) SaveMessage(msg broker.Message, subject string) int { 29 | query := fmt.Sprintf(`INSERT INTO messages(id, subject, body, expiration_date) VALUES (DEFAULT, '%s', '%s', %v) RETURNING id;`,subject, msg.Body, int64(msg.Expiration)) 30 | var insertedID int 31 | row, err := db.client.Query(query) 32 | row.Next() 33 | row.Scan(&insertedID) 34 | if err != nil { 35 | fmt.Println("saving error:", err) 36 | return -1 37 | } 38 | row.Close() 39 | return insertedID 40 | } 41 | func (db *PostgresDatabase) FetchMessage(id int, subject string) (broker.Message, error) { 42 | query := fmt.Sprintf("SELECT body, expiration_date from messages where messages.id=%d and messages.subject='%s';", 43 | id, subject) 44 | rows, err := db.client.Query(query) 45 | 46 | if err != nil { 47 | fmt.Println("fetch: returned from query") 48 | return broker.Message{}, err 49 | } 50 | var body string 51 | var expirationDate int64 52 | for rows.Next() { 53 | err = rows.Scan(&body, &expirationDate) 54 | if err != nil { 55 | fmt.Println("fetch: scan error") 56 | return broker.Message{}, err 57 | } 58 | } 59 | if err := rows.Err();err!=nil{ 60 | fmt.Println("rows err: ",err) 61 | } 62 | msg := broker.Message{ 63 | Body: body, 64 | Expiration: time.Duration(expirationDate), 65 | } 66 | //rows.Close() 67 | return msg, nil 68 | 69 | } 70 | func (db *PostgresDatabase) DeleteMessage(id int, subject string) { 71 | db.Lock() 72 | db.deleteMessages = append(db.deleteMessages,fmt.Sprintf("(id,subject)=(%d,'%s')",id,subject)) 73 | db.Unlock() 74 | } 75 | func (db *PostgresDatabase) batchOperationHandler(ticker *time.Ticker){ 76 | for { 77 | select { 78 | case <- ticker.C: 79 | db.Lock() 80 | if len(db.deleteMessages) != 0{ 81 | query := `DELETE FROM public.messages WHERE ` + strings.Join(db.deleteMessages," or ")+";" 82 | db.deleteMessages = db.deleteMessages[:0] 83 | _,err := db.client.Exec(query) 84 | if err!= nil{ 85 | fmt.Println(err) 86 | } 87 | } 88 | db.Unlock() 89 | } 90 | } 91 | } 92 | func GetPostgreDB() (Database, error) { 93 | var once sync.Once 94 | once.Do(func() { 95 | connString := fmt.Sprintf("host=%s port=%s user=%s password=%s dbname=%s sslmode=disable", 96 | os.Getenv("HOST"), os.Getenv("PORT"), os.Getenv("PUSER"), os.Getenv("PASSWORD"), os.Getenv("DB")) 97 | //fmt.Println(connString) 98 | client, err := sql.Open("postgres", connString) 99 | if err != nil { 100 | connectionError = err 101 | return 102 | } 103 | //defer client.Close() 104 | err = client.Ping() 105 | if err != nil { 106 | connectionError = err 107 | return 108 | } 109 | err = createTable(client) 110 | if err != nil { 111 | connectionError = err 112 | return 113 | } 114 | err = createIndex(client) 115 | if err != nil { 116 | connectionError = err 117 | return 118 | } 119 | client.SetMaxOpenConns(90) 120 | client.SetMaxIdleConns(45) 121 | client.SetConnMaxIdleTime(time.Second*10) 122 | postgresDB = &PostgresDatabase{ 123 | client: client, 124 | addMessages: make([]string, 0), 125 | deleteMessages: make([]string, 0), 126 | } 127 | ticker := time.NewTicker(1 * time.Second) 128 | go postgresDB.batchOperationHandler(ticker) 129 | }) 130 | return postgresDB, connectionError 131 | } 132 | 133 | func createTable(client *sql.DB) error { 134 | table := ` 135 | CREATE TABLE IF NOT EXISTS messages ( 136 | id serial, 137 | subject varchar(255) not null, 138 | body varchar(255) , 139 | expiration_date bigint not null, 140 | primary key(id, subject) 141 | ); 142 | ` 143 | _, err := client.Exec(table) 144 | if err != nil { 145 | return err 146 | } 147 | return nil 148 | } 149 | func createIndex(client *sql.DB) error { 150 | command := `CREATE INDEX IF NOT EXISTS idx_id_subject on messages (id,subject)` 151 | _, err := client.Exec(command) 152 | if err != nil { 153 | return err 154 | } 155 | return nil 156 | } 157 | -------------------------------------------------------------------------------- /api/proto/broker_grpc.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go-grpc. DO NOT EDIT. 2 | 3 | package proto 4 | 5 | import ( 6 | context "context" 7 | grpc "google.golang.org/grpc" 8 | codes "google.golang.org/grpc/codes" 9 | status "google.golang.org/grpc/status" 10 | ) 11 | 12 | // This is a compile-time assertion to ensure that this generated file 13 | // is compatible with the grpc package it is being compiled against. 14 | // Requires gRPC-Go v1.32.0 or later. 15 | const _ = grpc.SupportPackageIsVersion7 16 | 17 | // BrokerClient is the client API for Broker service. 18 | // 19 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. 20 | type BrokerClient interface { 21 | // Publish returns an id if the delivery is successful 22 | // If broker is closed, should return Unavailable 23 | Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error) 24 | // Subscribe returns an stream of messages 25 | // If broker is closed, should return Unavailable 26 | Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (Broker_SubscribeClient, error) 27 | // Fetch returns the proper message body, if its present 28 | // If broker is closed, should return Unavailable 29 | // If the provided id is expired or not present, 30 | // should return InvalidArgument 31 | Fetch(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*MessageResponse, error) 32 | } 33 | 34 | type brokerClient struct { 35 | cc grpc.ClientConnInterface 36 | } 37 | 38 | func NewBrokerClient(cc grpc.ClientConnInterface) BrokerClient { 39 | return &brokerClient{cc} 40 | } 41 | 42 | func (c *brokerClient) Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error) { 43 | out := new(PublishResponse) 44 | err := c.cc.Invoke(ctx, "/broker.Broker/Publish", in, out, opts...) 45 | if err != nil { 46 | return nil, err 47 | } 48 | return out, nil 49 | } 50 | 51 | func (c *brokerClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (Broker_SubscribeClient, error) { 52 | stream, err := c.cc.NewStream(ctx, &Broker_ServiceDesc.Streams[0], "/broker.Broker/Subscribe", opts...) 53 | if err != nil { 54 | return nil, err 55 | } 56 | x := &brokerSubscribeClient{stream} 57 | if err := x.ClientStream.SendMsg(in); err != nil { 58 | return nil, err 59 | } 60 | if err := x.ClientStream.CloseSend(); err != nil { 61 | return nil, err 62 | } 63 | return x, nil 64 | } 65 | 66 | type Broker_SubscribeClient interface { 67 | Recv() (*MessageResponse, error) 68 | grpc.ClientStream 69 | } 70 | 71 | type brokerSubscribeClient struct { 72 | grpc.ClientStream 73 | } 74 | 75 | func (x *brokerSubscribeClient) Recv() (*MessageResponse, error) { 76 | m := new(MessageResponse) 77 | if err := x.ClientStream.RecvMsg(m); err != nil { 78 | return nil, err 79 | } 80 | return m, nil 81 | } 82 | 83 | func (c *brokerClient) Fetch(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*MessageResponse, error) { 84 | out := new(MessageResponse) 85 | err := c.cc.Invoke(ctx, "/broker.Broker/Fetch", in, out, opts...) 86 | if err != nil { 87 | return nil, err 88 | } 89 | return out, nil 90 | } 91 | 92 | // BrokerServer is the server API for Broker service. 93 | // All implementations must embed UnimplementedBrokerServer 94 | // for forward compatibility 95 | type BrokerServer interface { 96 | // Publish returns an id if the delivery is successful 97 | // If broker is closed, should return Unavailable 98 | Publish(context.Context, *PublishRequest) (*PublishResponse, error) 99 | // Subscribe returns an stream of messages 100 | // If broker is closed, should return Unavailable 101 | Subscribe(*SubscribeRequest, Broker_SubscribeServer) error 102 | // Fetch returns the proper message body, if its present 103 | // If broker is closed, should return Unavailable 104 | // If the provided id is expired or not present, 105 | // should return InvalidArgument 106 | Fetch(context.Context, *FetchRequest) (*MessageResponse, error) 107 | mustEmbedUnimplementedBrokerServer() 108 | } 109 | 110 | // UnimplementedBrokerServer must be embedded to have forward compatible implementations. 111 | type UnimplementedBrokerServer struct { 112 | } 113 | 114 | func (UnimplementedBrokerServer) Publish(context.Context, *PublishRequest) (*PublishResponse, error) { 115 | return nil, status.Errorf(codes.Unimplemented, "method Publish not implemented") 116 | } 117 | func (UnimplementedBrokerServer) Subscribe(*SubscribeRequest, Broker_SubscribeServer) error { 118 | return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") 119 | } 120 | func (UnimplementedBrokerServer) Fetch(context.Context, *FetchRequest) (*MessageResponse, error) { 121 | return nil, status.Errorf(codes.Unimplemented, "method Fetch not implemented") 122 | } 123 | func (UnimplementedBrokerServer) mustEmbedUnimplementedBrokerServer() {} 124 | 125 | // UnsafeBrokerServer may be embedded to opt out of forward compatibility for this service. 126 | // Use of this interface is not recommended, as added methods to BrokerServer will 127 | // result in compilation errors. 128 | type UnsafeBrokerServer interface { 129 | mustEmbedUnimplementedBrokerServer() 130 | } 131 | 132 | func RegisterBrokerServer(s grpc.ServiceRegistrar, srv BrokerServer) { 133 | s.RegisterService(&Broker_ServiceDesc, srv) 134 | } 135 | 136 | func _Broker_Publish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 137 | in := new(PublishRequest) 138 | if err := dec(in); err != nil { 139 | return nil, err 140 | } 141 | if interceptor == nil { 142 | return srv.(BrokerServer).Publish(ctx, in) 143 | } 144 | info := &grpc.UnaryServerInfo{ 145 | Server: srv, 146 | FullMethod: "/broker.Broker/Publish", 147 | } 148 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { 149 | return srv.(BrokerServer).Publish(ctx, req.(*PublishRequest)) 150 | } 151 | return interceptor(ctx, in, info, handler) 152 | } 153 | 154 | func _Broker_Subscribe_Handler(srv interface{}, stream grpc.ServerStream) error { 155 | m := new(SubscribeRequest) 156 | if err := stream.RecvMsg(m); err != nil { 157 | return err 158 | } 159 | return srv.(BrokerServer).Subscribe(m, &brokerSubscribeServer{stream}) 160 | } 161 | 162 | type Broker_SubscribeServer interface { 163 | Send(*MessageResponse) error 164 | grpc.ServerStream 165 | } 166 | 167 | type brokerSubscribeServer struct { 168 | grpc.ServerStream 169 | } 170 | 171 | func (x *brokerSubscribeServer) Send(m *MessageResponse) error { 172 | return x.ServerStream.SendMsg(m) 173 | } 174 | 175 | func _Broker_Fetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 176 | in := new(FetchRequest) 177 | if err := dec(in); err != nil { 178 | return nil, err 179 | } 180 | if interceptor == nil { 181 | return srv.(BrokerServer).Fetch(ctx, in) 182 | } 183 | info := &grpc.UnaryServerInfo{ 184 | Server: srv, 185 | FullMethod: "/broker.Broker/Fetch", 186 | } 187 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { 188 | return srv.(BrokerServer).Fetch(ctx, req.(*FetchRequest)) 189 | } 190 | return interceptor(ctx, in, info, handler) 191 | } 192 | 193 | // Broker_ServiceDesc is the grpc.ServiceDesc for Broker service. 194 | // It's only intended for direct use with grpc.RegisterService, 195 | // and not to be introspected or modified (even as a copy) 196 | var Broker_ServiceDesc = grpc.ServiceDesc{ 197 | ServiceName: "broker.Broker", 198 | HandlerType: (*BrokerServer)(nil), 199 | Methods: []grpc.MethodDesc{ 200 | { 201 | MethodName: "Publish", 202 | Handler: _Broker_Publish_Handler, 203 | }, 204 | { 205 | MethodName: "Fetch", 206 | Handler: _Broker_Fetch_Handler, 207 | }, 208 | }, 209 | Streams: []grpc.StreamDesc{ 210 | { 211 | StreamName: "Subscribe", 212 | Handler: _Broker_Subscribe_Handler, 213 | ServerStreams: true, 214 | }, 215 | }, 216 | Metadata: "broker.proto", 217 | } 218 | -------------------------------------------------------------------------------- /internal/broker/module_test.go: -------------------------------------------------------------------------------- 1 | package broker 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | "github.com/joho/godotenv" 7 | "github.com/stretchr/testify/assert" 8 | "math/rand" 9 | "sync" 10 | "testing" 11 | "therealbroker/pkg/broker" 12 | "time" 13 | ) 14 | 15 | var ( 16 | service broker.Broker 17 | mainCtx = context.Background() 18 | letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") 19 | ) 20 | 21 | func TestMain(m *testing.M) { 22 | err := godotenv.Load("../../.env") 23 | if err != nil { 24 | fmt.Println("couldn't load file") 25 | } 26 | rand.Seed(time.Now().Unix()) 27 | service = NewModule() 28 | m.Run() 29 | } 30 | 31 | func TestPublishShouldFailOnClosed(t *testing.T) { 32 | msg := createMessage() 33 | 34 | err := service.Close() 35 | assert.Nil(t, err) 36 | 37 | _, err = service.Publish(mainCtx, "ali", msg) 38 | assert.Equal(t, broker.ErrUnavailable, err) 39 | } 40 | 41 | func TestSubscribeShouldFailOnClosed(t *testing.T) { 42 | err := service.Close() 43 | assert.Nil(t, err) 44 | 45 | _, err = service.Subscribe(mainCtx, "ali") 46 | assert.Equal(t, broker.ErrUnavailable, err) 47 | } 48 | 49 | func TestFetchShouldFailOnClosed(t *testing.T) { 50 | err := service.Close() 51 | assert.Nil(t, err) 52 | 53 | _, err = service.Fetch(mainCtx, "ali", rand.Intn(100)) 54 | assert.Equal(t, broker.ErrUnavailable, err) 55 | } 56 | 57 | func TestPublishShouldNotFail(t *testing.T) { 58 | msg := createMessage() 59 | 60 | _, err := service.Publish(mainCtx, "ali", msg) 61 | 62 | assert.Equal(t, nil, err) 63 | } 64 | 65 | func TestSubscribeShouldNotFail(t *testing.T) { 66 | sub, err := service.Subscribe(mainCtx, "ali") 67 | 68 | assert.Equal(t, nil, err) 69 | assert.NotEqual(t, nil, sub) 70 | } 71 | 72 | func TestPublishShouldSendMessageToSubscribedChan(t *testing.T) { 73 | msg := createMessage() 74 | 75 | sub, _ := service.Subscribe(mainCtx, "ali") 76 | _, _ = service.Publish(mainCtx, "ali", msg) 77 | in := <-sub 78 | 79 | assert.Equal(t, msg, in) 80 | } 81 | 82 | func TestPublishShouldSendMessageToSubscribedChans(t *testing.T) { 83 | msg := createMessage() 84 | 85 | sub1, _ := service.Subscribe(mainCtx, "ali") 86 | sub2, _ := service.Subscribe(mainCtx, "ali") 87 | sub3, _ := service.Subscribe(mainCtx, "ali") 88 | _, _ = service.Publish(mainCtx, "ali", msg) 89 | in1 := <-sub1 90 | in2 := <-sub2 91 | in3 := <-sub3 92 | 93 | assert.Equal(t, msg, in1) 94 | assert.Equal(t, msg, in2) 95 | assert.Equal(t, msg, in3) 96 | } 97 | 98 | //func TestPublishShouldPreserveOrder(t *testing.T) { 99 | // n := 1100 100 | // messages := make([]broker.Message, n) 101 | // sub, _ := service.Subscribe(mainCtx, "ali") 102 | // var wg sync.WaitGroup 103 | // wg.Add(1) 104 | // go func() { 105 | // for i := 0; i < n; i++ { 106 | // messages[i] = createMessage() 107 | // _, _ = service.Publish(mainCtx, "ali", messages[i]) 108 | // } 109 | // wg.Done() 110 | // }() 111 | // 112 | // wg.Add(1) 113 | // go func() { 114 | // for i := 0; i < n; i++ { 115 | // msg := <-sub 116 | // assert.Equal(t, messages[i], msg) 117 | // } 118 | // wg.Done() 119 | // }() 120 | // wg.Wait() 121 | //} 122 | 123 | func TestPublishShouldNotSendToOtherSubscriptions(t *testing.T) { 124 | msg := createMessage() 125 | ali, _ := service.Subscribe(mainCtx, "ali") 126 | maryam, _ := service.Subscribe(mainCtx, "maryam") 127 | 128 | _, _ = service.Publish(mainCtx, "ali", msg) 129 | select { 130 | case m := <-ali: 131 | assert.Equal(t, msg, m) 132 | case <-maryam: 133 | assert.Fail(t, "Wrong message received") 134 | } 135 | } 136 | 137 | func TestNonExpiredMessageShouldBeFetchable(t *testing.T) { 138 | msg := createMessageWithExpire(time.Second * 10) 139 | id, _ := service.Publish(mainCtx, "ali", msg) 140 | fMsg, _ := service.Fetch(mainCtx, "ali", id) 141 | 142 | assert.Equal(t, msg, fMsg) 143 | } 144 | 145 | func TestExpiredMessageShouldNotBeFetchable(t *testing.T) { 146 | msg := createMessageWithExpire(time.Millisecond * 500) 147 | id, _ := service.Publish(mainCtx, "ali", msg) 148 | ticker := time.NewTicker(time.Second) 149 | defer ticker.Stop() 150 | 151 | <-ticker.C 152 | fMsg, err := service.Fetch(mainCtx, "ali", id) 153 | assert.Equal(t, broker.ErrExpiredID, err) 154 | assert.Equal(t, broker.Message{}, fMsg) 155 | } 156 | 157 | func TestNewSubscriptionShouldNotGetPreviousMessages(t *testing.T) { 158 | msg := createMessage() 159 | _, _ = service.Publish(mainCtx, "ali", msg) 160 | sub, _ := service.Subscribe(mainCtx, "ali") 161 | 162 | select { 163 | case <-sub: 164 | assert.Fail(t, "Got previous message") 165 | default: 166 | } 167 | } 168 | 169 | func TestConcurrentSubscribesOnOneSubjectShouldNotFail(t *testing.T) { 170 | ticker := time.NewTicker(500 * time.Millisecond) 171 | defer ticker.Stop() 172 | var wg sync.WaitGroup 173 | 174 | for { 175 | select { 176 | case <-ticker.C: 177 | wg.Wait() 178 | return 179 | 180 | default: 181 | wg.Add(1) 182 | go func() { 183 | defer wg.Done() 184 | 185 | _, err := service.Subscribe(mainCtx, "ali") 186 | assert.Nil(t, err) 187 | }() 188 | } 189 | } 190 | } 191 | 192 | func TestConcurrentSubscribesShouldNotFail(t *testing.T) { 193 | ticker := time.NewTicker(2000 * time.Millisecond) 194 | defer ticker.Stop() 195 | var wg sync.WaitGroup 196 | 197 | for { 198 | select { 199 | case <-ticker.C: 200 | wg.Wait() 201 | return 202 | 203 | default: 204 | wg.Add(1) 205 | go func() { 206 | defer wg.Done() 207 | 208 | _, err := service.Subscribe(mainCtx, randomString(4)) 209 | assert.Nil(t, err) 210 | }() 211 | } 212 | } 213 | } 214 | 215 | func TestConcurrentPublishOnOneSubjectShouldNotFail(t *testing.T) { 216 | ticker := time.NewTicker(500 * time.Millisecond) 217 | defer ticker.Stop() 218 | var wg sync.WaitGroup 219 | 220 | msg := createMessage() 221 | 222 | for { 223 | select { 224 | case <-ticker.C: 225 | wg.Wait() 226 | return 227 | 228 | default: 229 | wg.Add(1) 230 | go func() { 231 | defer wg.Done() 232 | 233 | _, err := service.Publish(mainCtx, "ali", msg) 234 | assert.Nil(t, err) 235 | }() 236 | } 237 | } 238 | } 239 | 240 | func TestConcurrentPublishShouldNotFail(t *testing.T) { 241 | ticker := time.NewTicker(500 * time.Millisecond) 242 | defer ticker.Stop() 243 | var wg sync.WaitGroup 244 | 245 | msg := createMessage() 246 | 247 | for { 248 | select { 249 | case <-ticker.C: 250 | wg.Wait() 251 | return 252 | 253 | default: 254 | wg.Add(1) 255 | go func() { 256 | defer wg.Done() 257 | 258 | _, err := service.Publish(mainCtx, randomString(4), msg) 259 | assert.Nil(t, err) 260 | }() 261 | } 262 | } 263 | } 264 | 265 | func TestDataRace(t *testing.T) { 266 | duration := 500 * time.Millisecond 267 | ticker := time.NewTicker(duration) 268 | defer ticker.Stop() 269 | var wg sync.WaitGroup 270 | 271 | ids := make(chan int, 100000) 272 | 273 | wg.Add(1) 274 | go func() { 275 | defer wg.Done() 276 | 277 | for { 278 | select { 279 | case <-ticker.C: 280 | fmt.Println("ticked") 281 | return 282 | 283 | default: 284 | id, err := service.Publish(mainCtx, "ali", createMessageWithExpire(duration)) 285 | ids <- id 286 | assert.Nil(t, err) 287 | } 288 | } 289 | }() 290 | 291 | wg.Add(1) 292 | go func() { 293 | defer wg.Done() 294 | 295 | for { 296 | select { 297 | case <-ticker.C: 298 | return 299 | 300 | default: 301 | ch, err := service.Subscribe(mainCtx, "ali") 302 | 303 | assert.Nil(t, err) 304 | fmt.Println(<-ch) 305 | } 306 | } 307 | }() 308 | // 309 | //wg.Add(1) 310 | //go func() { 311 | // defer wg.Done() 312 | // 313 | // for { 314 | // select { 315 | // case <-ticker.C: 316 | // return 317 | // 318 | // case id := <-ids: 319 | // msg, err := service.Fetch(mainCtx, "ali", id) 320 | // fmt.Println(msg.Body,msg.Expiration) 321 | // assert.Nil(t, err) 322 | // } 323 | // } 324 | //}() 325 | 326 | wg.Wait() 327 | fmt.Println("Done") 328 | } 329 | 330 | func BenchmarkPublish(b *testing.B) { 331 | b.ResetTimer() 332 | 333 | for i := 0; i < b.N; i++ { 334 | _, err := service.Publish(mainCtx, randomString(2), createMessage()) 335 | assert.Nil(b, err) 336 | } 337 | } 338 | 339 | func BenchmarkSubscribe(b *testing.B) { 340 | b.ResetTimer() 341 | 342 | for i := 0; i < b.N; i++ { 343 | _, err := service.Subscribe(mainCtx, randomString(2)) 344 | assert.Nil(b, err) 345 | } 346 | } 347 | 348 | func randomString(n int) string { 349 | b := make([]rune, n) 350 | for i := range b { 351 | b[i] = letters[rand.Intn(len(letters))] 352 | } 353 | return string(b) 354 | } 355 | 356 | func createMessage() broker.Message { 357 | body := randomString(16) 358 | 359 | return broker.Message{ 360 | Body: body, 361 | Expiration: 5, 362 | } 363 | } 364 | 365 | func createMessageWithExpire(duration time.Duration) broker.Message { 366 | body := randomString(16) 367 | 368 | return broker.Message{ 369 | Body: body, 370 | Expiration: duration, 371 | } 372 | } 373 | -------------------------------------------------------------------------------- /api/proto/broker.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // versions: 3 | // protoc-gen-go v1.26.0 4 | // protoc v3.6.1 5 | // source: broker.proto 6 | 7 | package proto 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 PublishRequest struct { 24 | state protoimpl.MessageState 25 | sizeCache protoimpl.SizeCache 26 | unknownFields protoimpl.UnknownFields 27 | 28 | Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 29 | Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` 30 | ExpirationSeconds int32 `protobuf:"varint,3,opt,name=expirationSeconds,proto3" json:"expirationSeconds,omitempty"` 31 | } 32 | 33 | func (x *PublishRequest) Reset() { 34 | *x = PublishRequest{} 35 | if protoimpl.UnsafeEnabled { 36 | mi := &file_broker_proto_msgTypes[0] 37 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 38 | ms.StoreMessageInfo(mi) 39 | } 40 | } 41 | 42 | func (x *PublishRequest) String() string { 43 | return protoimpl.X.MessageStringOf(x) 44 | } 45 | 46 | func (*PublishRequest) ProtoMessage() {} 47 | 48 | func (x *PublishRequest) ProtoReflect() protoreflect.Message { 49 | mi := &file_broker_proto_msgTypes[0] 50 | if protoimpl.UnsafeEnabled && x != nil { 51 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 | if ms.LoadMessageInfo() == nil { 53 | ms.StoreMessageInfo(mi) 54 | } 55 | return ms 56 | } 57 | return mi.MessageOf(x) 58 | } 59 | 60 | // Deprecated: Use PublishRequest.ProtoReflect.Descriptor instead. 61 | func (*PublishRequest) Descriptor() ([]byte, []int) { 62 | return file_broker_proto_rawDescGZIP(), []int{0} 63 | } 64 | 65 | func (x *PublishRequest) GetSubject() string { 66 | if x != nil { 67 | return x.Subject 68 | } 69 | return "" 70 | } 71 | 72 | func (x *PublishRequest) GetBody() []byte { 73 | if x != nil { 74 | return x.Body 75 | } 76 | return nil 77 | } 78 | 79 | func (x *PublishRequest) GetExpirationSeconds() int32 { 80 | if x != nil { 81 | return x.ExpirationSeconds 82 | } 83 | return 0 84 | } 85 | 86 | type PublishResponse struct { 87 | state protoimpl.MessageState 88 | sizeCache protoimpl.SizeCache 89 | unknownFields protoimpl.UnknownFields 90 | 91 | Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 92 | } 93 | 94 | func (x *PublishResponse) Reset() { 95 | *x = PublishResponse{} 96 | if protoimpl.UnsafeEnabled { 97 | mi := &file_broker_proto_msgTypes[1] 98 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 | ms.StoreMessageInfo(mi) 100 | } 101 | } 102 | 103 | func (x *PublishResponse) String() string { 104 | return protoimpl.X.MessageStringOf(x) 105 | } 106 | 107 | func (*PublishResponse) ProtoMessage() {} 108 | 109 | func (x *PublishResponse) ProtoReflect() protoreflect.Message { 110 | mi := &file_broker_proto_msgTypes[1] 111 | if protoimpl.UnsafeEnabled && x != nil { 112 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 113 | if ms.LoadMessageInfo() == nil { 114 | ms.StoreMessageInfo(mi) 115 | } 116 | return ms 117 | } 118 | return mi.MessageOf(x) 119 | } 120 | 121 | // Deprecated: Use PublishResponse.ProtoReflect.Descriptor instead. 122 | func (*PublishResponse) Descriptor() ([]byte, []int) { 123 | return file_broker_proto_rawDescGZIP(), []int{1} 124 | } 125 | 126 | func (x *PublishResponse) GetId() int32 { 127 | if x != nil { 128 | return x.Id 129 | } 130 | return 0 131 | } 132 | 133 | type SubscribeRequest struct { 134 | state protoimpl.MessageState 135 | sizeCache protoimpl.SizeCache 136 | unknownFields protoimpl.UnknownFields 137 | 138 | Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 139 | } 140 | 141 | func (x *SubscribeRequest) Reset() { 142 | *x = SubscribeRequest{} 143 | if protoimpl.UnsafeEnabled { 144 | mi := &file_broker_proto_msgTypes[2] 145 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 146 | ms.StoreMessageInfo(mi) 147 | } 148 | } 149 | 150 | func (x *SubscribeRequest) String() string { 151 | return protoimpl.X.MessageStringOf(x) 152 | } 153 | 154 | func (*SubscribeRequest) ProtoMessage() {} 155 | 156 | func (x *SubscribeRequest) ProtoReflect() protoreflect.Message { 157 | mi := &file_broker_proto_msgTypes[2] 158 | if protoimpl.UnsafeEnabled && x != nil { 159 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 160 | if ms.LoadMessageInfo() == nil { 161 | ms.StoreMessageInfo(mi) 162 | } 163 | return ms 164 | } 165 | return mi.MessageOf(x) 166 | } 167 | 168 | // Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead. 169 | func (*SubscribeRequest) Descriptor() ([]byte, []int) { 170 | return file_broker_proto_rawDescGZIP(), []int{2} 171 | } 172 | 173 | func (x *SubscribeRequest) GetSubject() string { 174 | if x != nil { 175 | return x.Subject 176 | } 177 | return "" 178 | } 179 | 180 | type MessageResponse struct { 181 | state protoimpl.MessageState 182 | sizeCache protoimpl.SizeCache 183 | unknownFields protoimpl.UnknownFields 184 | 185 | Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` 186 | } 187 | 188 | func (x *MessageResponse) Reset() { 189 | *x = MessageResponse{} 190 | if protoimpl.UnsafeEnabled { 191 | mi := &file_broker_proto_msgTypes[3] 192 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 193 | ms.StoreMessageInfo(mi) 194 | } 195 | } 196 | 197 | func (x *MessageResponse) String() string { 198 | return protoimpl.X.MessageStringOf(x) 199 | } 200 | 201 | func (*MessageResponse) ProtoMessage() {} 202 | 203 | func (x *MessageResponse) ProtoReflect() protoreflect.Message { 204 | mi := &file_broker_proto_msgTypes[3] 205 | if protoimpl.UnsafeEnabled && x != nil { 206 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 207 | if ms.LoadMessageInfo() == nil { 208 | ms.StoreMessageInfo(mi) 209 | } 210 | return ms 211 | } 212 | return mi.MessageOf(x) 213 | } 214 | 215 | // Deprecated: Use MessageResponse.ProtoReflect.Descriptor instead. 216 | func (*MessageResponse) Descriptor() ([]byte, []int) { 217 | return file_broker_proto_rawDescGZIP(), []int{3} 218 | } 219 | 220 | func (x *MessageResponse) GetBody() []byte { 221 | if x != nil { 222 | return x.Body 223 | } 224 | return nil 225 | } 226 | 227 | type FetchRequest struct { 228 | state protoimpl.MessageState 229 | sizeCache protoimpl.SizeCache 230 | unknownFields protoimpl.UnknownFields 231 | 232 | Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 233 | Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` 234 | } 235 | 236 | func (x *FetchRequest) Reset() { 237 | *x = FetchRequest{} 238 | if protoimpl.UnsafeEnabled { 239 | mi := &file_broker_proto_msgTypes[4] 240 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 241 | ms.StoreMessageInfo(mi) 242 | } 243 | } 244 | 245 | func (x *FetchRequest) String() string { 246 | return protoimpl.X.MessageStringOf(x) 247 | } 248 | 249 | func (*FetchRequest) ProtoMessage() {} 250 | 251 | func (x *FetchRequest) ProtoReflect() protoreflect.Message { 252 | mi := &file_broker_proto_msgTypes[4] 253 | if protoimpl.UnsafeEnabled && x != nil { 254 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 255 | if ms.LoadMessageInfo() == nil { 256 | ms.StoreMessageInfo(mi) 257 | } 258 | return ms 259 | } 260 | return mi.MessageOf(x) 261 | } 262 | 263 | // Deprecated: Use FetchRequest.ProtoReflect.Descriptor instead. 264 | func (*FetchRequest) Descriptor() ([]byte, []int) { 265 | return file_broker_proto_rawDescGZIP(), []int{4} 266 | } 267 | 268 | func (x *FetchRequest) GetSubject() string { 269 | if x != nil { 270 | return x.Subject 271 | } 272 | return "" 273 | } 274 | 275 | func (x *FetchRequest) GetId() int32 { 276 | if x != nil { 277 | return x.Id 278 | } 279 | return 0 280 | } 281 | 282 | var File_broker_proto protoreflect.FileDescriptor 283 | 284 | var file_broker_proto_rawDesc = []byte{ 285 | 0x0a, 0x0c, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 286 | 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x22, 0x6c, 0x0a, 0x0e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 287 | 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 288 | 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 289 | 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 290 | 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x2c, 0x0a, 0x11, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 291 | 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 292 | 0x05, 0x52, 0x11, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 293 | 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x21, 0x0a, 0x0f, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 294 | 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 295 | 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2c, 0x0a, 0x10, 0x53, 0x75, 0x62, 0x73, 0x63, 296 | 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 297 | 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 298 | 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x25, 0x0a, 0x0f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 299 | 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 300 | 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x38, 0x0a, 0x0c, 301 | 0x46, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 302 | 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 303 | 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 304 | 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x32, 0xbe, 0x01, 0x0a, 0x06, 0x42, 0x72, 0x6f, 0x6b, 0x65, 305 | 0x72, 0x12, 0x3a, 0x0a, 0x07, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x16, 0x2e, 0x62, 306 | 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 307 | 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x2e, 0x50, 0x75, 308 | 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 309 | 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x18, 0x2e, 0x62, 0x72, 0x6f, 310 | 0x6b, 0x65, 0x72, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 311 | 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x2e, 0x4d, 0x65, 312 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 313 | 0x36, 0x0a, 0x05, 0x46, 0x65, 0x74, 0x63, 0x68, 0x12, 0x14, 0x2e, 0x62, 0x72, 0x6f, 0x6b, 0x65, 314 | 0x72, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 315 | 0x2e, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 316 | 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x12, 0x5a, 0x10, 0x62, 0x72, 0x6f, 0x6b, 0x65, 317 | 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 318 | 0x74, 0x6f, 0x33, 319 | } 320 | 321 | var ( 322 | file_broker_proto_rawDescOnce sync.Once 323 | file_broker_proto_rawDescData = file_broker_proto_rawDesc 324 | ) 325 | 326 | func file_broker_proto_rawDescGZIP() []byte { 327 | file_broker_proto_rawDescOnce.Do(func() { 328 | file_broker_proto_rawDescData = protoimpl.X.CompressGZIP(file_broker_proto_rawDescData) 329 | }) 330 | return file_broker_proto_rawDescData 331 | } 332 | 333 | var file_broker_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 334 | var file_broker_proto_goTypes = []interface{}{ 335 | (*PublishRequest)(nil), // 0: broker.PublishRequest 336 | (*PublishResponse)(nil), // 1: broker.PublishResponse 337 | (*SubscribeRequest)(nil), // 2: broker.SubscribeRequest 338 | (*MessageResponse)(nil), // 3: broker.MessageResponse 339 | (*FetchRequest)(nil), // 4: broker.FetchRequest 340 | } 341 | var file_broker_proto_depIdxs = []int32{ 342 | 0, // 0: broker.Broker.Publish:input_type -> broker.PublishRequest 343 | 2, // 1: broker.Broker.Subscribe:input_type -> broker.SubscribeRequest 344 | 4, // 2: broker.Broker.Fetch:input_type -> broker.FetchRequest 345 | 1, // 3: broker.Broker.Publish:output_type -> broker.PublishResponse 346 | 3, // 4: broker.Broker.Subscribe:output_type -> broker.MessageResponse 347 | 3, // 5: broker.Broker.Fetch:output_type -> broker.MessageResponse 348 | 3, // [3:6] is the sub-list for method output_type 349 | 0, // [0:3] is the sub-list for method input_type 350 | 0, // [0:0] is the sub-list for extension type_name 351 | 0, // [0:0] is the sub-list for extension extendee 352 | 0, // [0:0] is the sub-list for field type_name 353 | } 354 | 355 | func init() { file_broker_proto_init() } 356 | func file_broker_proto_init() { 357 | if File_broker_proto != nil { 358 | return 359 | } 360 | if !protoimpl.UnsafeEnabled { 361 | file_broker_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 362 | switch v := v.(*PublishRequest); i { 363 | case 0: 364 | return &v.state 365 | case 1: 366 | return &v.sizeCache 367 | case 2: 368 | return &v.unknownFields 369 | default: 370 | return nil 371 | } 372 | } 373 | file_broker_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 374 | switch v := v.(*PublishResponse); i { 375 | case 0: 376 | return &v.state 377 | case 1: 378 | return &v.sizeCache 379 | case 2: 380 | return &v.unknownFields 381 | default: 382 | return nil 383 | } 384 | } 385 | file_broker_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 386 | switch v := v.(*SubscribeRequest); i { 387 | case 0: 388 | return &v.state 389 | case 1: 390 | return &v.sizeCache 391 | case 2: 392 | return &v.unknownFields 393 | default: 394 | return nil 395 | } 396 | } 397 | file_broker_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 398 | switch v := v.(*MessageResponse); i { 399 | case 0: 400 | return &v.state 401 | case 1: 402 | return &v.sizeCache 403 | case 2: 404 | return &v.unknownFields 405 | default: 406 | return nil 407 | } 408 | } 409 | file_broker_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 410 | switch v := v.(*FetchRequest); i { 411 | case 0: 412 | return &v.state 413 | case 1: 414 | return &v.sizeCache 415 | case 2: 416 | return &v.unknownFields 417 | default: 418 | return nil 419 | } 420 | } 421 | } 422 | type x struct{} 423 | out := protoimpl.TypeBuilder{ 424 | File: protoimpl.DescBuilder{ 425 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 426 | RawDescriptor: file_broker_proto_rawDesc, 427 | NumEnums: 0, 428 | NumMessages: 5, 429 | NumExtensions: 0, 430 | NumServices: 1, 431 | }, 432 | GoTypes: file_broker_proto_goTypes, 433 | DependencyIndexes: file_broker_proto_depIdxs, 434 | MessageInfos: file_broker_proto_msgTypes, 435 | }.Build() 436 | File_broker_proto = out.File 437 | file_broker_proto_rawDesc = nil 438 | file_broker_proto_goTypes = nil 439 | file_broker_proto_depIdxs = nil 440 | } 441 | -------------------------------------------------------------------------------- /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/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= 37 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 38 | github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM= 39 | github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 40 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 41 | github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 42 | github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d h1:UQZhZ2O0vMHr2cI+DC1Mbh0TJxzA3RcLoMsFw+aXw7E= 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/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 46 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= 47 | github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= 48 | github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= 49 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 50 | github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= 51 | github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= 52 | github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY= 53 | github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 54 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 55 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 56 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 57 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 58 | github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= 59 | github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= 60 | github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= 61 | github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= 62 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 63 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 64 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 65 | github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 66 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 67 | github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= 68 | github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= 69 | github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= 70 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 71 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 72 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 73 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 74 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 75 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 76 | github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 77 | github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= 78 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 79 | github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= 80 | github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= 81 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 82 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 83 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 84 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 85 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 86 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 87 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 88 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 89 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 90 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 91 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 92 | github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 93 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= 94 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 95 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 96 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 97 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 98 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 99 | github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= 100 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 101 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 102 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 103 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 104 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 105 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 106 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 107 | github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= 108 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 109 | github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= 110 | github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= 111 | github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= 112 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 113 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 114 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 115 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 116 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 117 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 118 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 119 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 120 | github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 121 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 122 | github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= 123 | github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 124 | github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= 125 | github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 126 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 127 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 128 | github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 129 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 130 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 131 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 132 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 133 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 134 | github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 135 | github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 136 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 137 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 138 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 139 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 140 | github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= 141 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 142 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 143 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 144 | github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= 145 | github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= 146 | github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= 147 | github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 148 | github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 149 | github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 150 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 151 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 152 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 153 | github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= 154 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 155 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 156 | github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8= 157 | github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 158 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 159 | github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= 160 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 161 | github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= 162 | github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= 163 | github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= 164 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 165 | github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= 166 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 167 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 168 | github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= 169 | github.com/lib/pq v1.10.2 h1:AqzbZs4ZoCBp+GtejcpCpcxM3zlSMx29dXbUSeVtJb8= 170 | github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= 171 | github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= 172 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 173 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 174 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 175 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 176 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 177 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 178 | github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 179 | github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= 180 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 181 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 182 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 183 | github.com/pkg/profile v1.6.0 h1:hUDfIISABYI59DyeB3OTay/HxSRwTQ8rB/H83k6r5dM= 184 | github.com/pkg/profile v1.6.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18= 185 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 186 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 187 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 188 | github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= 189 | github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= 190 | github.com/prometheus/client_golang v1.11.0 h1:HNkLOAEQMIDv/K+04rukrLx6ch7msSRwf3/SASFAGtQ= 191 | github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= 192 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 193 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 194 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 195 | github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= 196 | github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 197 | github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 198 | github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= 199 | github.com/prometheus/common v0.26.0 h1:iMAkS2TDoNWnKM+Kopnx/8tnEStIfpYA0ur0xQzzhMQ= 200 | github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= 201 | github.com/prometheus/common v0.30.0 h1:JEkYlQnpzrzQFxi6gnukFPdQ+ac82oRhzMcIduJu/Ug= 202 | github.com/prometheus/common v0.30.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= 203 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 204 | github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 205 | github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= 206 | github.com/prometheus/procfs v0.6.0 h1:mxy4L2jP6qMonqmq+aTtOx1ifVWUgG/TAmntgbh3xv4= 207 | github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= 208 | github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= 209 | github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= 210 | github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= 211 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 212 | github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= 213 | github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= 214 | github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8= 215 | github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= 216 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 217 | github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= 218 | github.com/sirupsen/logrus v1.6.0 h1:UBcNElsrwanuuMsnGSlYmtmgbb23qDR5dG+6X6Oo89I= 219 | github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= 220 | github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= 221 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 222 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 223 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 224 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 225 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 226 | github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= 227 | github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= 228 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 229 | github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 230 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 231 | github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 232 | github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= 233 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 234 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 235 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 236 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 237 | go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 238 | go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= 239 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 240 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 241 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 242 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 243 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 244 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 245 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 246 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 247 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 248 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 249 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 250 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 251 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 252 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 253 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= 254 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= 255 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 256 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 257 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 258 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 259 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 260 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 261 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 262 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 263 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 264 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 265 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 266 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 267 | golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 268 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 269 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 270 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 271 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 272 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 273 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 274 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 275 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 276 | golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 277 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 278 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 279 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 280 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 281 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 282 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 283 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 284 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 285 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 286 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 287 | golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 288 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 289 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 290 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 291 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 292 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 293 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 294 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 295 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 296 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 297 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 298 | golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 299 | golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 300 | golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 301 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 302 | golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 303 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 304 | golang.org/x/net v0.0.0-20200822124328-c89045814202 h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA= 305 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 306 | golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= 307 | golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= 308 | golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d h1:LO7XpTYMwTqxjLcGWPijK3vRXg1aWdlNOVOHRq45d7c= 309 | golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= 310 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 311 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 312 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 313 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 314 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 315 | golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 316 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 317 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 318 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 319 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 320 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 321 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 322 | golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 323 | golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 324 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 325 | golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 326 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 327 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 328 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 329 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 330 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 331 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 332 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 333 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 334 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 335 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 336 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 337 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 338 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 339 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 340 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 341 | golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 342 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 343 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 344 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 345 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 346 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 347 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 348 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 349 | golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 350 | golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 351 | golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 352 | golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 353 | golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 354 | golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 355 | golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 356 | golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 357 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 358 | golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 359 | golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 360 | golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 361 | golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 362 | golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40 h1:JWgyZ1qgdTaF3N3oxC+MdTV7qvEEgHo3otj+HB5CM7Q= 363 | golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 364 | golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55 h1:rw6UNGRMfarCepjI8qOepea/SXwIBVfTKjztZ5gBbq4= 365 | golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 366 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 367 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 368 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 369 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 370 | golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= 371 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 372 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 373 | golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 374 | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 375 | golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= 376 | golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= 377 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 378 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 379 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 380 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 381 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 382 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 383 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 384 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 385 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 386 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 387 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 388 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 389 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 390 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 391 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 392 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 393 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 394 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 395 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 396 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 397 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 398 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 399 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 400 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 401 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 402 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 403 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 404 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 405 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 406 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 407 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 408 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 409 | golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 410 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 411 | golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 412 | golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= 413 | golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 414 | golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 415 | golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 416 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 417 | golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 418 | golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 419 | golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 420 | golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= 421 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 422 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 423 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 424 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= 425 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 426 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 427 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 428 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 429 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 430 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 431 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 432 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 433 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 434 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 435 | google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 436 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 437 | google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 438 | google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 439 | google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 440 | google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= 441 | google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= 442 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 443 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 444 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 445 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 446 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 447 | google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 448 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 449 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 450 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 451 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 452 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 453 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 454 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 455 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 456 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 457 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 458 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 459 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 460 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 461 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 462 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= 463 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 464 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 465 | google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 466 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 467 | google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 468 | google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 469 | google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 470 | google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 471 | google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 472 | google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= 473 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= 474 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 475 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= 476 | google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 477 | google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 478 | google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 479 | google.golang.org/genproto v0.0.0-20210820002220-43fce44e7af1 h1:F0WcJZXJRyfaWMXUBAGq7Ba4MWDn+yeACpeEkDUkJ1A= 480 | google.golang.org/genproto v0.0.0-20210820002220-43fce44e7af1/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= 481 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 482 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 483 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 484 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 485 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= 486 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 487 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 488 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 489 | google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= 490 | google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= 491 | google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 492 | google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 493 | google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= 494 | google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= 495 | google.golang.org/grpc v1.39.1 h1:f37vZbBVTiJ6jKG5mWz8ySOBxNqy6ViPgyhSdVnxF3E= 496 | google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= 497 | google.golang.org/grpc v1.40.0 h1:AGJ0Ih4mHjSeibYkFGh1dD9KJ/eOtZ93I6hoHhukQ5Q= 498 | google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= 499 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 500 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 501 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 502 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 503 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 504 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 505 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 506 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 507 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 508 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 509 | google.golang.org/protobuf v1.26.0-rc.1 h1:7QnIQpGRHE5RnLKnESfDoxm2dTapTZua5a0kS0A+VXQ= 510 | google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= 511 | google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= 512 | google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= 513 | google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= 514 | gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc= 515 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 516 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 517 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 518 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= 519 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 520 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= 521 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= 522 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 523 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 524 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 525 | gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 526 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 527 | gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 528 | gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 529 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 530 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= 531 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 532 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= 533 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 534 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 535 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 536 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 537 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 538 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 539 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 540 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 541 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 542 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 543 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 544 | --------------------------------------------------------------------------------