Documentation
¶
Overview ¶
kscdb package contains Golang functions to rasy use AWS Keyspaces as KeyValue Database. To use it create next keyspace in your AWS Keyspaces:
kscdb
Index ¶
- Constants
- type KeyList
- func (k *KeyList) Append(keys ...string)
- func (k *KeyList) Keys() []string
- func (k *KeyList) Len() int
- func (k *KeyList) MarshalBinary() (data []byte, err error)
- func (k *KeyList) MarshalJSON() (data []byte, err error)
- func (k *KeyList) String() string
- func (k *KeyList) UnmarshalBinary(data []byte) (err error)
- type Kscdb
- func (cdb *Kscdb) Close()
- func (cdb *Kscdb) Delete(key string) (err error)
- func (cdb *Kscdb) DeleteID(key string) (err error)
- func (cdb *Kscdb) Func(key string, value []byte) (data []byte, err error)
- func (cdb *Kscdb) Get(key string) (data []byte, err error)
- func (cdb *Kscdb) GetID(key string) (data []byte, err error)
- func (cdb *Kscdb) GetQueue(key string) (data []byte, err error)
- func (cdb *Kscdb) List(key string) (keyList KeyList, err error)
- func (cdb *Kscdb) ListBody(key string) (dataList [][]byte, err error)
- func (tcdb *Kscdb) PluginFunc(fff string, value []byte) (data []byte, err error)
- func (cdb *Kscdb) Set(key string, value []byte) (err error)
- func (cdb *Kscdb) SetID(key string, value []byte) (err error)
- func (cdb *Kscdb) SetQueue(key string, value []byte) (err error)
- type Plugin
Constants ¶
const Version = "0.0.3"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyList ¶
type KeyList struct {
// contains filtered or unexported fields
}
KeyList is strings array of keys
func (*KeyList) MarshalBinary ¶
MarshalBinary marshal Keylist (string slice) to byte slice with \0x00 separator
func (*KeyList) MarshalJSON ¶
MarshalJSON returns the JSON encoding
func (*KeyList) UnmarshalBinary ¶
UnmarshalBinary unmarshal byte slice with \0x00 separator to Keylist (string slice)
type Kscdb ¶
type Kscdb struct {
// contains filtered or unexported fields
}
Kscdb is kscdb packet receiver
func (*Kscdb) PluginFunc ¶
PluginFunc process plugin function: plugin_name.func(parameters ...string)
type Plugin ¶
type Plugin struct { ID uint32 // Packet id Name string // Plugin name Func string // Function name Params []string // Function parameters RequestInJSON bool // Request packet format }
Plugin is plugins function and parameters used in requests and response teonet commands.
func (Plugin) MarshalBinary ¶
MarshalBinary encodes Plugin receiver data into binary buffer and returns it in byte slice.
func (*Plugin) UnmarshalBinary ¶
UnmarshalBinary decode binary buffer into Plugin receiver data.