Documentation ¶
Index ¶
- type Endpoints
- type Node
- type Options
- type Register
- type RegisterOptions
- func SetAddress(address string) RegisterOptions
- func SetEtcdConf(conf clientv3.Config) RegisterOptions
- func SetMetadata(metadata map[string]string) RegisterOptions
- func SetName(name string) RegisterOptions
- func SetRegisterTtl(registerTtl int64) RegisterOptions
- func SetSrv(srv interface{}) RegisterOptions
- func SetVersion(version string) RegisterOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Register ¶
type Register struct {
// contains filtered or unexported fields
}
func NewRegister ¶
func NewRegister(opt ...RegisterOptions) (*Register, error)
func (*Register) ListenKeepAliveChan ¶
type RegisterOptions ¶
type RegisterOptions func(*Options)
func SetAddress ¶
func SetAddress(address string) RegisterOptions
func SetEtcdConf ¶
func SetEtcdConf(conf clientv3.Config) RegisterOptions
func SetMetadata ¶
func SetMetadata(metadata map[string]string) RegisterOptions
func SetName ¶
func SetName(name string) RegisterOptions
func SetRegisterTtl ¶
func SetRegisterTtl(registerTtl int64) RegisterOptions
func SetSrv ¶
func SetSrv(srv interface{}) RegisterOptions
func SetVersion ¶
func SetVersion(version string) RegisterOptions
Click to show internal directories.
Click to hide internal directories.