etcd

package
v1.1.24 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(m model2.Model, opts ...clientv3.OpOption) (bool, error)

Create will deprecated

func DefaultETCD

func DefaultETCD()

DefaultETCD @Deprecated

func Delete

func Delete(m model2.Model) (bool, error)

Delete will deprecated

func Get

func Get(m model2.Model) (bool, error)

Get next version will deprecated

func Prefix

func Prefix() string

Prefix will deprecated

func Read

func Read(key string) (resp string, err error)

Read deprecated

func Update

func Update(m model2.Model) (bool, error)

Update will deprecated

func Write

func Write(key string, val string) (err error)

Write deprecated

Types

type ETCD

type ETCD struct {
	Client *clientv3.Client
	options2.Options
}
var E *ETCD

func NewETCD

func NewETCD(opt ...options2.Option) (etcd *ETCD, err error)

NewETCD @Deprecated

func (*ETCD) Create

func (e *ETCD) Create(m model2.Model, opts ...clientv3.OpOption) (ok bool, err error)

Create deprecated

func (*ETCD) Delete

func (e *ETCD) Delete(m model2.Model) (ok bool, err error)

Delete deprecated

func (*ETCD) Get

func (e *ETCD) Get(m model2.Model) (ok bool, err error)

Get deprecated

func (*ETCD) List

func (e *ETCD) List(key string) (list []model2.Model, err error)

List deprecated

func (*ETCD) Read

func (e *ETCD) Read(key string) (resp string, err error)

Read Deprecated

func (*ETCD) Update

func (e *ETCD) Update(m model2.Model) (ok bool, err error)

Update deprecated

func (*ETCD) Write

func (e *ETCD) Write(key string, val string) (err error)

Write deprecated

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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