db

package
v0.0.0-...-04a5bd4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MH_Get = 0x10000 + iota
	MH_GetResponse
	MH_Put
	MH_PutResponse
)
View Source
const (
	RESP_OK = iota
	RESP_NotFound
	RESP_IoError
	RESP_DeadTargetNode

	RESP_Illegal
)
View Source
const (
	META_Raw = iota
	META_InnerRedirect
	META_OuterRedirect
)

Variables

View Source
var (
	ErrLoop = gerrors.New("Redirect Loop")
)

Functions

This section is empty.

Types

type Freespace

type Freespace interface {
	Touch()
	HasFreeSpace(key, value int) bool
}

type Store

type Store struct {
	Redirects *badger.DB // may be nil
	Data      []*badger.DB

	Freespace []Freespace
}

func (*Store) Attach

func (s *Store) Attach(wn *mlst.WrapNode)

func (*Store) Get

func (s *Store) Get(w *mlst.WrapNode, d *mlst.MessageReader, msg bufferex.Binary) bool

func (*Store) Put

func (s *Store) Put(w *mlst.WrapNode, d *mlst.MessageReader, msg bufferex.Binary) bool

Jump to

Keyboard shortcuts

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