Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultGroup = "default"
)
Variables ¶
This section is empty.
Functions ¶
func RegisterETCD ¶
Types ¶
type DiscoverNamingService ¶
type Discoverer ¶
type Discoverer interface { Get(ctx context.Context, serviceKeyPrefix string) ([]*Endpoint, error) Watch(ctx context.Context, serviceKeyPrefix string) ([]*Endpoint, Watcher, error) }
func NewEtcdDiscoverer ¶
func NewEtcdDiscoverer(cli *clientv3.Client) Discoverer
type Endpoint ¶
type Endpoint struct { Address string `json:"address"` Group string `json:"group"` Metadata map[string][]string `json:"metadata"` }
func DiscoverETCD ¶
func FilterOrDefault ¶
type Instance ¶
func (*Instance) ServiceWithEnv ¶
type RegisterNamingService ¶
Click to show internal directories.
Click to hide internal directories.