Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVStore ¶
type KVStore struct {
// contains filtered or unexported fields
}
KVStore is the key value datastore
func NewKVStore ¶
func NewKVStore(path string, options *KVStoreOptions) (*KVStore, error)
NewKVStore creates a new key value datastore
func (*KVStore) GarbageCollect ¶ added in v0.3.0
GarbageCollect cleans up old values in log files
func (*KVStore) Get ¶
func (s *KVStore) Get(request *apiv1.GetValuesRequest) (*apiv1.GetValuesResponse, error)
Get retrieves key values from the datastore.
type KVStoreOptions ¶ added in v0.6.0
type KVStoreOptions struct { EnableTruncate *wrappers.BoolValue MaxTableSize *wrappers.Int64Value LevelOneSize *wrappers.Int64Value LevelSizeMultiplier *wrappers.Int32Value NumberOfLevelZeroTables *wrappers.Int32Value NumberOfLevelZeroTablesUntilForceCompaction *wrappers.Int32Value GarbageCollectionDiscardRatio *wrappers.FloatValue }
KVStoreOptions represent environment variable configurable options related to the KV Store.
Click to show internal directories.
Click to hide internal directories.