Documentation ¶
Index ¶
- type EtcdDriver
- func (e *EtcdDriver) GetNodes(ctx context.Context) (nodes []string, err error)
- func (e *EtcdDriver) Init(serverName string, opts ...commons.Option)
- func (e *EtcdDriver) NodeID() string
- func (e *EtcdDriver) Start(ctx context.Context) (err error)
- func (e *EtcdDriver) Stop(ctx context.Context) (err error)
- func (e *EtcdDriver) WithOption(opt commons.Option) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdDriver ¶
type EtcdDriver struct {
// contains filtered or unexported fields
}
func (*EtcdDriver) GetNodes ¶
func (e *EtcdDriver) GetNodes(ctx context.Context) (nodes []string, err error)
func (*EtcdDriver) NodeID ¶
func (e *EtcdDriver) NodeID() string
func (*EtcdDriver) WithOption ¶
func (e *EtcdDriver) WithOption(opt commons.Option) (err error)
Click to show internal directories.
Click to hide internal directories.