Documentation ¶
Index ¶
- type Config
- type Connector
- func (c *Connector) Close() error
- func (c *Connector) Cmd(cmd string, args ...interface{}) skv.Result
- func (cn *Connector) FoFileOpen(path string) (io.ReadSeeker, error)
- func (cn *Connector) FoFilePut(src_path, dst_path string) skv.Result
- func (cn *Connector) FoGet(path_key string) skv.Result
- func (cn *Connector) FoMpGet(sets skv.FileObjectEntryBlock) skv.Result
- func (cn *Connector) FoMpInit(sets skv.FileObjectEntryInit) skv.Result
- func (cn *Connector) FoMpPut(sets skv.FileObjectEntryBlock) skv.Result
- func (cn *Connector) FoRevScan(offset, cutset string, limit int) skv.Result
- func (cn *Connector) FoScan(offset, cutset string, limit int) skv.Result
- func (c *Connector) KvDel(keys ...[]byte) skv.Result
- func (c *Connector) KvGet(key []byte) skv.Result
- func (c *Connector) KvIncr(key []byte, increment int64) skv.Result
- func (c *Connector) KvMeta(key []byte) skv.Result
- func (c *Connector) KvNew(key []byte, value interface{}, opts *skv.KvWriteOptions) skv.Result
- func (cn *Connector) KvProgDel(key skv.KvProgKey, opts *skv.KvProgWriteOptions) skv.Result
- func (cn *Connector) KvProgGet(key skv.KvProgKey) skv.Result
- func (cn *Connector) KvProgIncr(key skv.KvProgKey, incr int64) skv.Result
- func (cn *Connector) KvProgMeta(key skv.KvProgKey) skv.Result
- func (cn *Connector) KvProgNew(key skv.KvProgKey, val skv.KvEntry, opts *skv.KvProgWriteOptions) skv.Result
- func (cn *Connector) KvProgPut(key skv.KvProgKey, val skv.KvEntry, opts *skv.KvProgWriteOptions) skv.Result
- func (cn *Connector) KvProgRevScan(offset, cutset skv.KvProgKey, limit int) skv.Result
- func (cn *Connector) KvProgScan(offset, cutset skv.KvProgKey, limit int) skv.Result
- func (c *Connector) KvPut(key []byte, value interface{}, opts *skv.KvWriteOptions) skv.Result
- func (c *Connector) KvRevScan(offset, cutset []byte, limit int) skv.Result
- func (c *Connector) KvScan(offset, cutset []byte, limit int) skv.Result
- func (cn *Connector) PvDel(path string, opts *skv.KvProgWriteOptions) skv.Result
- func (cn *Connector) PvGet(path string) skv.Result
- func (cn *Connector) PvNew(path string, value interface{}, opts *skv.KvProgWriteOptions) skv.Result
- func (cn *Connector) PvPut(path string, value interface{}, opts *skv.KvProgWriteOptions) skv.Result
- func (cn *Connector) PvRevScan(fold, offset, cutset string, limit int) skv.Result
- func (cn *Connector) PvScan(fold, offset, cutset string, limit int) skv.Result
- type FoReadSeeker
- type Result
- func (rs *Result) Bool() bool
- func (rs *Result) Bytes() []byte
- func (rs *Result) Bytex() types.Bytex
- func (rs *Result) Decode(obj interface{}) error
- func (rs *Result) ErrorString() string
- func (rs *Result) Float32() float32
- func (rs *Result) Float64() float64
- func (rs *Result) Int() int
- func (rs *Result) Int16() int16
- func (rs *Result) Int32() int32
- func (rs *Result) Int64() int64
- func (rs *Result) Int8() int8
- func (rs *Result) KvEach(fn func(entry *skv.ResultEntry) int) int
- func (rs *Result) KvEntry(i int) *skv.ResultEntry
- func (rs *Result) KvKey() []byte
- func (rs *Result) KvLen() int
- func (rs *Result) KvList() []*skv.ResultEntry
- func (rs *Result) KvPairs() []skv.Result
- func (rs *Result) KvSize() int
- func (rs *Result) List() []skv.Result
- func (rs *Result) ListLen() int
- func (rs *Result) Meta() *skv.KvMeta
- func (rs *Result) NotFound() bool
- func (rs *Result) OK() bool
- func (rs *Result) Status() uint8
- func (rs *Result) String() string
- func (rs *Result) Uint() uint
- func (rs *Result) Uint16() uint16
- func (rs *Result) Uint32() uint32
- func (rs *Result) Uint64() uint64
- func (rs *Result) Uint8() uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Database server hostname or IP. Leave blank if using unix sockets Host string `json:"host"` // Database server port. Leave blank if using unix sockets Port uint16 `json:"port"` // Password for authentication Auth string `json:"auth"` // A path of a UNIX socket file. Leave blank if using host and port Socket string `json:"socket"` // The connection timeout to a redis host (seconds) Timeout int `json:"timeout"` // Maximum number of connections MaxConn int `json:"maxconn"` }
func NewConfig ¶
func NewConfig(copts connect.ConnOptions) Config
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
func (*Connector) FoFileOpen ¶
func (cn *Connector) FoFileOpen(path string) (io.ReadSeeker, error)
func (*Connector) KvProgIncr ¶
func (*Connector) KvProgRevScan ¶
func (*Connector) KvProgScan ¶
type FoReadSeeker ¶
type FoReadSeeker struct {
// contains filtered or unexported fields
}
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (*Result) ErrorString ¶
func (*Result) KvList ¶
func (rs *Result) KvList() []*skv.ResultEntry
Click to show internal directories.
Click to hide internal directories.