sliced

package module
v0.0.0-...-d5e3614 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 License: MIT Imports: 7 Imported by: 0

README

slice/d

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTxNotWritable is returned when performing a write operation on a
	// read-only transaction.
	ErrTxNotWritable = errors.New("tx not writable")

	// ErrTxClosed is returned when committing or rolling back a transaction
	// that has already been committed or rolled back.
	ErrTxClosed = errors.New("tx closed")

	// ErrNotFound is returned when an value or idx is not in the database.
	ErrNotFound = errors.New("not found")

	// ErrInvalid is returned when the database file is an invalid format.
	ErrInvalid = errors.New("invalid database")

	// ErrDatabaseClosed is returned when the database is closed.
	ErrDatabaseClosed = errors.New("database closed")

	// ErrIndexExists is returned when an idx already exists in the database.
	ErrIndexExists = errors.New("idx exists")

	// ErrInvalidOperation is returned when an operation cannot be completed.
	ErrInvalidOperation = errors.New("invalid operation")

	// ErrInvalidSyncPolicy is returned for an invalid SyncPolicy value.
	ErrInvalidSyncPolicy = errors.New("invalid sync policy")

	// ErrShrinkInProcess is returned when a shrink operation is in-process.
	ErrShrinkInProcess = errors.New("shrink is in-process")

	// ErrPersistenceActive is returned when post-loading data from an database
	// not opened with Open(":memory:").
	ErrPersistenceActive = errors.New("persistence active")

	// ErrTxIterating is returned when Set or Delete are called while iterating.
	ErrTxIterating = errors.New("tx is iterating")

	ErrLogNotShrinkable    = errors.New("log not shrinkable")
	ErrShardNotExists      = errors.New("shard not exists")
	ErrNotLeader           = errors.New("not leader")
	ErrNotLeaderOrFollower = errors.New("not leader or follower")
)
View Source
var (
	ErrInvalidType = errors.New("expected string")
)
View Source
var GIT = ""
View Source
var Logger = CLILogger()
View Source
var Name = "sliced"
View Source
var Path = ""
View Source
var PluginCtx *context
View Source
var Version semver.Version
View Source
var VersionStr = "0.1.0-1" // SemVer

Functions

func CLILogger

func CLILogger() zerolog.Logger

func DaemonLogger

func DaemonLogger(dev bool) zerolog.Logger

func GetContextName

func GetContextName() string

func SetContextName

func SetContextName(name string)

Types

type Context

type Context interface {
	Exec(arg string) string
}

type DataType

type DataType uint8
const (
	Nil    DataType = 0 // Keyable
	String DataType = 1 // Keyable
	Int    DataType = 2 // Keyable
	Float  DataType = 3 // Keyable
	Bool   DataType = 4 // Keyable
	Rect   DataType = 5 // Keyable
	Time   DataType = 6 // Keyable

	// Message Formats
	JSON    DataType = 8
	MsgPack DataType = 9

	Any DataType = 0

	Composite DataType = 99
)

Directories

Path Synopsis
cmd
sliced command
codec
gjson
Package gjson provides searching for json strings.
Package gjson provides searching for json strings.
msgpack command
sjson
Package sjson provides setting json values.
Package sjson provides setting json values.
lz4
Package lz4 implements reading and writing lz4 compressed data (a frame), as specified in http://fastcompression.blogspot.fr/2013/04/lz4-streaming-format-final.html, using an io.Reader (decompression) and io.Writer (compression).
Package lz4 implements reading and writing lz4 compressed data (a frame), as specified in http://fastcompression.blogspot.fr/2013/04/lz4-streaming-format-final.html, using an io.Reader (decompression) and io.Writer (compression).
index
btree
Package btree implements in-memory B-Trees of arbitrary degree.
Package btree implements in-memory B-Trees of arbitrary degree.
fulltext command
radix/example command
Match provides a simple pattern matcher with unicode support.
Match provides a simple pattern matcher with unicode support.
chi command
eng command
Package pool contains helpers for pooling structures distinguishable by size.
Package pool contains helpers for pooling structures distinguishable by size.
pbufio
Package pbufio contains tools for pooling bufio.Reader and bufio.Writers.
Package pbufio contains tools for pooling bufio.Reader and bufio.Writers.
pbytes
Package pbytes contains tools for pooling byte pool.
Package pbytes contains tools for pooling byte pool.
Package redcon implements a Redis compatible server framework
Package redcon implements a Redis compatible server framework
Package store provides a simple distributed key-value store.
Package store provides a simple distributed key-value store.

Jump to

Keyboard shortcuts

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