Documentation ¶ Index ¶ type DiscoverConfig type Endpoint type Operation Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DiscoverConfig ¶ type DiscoverConfig struct { Ctx context.Context EtcdClusterEndpoints []string } DiscoverConfig type Endpoint ¶ type Endpoint struct { Name string `json:"name"` URL string `json:"url"` Weight int `json:"weight"` Mode int `json:"-"` //0 means URL change, 1 means weight change, 2 means full change } type Operation ¶ type Operation int Operation const ( ADD Operation = iota DELETE UPDATE SYNC ) Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.