moved

package module
v0.0.0-...-3403bd2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2018 License: MIT Imports: 18 Imported by: 0

README

move/d

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClusterAddress = errors.New("cluster address not set")

	// 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")
	// 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")

	ErrLogNotShrinkable = errors.New("log not shrinkable")
	ErrNotLeader        = errors.New("not leader")
)
View Source
var (
	GIT = ""

	// App stuff
	Name       = "sliced"
	VersionStr = "0.1.0-1"
	Version    semver.Version

	// Environment
	InstanceID = ""
	Region     = ""

	// Logging stuff
	Console  bool
	Logger   = CLILogger()
	LogLevel int

	// Metrics stuff
	Metrics = metrics.DefaultRegistry

	// Network stuff
	ApiHost    = ":9002"
	ApiPort    = 9002
	ApiAddr    *net.TCPAddr
	EventLoops = 1
	WebHost    = ":9003"

	RaftHost = ":9004"

	Bootstrap bool

	// Raft stuff
	ClusterAddress = raft.ServerAddress(ApiHost)
	ClusterID      = raft.ServerID(ApiHost)

	RaftTimeout = time.Second * 10

	// File system stuff
	UserHomeDir    = ""
	HomeDir        = ""
	StoreDir       = ""
	ClusterDir     = ""
	SchemaDir      = ""
	SliceStorePath = ""
	DataDir        = ""
	PIDName        = ""

	PathMode os.FileMode = 0755

	PID     *single.Single
	PIDLock *single.LockResult
)
View Source
var (
	ErrInvalidType = errors.New("expected string")
)

Functions

func BindCLI

func BindCLI(cmd *cobra.Command)

func CLILogger

func CLILogger() zerolog.Logger

func Configure

func Configure() error

func DaemonLogger

func DaemonLogger(dev bool) zerolog.Logger

func GetDrives

func GetDrives() (drives map[string]*store.Drive)

Retrieves the drives from config

func GetDrivesList

func GetDrivesList() []*store.Drive

func Lock

func Lock() *single.LockResult

func Unlock

func Unlock() error

Types

type DataType

type DataType byte
const (
	Nil    DataType = 0 // Keyable
	String DataType = 1 // Keyable

	Int    DataType = 2 // Keyable
	Uint   DataType = 3 // Keyable
	Int32  DataType = 4
	Uint32 DataType = 5
	Int16  DataType = 6
	Uint16 DataType = 7
	Int8   DataType = 8
	Uint8  DataType = 9

	Float   DataType = 10 // Keyable
	Float32 DataType = 11 // Keyable

	Bool  DataType = 12 // Keyable
	Rect  DataType = 13 // Keyable
	Time  DataType = 14 // Keyable
	Bytes DataType = 15
	List  DataType = 18
	Map   DataType = 19
	Set   DataType = 20

	// Message Formats
	Protobuf DataType = 20
	JSON     DataType = 21
	MsgPack  DataType = 22
	CBOR     DataType = 23
	XML      DataType = 24

	HyperLogLog DataType = 30

	Any DataType = 255

	Composite DataType = 99
	Unknown   DataType = 100
)

Directories

Path Synopsis
app
api
automation
Ability to grow and shrink the total network.
Ability to grow and shrink the total network.
cmd
fs
mmap
Package mmap allows mapping files into memory.
Package mmap allows mapping files into memory.
pool
Package pool contains helpers for pooling structures distinguishable by size.
Package pool contains helpers for pooling structures distinguishable by size.
pool/pbufio
Package pbufio contains tools for pooling bufio.Reader and bufio.Writers.
Package pbufio contains tools for pooling bufio.Reader and bufio.Writers.
pool/pbytes
Package pbytes contains tools for pooling byte pool.
Package pbytes contains tools for pooling byte pool.
raft
Provides a raft transport using the Redis RESP protocol allowing the same Event Loops and command processing to be used for as many Raft clusters as desired.
Provides a raft transport using the Redis RESP protocol allowing the same Event Loops and command processing to be used for as many Raft clusters as desired.
table/index/btree
Package btree implements in-memory B-Trees of arbitrary degree.
Package btree implements in-memory B-Trees of arbitrary degree.
assets
ui
cmd
sliced command
common
backoff
Package backoff implements backoff algorithms for retrying operations.
Package backoff implements backoff algorithms for retrying operations.
base58
Package base58 provides base58-check encoding.
Package base58 provides base58-check encoding.
btrdb
Package buntdb implements a low-level in-memory key/value store in pure Go.
Package buntdb implements a low-level in-memory key/value store in pure Go.
btree
Package btree implements in-memory B-Trees of arbitrary degree.
Package btree implements in-memory B-Trees of arbitrary degree.
fastjson
Package fastjson provides fast JSON parsing.
Package fastjson provides fast JSON parsing.
gjson
Package gjson provides searching for json strings.
Package gjson provides searching for json strings.
histogram
Package hdrhistogram provides an implementation of Gil Tene's HDR Histogram data structure.
Package hdrhistogram provides an implementation of Gil Tene's HDR Histogram data structure.
humanize
Package humanize converts boring ugly numbers to human-friendly strings and back.
Package humanize converts boring ugly numbers to human-friendly strings and back.
humanize/english
Package english provides utilities to generate more user-friendly English output.
Package english provides utilities to generate more user-friendly English output.
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).
match
Match provides a simple pattern matcher with unicode support.
Match provides a simple pattern matcher with unicode support.
metrics
Go port of Coda Hale's Metrics library
Go port of Coda Hale's Metrics library
metrics/exp
Hook go-metrics into expvar on any /debug/metrics request, load all vars from the registry into expvar, and execute regular expvar handler
Hook go-metrics into expvar on any /debug/metrics request, load all vars from the registry into expvar, and execute regular expvar handler
metrics/stathat
Metrics output to StatHat.
Metrics output to StatHat.
pid
protobuf
Package protobuf implements Protocol Buffers reflectively using Go types to define message formats.
Package protobuf implements Protocol Buffers reflectively using Go types to define message formats.
redigo/internal/redistest
Package redistest contains utilities for writing Redigo tests.
Package redistest contains utilities for writing Redigo tests.
redigo/redis
Package redis is a client for the Redis database.
Package redis is a client for the Redis database.
redigo/redisx
Package redisx contains experimental features for Redigo.
Package redisx contains experimental features for Redigo.
sjson
Package sjson provides setting json values.
Package sjson provides setting json values.
tray
Package systray is a cross platfrom Go library to place an icon and menu in the notification area.
Package systray is a cross platfrom Go library to place an icon and menu in the notification area.
tray/example command
xxHash32
Package xxHash32 implements the very fast xxHash hashing algorithm (32 bits version).
Package xxHash32 implements the very fast xxHash hashing algorithm (32 bits version).
zfs
Package zfs provides wrappers around the ZFS command line tools.
Package zfs provides wrappers around the ZFS command line tools.
proto
api
Package api is a generated protocol buffer package.
Package api is a generated protocol buffer package.
store
Package store is a generated protocol buffer package.
Package store is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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