Documentation ¶
Index ¶
- func GetObjectMetaVersion(value []byte) (string, error)
- func GetObjectMetaVersion1(value []byte) (string, error)
- func GetObjectMetaVersion2(value []byte) (string, error)
- type BadgerLogger
- type KVS
- func (k *KVS) Backup(w io.Writer) error
- func (k *KVS) Close() error
- func (k *KVS) Delete(key string) error
- func (k *KVS) DeleteObject(itemKey, metaKey string, ifMatch, ifNoneMatch string, ...) error
- func (k *KVS) Get(key string) ([]byte, error)
- func (k *KVS) List(request *protobuf.ListRequest, stream protobuf.KVS_ListServer) error
- func (k *KVS) RunGC(ctx context.Context, discardRatio float64)
- func (k *KVS) ScheduleGC(ctx context.Context, interval time.Duration, discardRatio float64)
- func (k *KVS) Set(key string, value []byte) error
- func (k *KVS) SetObject(item, meta *protobuf.KeyValuePair, ifMatch, ifNoneMatch string, ...) error
- func (k *KVS) Stats() map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetObjectMetaVersion ¶ added in v0.4.2
func GetObjectMetaVersion1 ¶ added in v0.4.2
func GetObjectMetaVersion2 ¶ added in v0.4.2
Types ¶
type BadgerLogger ¶
type BadgerLogger struct {
// contains filtered or unexported fields
}
func NewBadgerLogger ¶
func NewBadgerLogger(log *zap.Logger) *BadgerLogger
func (*BadgerLogger) Debugf ¶
func (logger *BadgerLogger) Debugf(msg string, args ...interface{})
func (*BadgerLogger) Errorf ¶
func (logger *BadgerLogger) Errorf(msg string, args ...interface{})
func (*BadgerLogger) Infof ¶
func (logger *BadgerLogger) Infof(msg string, args ...interface{})
func (*BadgerLogger) Warningf ¶
func (logger *BadgerLogger) Warningf(msg string, args ...interface{})
type KVS ¶
type KVS struct {
// contains filtered or unexported fields
}
func (*KVS) DeleteObject ¶
func (*KVS) List ¶ added in v0.4.3
func (k *KVS) List(request *protobuf.ListRequest, stream protobuf.KVS_ListServer) error
func (*KVS) ScheduleGC ¶
Click to show internal directories.
Click to hide internal directories.