Documentation ¶
Index ¶
- Variables
- func BatchDelete(ctx context.Context, s *SyncStore, keys [][]byte) error
- func BatchStore(ctx context.Context, s *SyncStore, kvs Ranger) error
- func Delete(ctx context.Context, s *SyncStore, key []byte) error
- func ReviewSyncStore(ctx context.Context, dir string, key []byte, watcher ReviewWatcher, ...) error
- func Store(ctx context.Context, s *SyncStore, key []byte, value interface{}) error
- type AsyncStore
- func (s *AsyncStore) BatchDelete(keys [][]byte)
- func (s *AsyncStore) BatchStore(_ context.Context, kvs Ranger)
- func (s *AsyncStore) Close()
- func (s *AsyncStore) Delete(key []byte)
- func (s *AsyncStore) Load(key []byte) (interface{}, bool)
- func (s *AsyncStore) Store(_ context.Context, key []byte, value interface{})
- type Kind
- type Marshaler
- type RangeCallback
- type Ranger
- type ReviewWatcher
- type StoreCallback
- type SyncStore
- func (s *SyncStore) BatchDelete(ctx context.Context, keys [][]byte, cb StoreCallback)
- func (s *SyncStore) BatchStore(ctx context.Context, kvs Ranger, cb StoreCallback)
- func (s *SyncStore) Close(_ context.Context)
- func (s *SyncStore) Delete(ctx context.Context, key []byte, cb StoreCallback)
- func (s *SyncStore) Load(key []byte) (interface{}, bool)
- func (s *SyncStore) Range(begin, end []byte, cb RangeCallback) error
- func (s *SyncStore) Store(ctx context.Context, key []byte, value interface{}, cb StoreCallback)
- type Unmarshaler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DeletedMark deletedMarkType
)
View Source
var ErrClosed = errors.New("MetaStore: closed")
Functions ¶
func ReviewSyncStore ¶ added in v0.9.0
Types ¶
type AsyncStore ¶
type AsyncStore struct {
// contains filtered or unexported fields
}
func RecoverAsyncStore ¶
func (*AsyncStore) BatchDelete ¶
func (s *AsyncStore) BatchDelete(keys [][]byte)
func (*AsyncStore) BatchStore ¶
func (s *AsyncStore) BatchStore(_ context.Context, kvs Ranger)
func (*AsyncStore) Close ¶
func (s *AsyncStore) Close()
func (*AsyncStore) Delete ¶
func (s *AsyncStore) Delete(key []byte)
func (*AsyncStore) Load ¶
func (s *AsyncStore) Load(key []byte) (interface{}, bool)
type RangeCallback ¶
type ReviewWatcher ¶ added in v0.9.0
type ReviewWatcher = func(value interface{}, version int64)
type StoreCallback ¶
type StoreCallback = func(error)
type SyncStore ¶
type SyncStore struct {
// contains filtered or unexported fields
}
func RecoverSyncStore ¶
func (*SyncStore) BatchDelete ¶
func (s *SyncStore) BatchDelete(ctx context.Context, keys [][]byte, cb StoreCallback)
func (*SyncStore) BatchStore ¶
func (s *SyncStore) BatchStore(ctx context.Context, kvs Ranger, cb StoreCallback)
type Unmarshaler ¶
type Unmarshaler interface {
Unmarshal(data []byte, cb RangeCallback) error
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.