etcd

package
v0.0.0-...-e5a0710 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstance

func NewInstance(endpoint string)

Types

type GetResp

type GetResp struct {
	Value     string
	Version   int64
	CreateRev int64
	ModRev    int64
	Lease     int64
}

type Operate

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

func Instance

func Instance() *Operate

func (*Operate) GetDetail

func (o *Operate) GetDetail(key string) *GetResp

func (*Operate) Health

func (o *Operate) Health() error

func (*Operate) ListAll

func (o *Operate) ListAll() ([]string, error)

func (*Operate) Update

func (o *Operate) Update(key, value string) error

type Operator

type Operator interface {
	ListAll() ([]string, error)
	Get(key string) string
	Update(key, value string) error

	Health() error
}

Jump to

Keyboard shortcuts

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