Documentation ¶
Overview ¶
Configuration values for KV Store
Index ¶
- Constants
- type CliftonDBKVStore
- func (s *CliftonDBKVStore) Delete(key types.KeyType) (ok bool, err error)
- func (s *CliftonDBKVStore) EnsureDirsExist() error
- func (s *CliftonDBKVStore) Exists(key types.KeyType) (ok bool, err error)
- func (s *CliftonDBKVStore) Get(key types.KeyType) (data types.ValueType, ok bool, err error)
- func (s *CliftonDBKVStore) Put(key types.KeyType, data types.ValueType) (err error)
- func (s *CliftonDBKVStore) ReadLockFile() (data KVStoreLockFileData, err error)
- func (s *CliftonDBKVStore) Remove(key types.KeyType) (ok bool, err error)
- func (s *CliftonDBKVStore) WriteLockFile(data KVStoreLockFileData) error
- type KVStore
- type KVStoreConfig
- type KVStoreLockFileData
- type KVStoreMetadata
- type KVStoreOpenOptions
- type KVStoreOptions
- type LogStorageConfig
- type PutCmd
- type SSTableConfig
Constants ¶
View Source
const ( B uint64 = 1 << (iota * 10) KB MB GB TB PB EB )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliftonDBKVStore ¶
type CliftonDBKVStore struct { KVStoreRoot string SSTablesRoot string WALRoot string KVStoreLockFilePath string // contains filtered or unexported fields }
func NewCliftonDBKVStore ¶
func NewCliftonDBKVStore(dirPath string, logPath string) (*CliftonDBKVStore, error)
func (*CliftonDBKVStore) Delete ¶
func (s *CliftonDBKVStore) Delete(key types.KeyType) (ok bool, err error)
func (*CliftonDBKVStore) EnsureDirsExist ¶
func (s *CliftonDBKVStore) EnsureDirsExist() error
func (*CliftonDBKVStore) Exists ¶
func (s *CliftonDBKVStore) Exists(key types.KeyType) (ok bool, err error)
func (*CliftonDBKVStore) ReadLockFile ¶
func (s *CliftonDBKVStore) ReadLockFile() (data KVStoreLockFileData, err error)
func (*CliftonDBKVStore) Remove ¶
func (s *CliftonDBKVStore) Remove(key types.KeyType) (ok bool, err error)
func (*CliftonDBKVStore) WriteLockFile ¶
func (s *CliftonDBKVStore) WriteLockFile(data KVStoreLockFileData) error
type KVStore ¶
type KVStore interface { Get(keyType types.KeyType) (data types.ValueType, ok bool, err error) Put(key types.KeyType, data types.ValueType) (err error) Remove(key types.KeyType) (ok bool, err error) Exists(key types.KeyType) (ok bool, err error) }
func BootstrapFromDir ¶
type KVStoreConfig ¶
type KVStoreConfig struct { Log LogStorageConfig `yaml:"wal-log"` SSTable SSTableConfig `yaml:"sstable"` DataDirPath string `yaml:"data-dir"` }
type KVStoreLockFileData ¶
type KVStoreMetadata ¶
type KVStoreOpenOptions ¶
type KVStoreOpenOptions interface {
Apply(options *KVStoreOptions)
}
type KVStoreOptions ¶
type LogStorageConfig ¶
type LogStorageConfig struct {
SegmentSize string `yaml:"segment-size"`
}
type SSTableConfig ¶
Click to show internal directories.
Click to hide internal directories.