Versions in this module Expand all Collapse all v0 v0.0.4 Feb 12, 2022 Changes in this version + type DBType int + const FILEDB + const NSHARDDB + type Database struct + DB *memcache.DB + DBType DBType + Header types.DatabaseHeader + Name string + func Open(dbName string, dbType DBType) (*Database, error) + func (db *Database) Close() error + func (db *Database) GetItem(id ID) (interface{}, error) + func (db *Database) PutItem(item interface{}) (ID, error) + func (db *Database) String() string + type ID crypto.Hash + func IDFromString(s string) (ID, error) + func (id ID) Bytes() []byte + func (id ID) String() string