github.com/kaydxh/golang@v0.0.131/pkg/discovery/etcd/etcd.proto (about) 1 syntax = "proto3"; 2 3 package go.pkg.discovery.etcd; 4 import "google/protobuf/duration.proto"; 5 6 option go_package = "github.com/kaydxh/go.pkg.discovery.etcd;etcd"; 7 8 message Etcd { 9 bool enabled = 1; 10 repeated string addresses = 2; 11 string username = 3; 12 string password = 4; 13 int32 max_call_send_msg_size = 5; //If 0, it defaults to 2.0 MiB (2 * 1024 * 1024) 14 15 // MaxCallRecvMsgSize is the client-side response receive limit. 16 // If 0, it defaults to "math.MaxInt32", because range response can 17 // easily exceed request send limits. 18 // Make sure that "MaxCallRecvMsgSize" >= server-side default 19 // send/recv limit. 20 // ("--max-request-bytes" flag to etcd or 21 // "embed.Config.MaxRequestBytes"). 22 int32 max_call_recv_msg_size = 6; 23 // AutoSyncInterval is the interval to update endpoints with its latest members. 24 // 0 disables auto-sync. By default auto-sync is disabled. 25 google.protobuf.Duration auto_sync_interval = 7; 26 27 google.protobuf.Duration dial_timeout = 8; 28 29 google.protobuf.Duration max_wait_duration = 12; 30 google.protobuf.Duration fail_after_duration = 13; 31 32 repeated string watch_paths = 14; 33 }