Documentation ¶
Index ¶
- func BytesToFloat64(data []byte) float64
- func BytesToInt64(data []byte) int64
- func BytesToUint64(data []byte) uint64
- func Float64ToBytes(n float64) []byte
- func Int64ToBytes(n int64) []byte
- func StrToBytes(s string) []byte
- func Uint64ToBytes(n uint64) []byte
- type Broton
- type ColumnFamily
- type Options
- type Store
- func (store *Store) Close()
- func (store *Store) Delete(column string, key []byte) error
- func (store *Store) GetBytes(column string, key []byte) ([]byte, error)
- func (store *Store) GetColumnFamailyHandle(name string) (*ColumnFamily, error)
- func (store *Store) GetFloat64(column string, key []byte) (float64, error)
- func (store *Store) GetInt64(column string, key []byte) (int64, error)
- func (store *Store) GetString(column string, key []byte) (string, error)
- func (store *Store) GetUint64(column string, key []byte) (uint64, error)
- func (store *Store) List(column string, targetKey []byte, callback func(key []byte, value []byte) bool) error
- func (store *Store) Put(column string, key []byte, data []byte) error
- func (store *Store) PutFloat64(column string, key []byte, value float64) error
- func (store *Store) PutInt64(column string, key []byte, value int64) error
- func (store *Store) PutString(column string, key []byte, value string) error
- func (store *Store) PutUint64(column string, key []byte, value uint64) error
- func (store *Store) RegisterColumns(names []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToFloat64 ¶
func BytesToInt64 ¶
func BytesToUint64 ¶
func Float64ToBytes ¶
func Int64ToBytes ¶
func StrToBytes ¶
func Uint64ToBytes ¶
Types ¶
type Broton ¶
type Broton struct {
// contains filtered or unexported fields
}
func (*Broton) UnregisterStore ¶
type ColumnFamily ¶ added in v0.0.4
type ColumnFamily struct { Store *Store Db *pebble.DB Name string // contains filtered or unexported fields }
func NewColumnFamily ¶ added in v0.0.4
func NewColumnFamily(store *Store, name string) *ColumnFamily
func (*ColumnFamily) Close ¶ added in v0.0.4
func (cf *ColumnFamily) Close() error
func (*ColumnFamily) Open ¶ added in v0.0.4
func (cf *ColumnFamily) Open() error
type Options ¶
type Options struct {
DatabasePath string
}
func NewOptions ¶
func NewOptions() *Options
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) GetColumnFamailyHandle ¶ added in v0.0.2
func (store *Store) GetColumnFamailyHandle(name string) (*ColumnFamily, error)
func (*Store) GetFloat64 ¶
func (*Store) PutFloat64 ¶
func (*Store) RegisterColumns ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.