Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultRegisterTTL default register ttl DefaultRegisterTTL = time.Second * 60 // DefaultDialTimeout default dail timeout DefaultDialTimeout = time.Second * 5 )
Functions ¶
This section is empty.
Types ¶
type EtcdOption ¶
EtcdOption etcd config option
type Registry ¶
type Registry interface { // Register register a instance to the registry. Register(ctx context.Context, ins Instance, ttl time.Duration) (context.CancelFunc, error) }
Registry register or unregister instance to registry
func NewEtcdRegistry ¶
func NewEtcdRegistry(etcdEndpoints []string, tenantID string, opts ...EtcdOption) Registry
NewEtcdRegistry new etcd registry
Click to show internal directories.
Click to hide internal directories.