Documentation ΒΆ
Index ΒΆ
- Constants
- Variables
- func Hash(s string) int
- type DB
- func (db *DB) Clear()
- func (db *DB) CommandRPC(ctx context.Context, in *pb.CommandReq) (*pb.CommandResp, error)
- func (db *DB) Delete(key string) error
- func (db *DB) Empty() bool
- func (db *DB) GetNode(key string) (*Node, error)
- func (db *DB) GetValue(key string) (string, error)
- func (db *DB) HaveKey(key string) (bool, error)
- func (db *DB) Persist(filename string)
- func (db *DB) SetValue(key string, value string) error
- func (db *DB) Size() int
- func (db *DB) Start()
- type Node
- type RaftConf
Constants ΒΆ
View Source
const ( SINGLE = iota DISTRIBUTED )
View Source
const Newline = "\n"
View Source
const SEPARATOR = " "
View Source
const SEPARATOR_PLACEHOLER = "\t"
Variables ΒΆ
Functions ΒΆ
Types ΒΆ
type DB ΒΆ
func GetDBFromFile ΒΆ
func (*DB) CommandRPC ΒΆ
func (db *DB) CommandRPC(ctx context.Context, in *pb.CommandReq) (*pb.CommandResp, error)
Click to show internal directories.
Click to hide internal directories.