Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultTimeout = time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func NewConsulRegistry ¶
func NewConsulRegistry(consulClient *api.Client, opts ...consulregistry.Option) (*consulregistry.Registry, error)
NewConsulRegistry consul
func NewEtcdRegistry ¶
func NewEtcdRegistry(etcdClient *clientv3.Client, opts ...etcdregistry.Option) (*etcdregistry.Registry, error)
NewEtcdRegistry creates etcd registry
Types ¶
type RegistryType ¶
type RegistryType string
RegistryType ...
const ( RegistryTypeLocal RegistryType = "local" RegistryTypeConsul RegistryType = "consul" RegistryTypeEtcd RegistryType = "etcd" )
Click to show internal directories.
Click to hide internal directories.