Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVStore ¶
type KVStore interface {
Store
Put(*pb.PutRequest) error
Get(*pb.GetRequest) string
InternalMap() map[string]string
}
KVStore interface for Key Value store
type Manager ¶
type Manager interface {
Create(*pb.StoreCreateRequest) error
Delete(*pb.StoreDeleteRequest) error
Apply(entry *pb.WalEntry) error
Close() error
Stores() map[string]Store
}
Manager interface for Storage management
type SQLStore ¶
type SQLStore interface {
Store
Execute(*pb.ExecuteQueryRequest) (*pb.ExecuteQueryReply, error)
Query(*pb.QueryRequest) (*pb.QueryReply, error)
}
SQLStore interface for Sql store
func NewSqliteStore ¶
NewSqliteStore creates a new store for sqlite database
type Store ¶
type Store interface {
Name() string
Close() error
Type() pb.StoreType
Create(*pb.StoreCreateRequest)
Delete(*pb.StoreDeleteRequest)
}
Store Interface for store
Click to show internal directories.
Click to hide internal directories.