juggler

package
v0.0.0-...-6c79d2d Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDropped = errors.New("process was dropped")
View Source
var ErrFinished = errors.New("process was finished")
View Source
var ErrLimited = errors.New("limited process try to get new")
View Source
var ErrNotInCharge = errors.New("try to change while not in charge")

Functions

This section is empty.

Types

type GetPutDeleter

type GetPutDeleter interface {
	Get(uint64) ([]byte, error)
	Put(uint64, []byte) error
	Delete(uint64) error
}

type Juggler

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

func New

func New(resources GetPutDeleter) *Juggler

func (*Juggler) NewTx

func (J *Juggler) NewTx() *Tx

type Tx

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

func (*Tx) Delete

func (T *Tx) Delete(uid uint64) error

func (*Tx) Finish

func (T *Tx) Finish() error

func (*Tx) Get

func (T *Tx) Get(uid uint64) ([]byte, error)

func (*Tx) Put

func (T *Tx) Put(uid uint64, data []byte) error

func (*Tx) SetLimited

func (T *Tx) SetLimited() error

Jump to

Keyboard shortcuts

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