etcd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdServiceOperations

type EtcdServiceOperations struct {
	// contains filtered or unexported fields
}

func NewEtcdServiceOperations

func NewEtcdServiceOperations(client *clientv3.Client, opts map[string]string) *EtcdServiceOperations

func (EtcdServiceOperations) DelMessage

func (myself EtcdServiceOperations) DelMessage(key string) ([]byte, error)

func (EtcdServiceOperations) GetAllNodeIds

func (myself EtcdServiceOperations) GetAllNodeIds(role string) ([]string, error)

func (EtcdServiceOperations) GetMesssage

func (myself EtcdServiceOperations) GetMesssage(key string) ([]byte, error)

func (EtcdServiceOperations) SetMessage

func (myself EtcdServiceOperations) SetMessage(key string, msgContent []byte) error

Jump to

Keyboard shortcuts

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