data

package
v1.0.1-20230322 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDataNotFound   = errors.New("data not found")
	ErrDataConflicted = errors.New("data conflicted")
	ErrNoAliveNodes   = errors.New("no alive nodes, stop dispatch")

	ErrMutexAlreadyUnlock = errors.New("mutex is already unlocked")
)

Functions

This section is empty.

Types

type Errors

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

Errors

func (*Errors) Append

func (e *Errors) Append(err error)

Append

func (*Errors) Error

func (e *Errors) Error() string

Error

func (*Errors) Len

func (e *Errors) Len() int

Len

type Selector

type Selector struct {
	Key    string
	Op     SelectorOp
	Values []string
}

func PareSelectors

func PareSelectors(selector string) (selectors []Selector, err error)

type SelectorOp

type SelectorOp string
const (
	SelectorOpEqual SelectorOp = "="
	SelectorOpIn    SelectorOp = "in"
)

Jump to

Keyboard shortcuts

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