model

package
v0.0.0-...-ce54790 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBInit

func DBInit(ctx context.Context)

func DBclose

func DBclose()

func Del

func Del(key []byte)

func Put

func Put(key, reallyKey, value []byte, version int64, t string) error

Types

type Record

type Record struct {
	Key     string
	Value   string
	Version int
	Time    string
	Type    string
}

func Get

func Get(key string) []*Record

etcd key ? isDir :{key == false, dir == true}

type Records

type Records []*Record

func (Records) Len

func (p Records) Len() int

func (Records) Less

func (p Records) Less(i, j int) bool

func (Records) Swap

func (p Records) Swap(i, j int)

Jump to

Keyboard shortcuts

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