etcddriver

package module
v0.0.0-...-3dc6625 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 NewDriver

func NewDriver(cli *clientv3.Client) *EtcdDriver

NewEtcdDriver

func (*EtcdDriver) GetNodes

func (e *EtcdDriver) GetNodes(ctx context.Context) (nodes []string, err error)

func (*EtcdDriver) Init

func (e *EtcdDriver) Init(serverName string, opts ...commons.Option)

func (*EtcdDriver) NodeID

func (e *EtcdDriver) NodeID() string

func (*EtcdDriver) Start

func (e *EtcdDriver) Start(ctx context.Context) (err error)

func (*EtcdDriver) Stop

func (e *EtcdDriver) Stop(ctx context.Context) (err error)

func (*EtcdDriver) WithOption

func (e *EtcdDriver) WithOption(opt commons.Option) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL