kope

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MinimalKey = &minKeyPlaceholder
	MaximumKey = &maxKeyPlaceholder
)

Functions

func Encode

func Encode(values ...interface{}) ([]byte, error)

Encode values

func EncodeBool

func EncodeBool(value bool) ([]byte, error)

Encode a bool

func EncodeBytes

func EncodeBytes(value []byte) ([]byte, error)

Encode a byte slice

func EncodeFloat32

func EncodeFloat32(value float32) ([]byte, error)

Encode a float32

func EncodeFloat64

func EncodeFloat64(value float64) ([]byte, error)

Encode a float64

func EncodeInt

func EncodeInt(value int) ([]byte, error)

Encode a signed integer

func EncodeInt16

func EncodeInt16(value int16) ([]byte, error)

Encode a signed 16-bit integer

func EncodeInt32

func EncodeInt32(value int32) ([]byte, error)

Encode a signed 32-bit integer

func EncodeInt64

func EncodeInt64(value int64) ([]byte, error)

Encode a signed 64-bit integer

func EncodeInt8

func EncodeInt8(value int8) ([]byte, error)

Encode a signed 8-bit integer

func EncodeOpeEncoder

func EncodeOpeEncoder(value OpeEncoder) ([]byte, error)

Encode a OpeEncoder

func EncodeSlice

func EncodeSlice(value []interface{}) ([]byte, error)

func EncodeString

func EncodeString(value string) ([]byte, error)

Encode a string

func EncodeUint

func EncodeUint(value uint) ([]byte, error)

Encode an unsigned integer

func EncodeUint16

func EncodeUint16(value uint16) ([]byte, error)

Encode an unsigned 16-bit integer

func EncodeUint32

func EncodeUint32(value uint32) ([]byte, error)

Encode an unsigned 32-bit integer

func EncodeUint64

func EncodeUint64(value uint64) ([]byte, error)

Encode an unsigned 64-bit integer

func EncodeUint8

func EncodeUint8(value uint8) ([]byte, error)

Encode an unsigned 8-bit integer

func EncodeUintPtr

func EncodeUintPtr(value uintptr) ([]byte, error)

Encode an unsigned pointer integer

func EncodeValue

func EncodeValue(rv reflect.Value) ([]byte, error)

func IndexKeyRange

func IndexKeyRange(prefix Key, idxValues ...interface{}) (start Key, limit Key)

func PackList added in v1.0.2

func PackList(e [][]byte) []byte

Types

type Key

type Key = []byte

func AppendKey

func AppendKey(prefix Key, values ...interface{}) Key

func ConcatKey

func ConcatKey(keys ...Key) Key

func IndexKey

func IndexKey(prefix Key, primaryKey Key, idxValues ...interface{}) Key

func IndexedPrimaryKey

func IndexedPrimaryKey(indexKey Key) Key

func MaxKey

func MaxKey(prefix Key) Key

func MinKey

func MinKey(prefix Key) Key

func NewKey

func NewKey(values ...interface{}) Key

type OpeEncoder

type OpeEncoder interface {
	OpeEncode() ([]byte, error)
}

type ValueRange

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

Jump to

Keyboard shortcuts

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