Documentation ¶
Overview ¶
Package etcd resolver
Package etcd resolver
Index ¶
- func NewEtcdRegistry(endpoints []string, opts ...Option) (registry.Registry, error)
- func NewEtcdRegistryWithAuth(endpoints []string, username, password string) (registry.Registry, error)
- func NewEtcdResolver(endpoints []string, opts ...Option) (discovery.Resolver, error)
- func NewEtcdResolverWithAuth(endpoints []string, username, password string) (discovery.Resolver, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEtcdRegistry ¶
NewEtcdRegistry creates a etcd based registry.
func NewEtcdRegistryWithAuth ¶
func NewEtcdRegistryWithAuth(endpoints []string, username, password string) (registry.Registry, error)
NewEtcdRegistryWithAuth creates a etcd based registry with given username and password. Deprecated: Use WithAuthOpt instead.
func NewEtcdResolver ¶
NewEtcdResolver creates a etcd based resolver.
Types ¶
type Option ¶ added in v0.0.6
Option sets options such as username, tls etc.
func WithAuthOpt ¶ added in v0.0.6
WithAuthOpt returns a option that authentication by usernane and password.
func WithTLSOpt ¶ added in v0.0.6
WithTLSOpt returns a option that authentication by tls/ssl.
Click to show internal directories.
Click to hide internal directories.