eorm

package
v0.0.0-...-e108d61 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Key            string `json:"key"`
	Value          string `json:"value"`
	Version        int64  `json:"version"`
	CreateRevision int64  `json:"create_revision"`
	ModRevision    int64  `json:"mod_revision"`
	Lease          int64  `json:"lease"`
}

type Etcdb

type Etcdb struct {
	Statement *Statement

	Error error
	// contains filtered or unexported fields
}

func Open

func Open(config clientv3.Config) *Etcdb

func (*Etcdb) Cond

func (etcdb *Etcdb) Cond(cond string) *Etcdb

func (*Etcdb) Drop

func (etcdb *Etcdb) Drop() *Etcdb

func (*Etcdb) Get

func (etcdb *Etcdb) Get(e *[]Entry) *Etcdb

func (*Etcdb) Grant

func (etcdb *Etcdb) Grant() (int64, error)

func (*Etcdb) Put

func (etcdb *Etcdb) Put(key, value string) *Etcdb

func (*Etcdb) PutBatch

func (etcdb *Etcdb) PutBatch(kvs map[string]string) *Etcdb

func (*Etcdb) TTL

func (etcdb *Etcdb) TTL(ttl int64) *Etcdb

func (*Etcdb) WithOptions

func (etcdb *Etcdb) WithOptions(op ...clientv3.OpOption) *Etcdb

type Statement

type Statement struct {
	EntryList []Entry
	OpOptions []clientv3.OpOption
	Cond      string
	LeaseID   int64
	TTL       int64
}

Jump to

Keyboard shortcuts

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