Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBType ¶
type DBType int
DBType represents the type of database of the instance, either a node's shard database or the main file database.
type Database ¶
type Database struct {
Header types.DatabaseHeader `json:"header"` // Database header info
Name string `json:"name"` // The name of the db
DBType DBType // The type of database
DB *memcache.DB // Bhojpur Cache in-memory databse instance
// contains filtered or unexported fields
}
Database implements a general database that holds various data within meros.
func Open ¶
Open opens the database for reading and writing. Creates a new DB if one with that name does not already exist.
type ID ¶
ID represents a hash for the keys in the database.
func IDFromString ¶
IDFromString returns an ID given a string
Click to show internal directories.
Click to hide internal directories.