Documentation ¶
Index ¶
- Constants
- Variables
- func Decode(value []byte, into interface{}) error
- func Encode(value interface{}) ([]byte, error)
- type Config
- type DB
- func (d *DB) Add(key string, value []byte, mType string) error
- func (d *DB) AddOp(keyID string, value *crdt.TSValue) error
- func (d *DB) Close()
- func (d *DB) GetUIDFromKey(k string) string
- func (d *DB) HandleCollision(values crdt.Payload) crdt.Payload
- func (d *DB) Init(path string) error
- func (d *DB) Load(key string) (crdt.Payload, bool)
- func (d *DB) OpLog(from string) [][]byte
- func (d *DB) Remove(key string) error
- func (d *DB) StoreOpLog(id string, value interface{}) error
- type ModuleConf
Constants ¶
View Source
const ( KEYS = "keys" OPS = "ops" )
Variables ¶
View Source
var ReadyDBs = sync.Map{}
Functions ¶
Types ¶
type Config ¶
type Config struct {
DB *ModuleConf
}
type DB ¶
type DB struct { Db *bolt.DB IDSource crdt.ObserveGUIDer Options struct { CollisionStrategy string } }
func (*DB) GetUIDFromKey ¶
func (*DB) StoreOpLog ¶
type ModuleConf ¶
type ModuleConf struct {
FileName string
}
func GetConf ¶
func GetConf() *ModuleConf
Click to show internal directories.
Click to hide internal directories.