Documentation ¶
Index ¶
- type KV
- type KeyRange
- type KeyValue
- type Query
- func NewAddTableQuery(ctx context.Context, db []byte) (*Query, chan QueryResponse)
- func NewBatchSetValueQuery(ctx context.Context, db []byte, values []KeyValue) (*Query, chan QueryResponse)
- func NewGetValueQuery(ctx context.Context, db []byte, key []byte) (*Query, chan QueryResponse)
- func NewLoadFromFileQuery(ctx context.Context, db []byte, filename []byte) (*Query, chan QueryResponse)
- func NewQuery(ctx context.Context, outbox chan QueryResponse) *Query
- func NewSetValueQuery(ctx context.Context, db, key, value []byte) (*Query, chan QueryResponse)
- type QueryHeader
- type QueryInstruction
- type QueryResponse
- type QueryStats
- type Table
- type TableOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValue ¶
type KeyValue struct { Key json.RawMessage `json:"key"` Value json.RawMessage `json:"value"` }
type Query ¶
type Query struct { Header QueryHeader KeyRange KeyRange Key []byte Value []byte Values []KeyValue // contains filtered or unexported fields }
func NewAddTableQuery ¶
func NewAddTableQuery(ctx context.Context, db []byte) (*Query, chan QueryResponse)
func NewBatchSetValueQuery ¶
func NewGetValueQuery ¶
func NewLoadFromFileQuery ¶
func NewSetValueQuery ¶
func NewSetValueQuery(ctx context.Context, db, key, value []byte) (*Query, chan QueryResponse)
func (*Query) Done ¶
func (m *Query) Done(r QueryResponse)
func (*Query) GetResponse ¶
func (m *Query) GetResponse() *QueryResponse
type QueryHeader ¶
type QueryHeader struct { DataDir []byte TableName []byte Opts *TableOpts FileName []byte Inst QueryInstruction }
type QueryInstruction ¶
type QueryInstruction int
const ( AddTable QueryInstruction = iota BatchSetValue Count GetValue GetRange Load Print Range SetValue )
func (QueryInstruction) String ¶
func (i QueryInstruction) String() string
type QueryResponse ¶
type QueryResponse struct { Key []byte Value []byte RangeValues [][][]byte Stats QueryStats Success bool }
type QueryStats ¶
type QueryStats struct {
Count uint
}
Click to show internal directories.
Click to hide internal directories.