Documentation ¶
Index ¶
- Variables
- func Dump(t *btree.BTree)
- func NewAdminStorage(ms storage.LogStorage) storage.AdminStorage
- func NewLogStorage(kafka sarama.Client, client gohbase.Client) storage.LogStorage
- type MockClient
- func (m MockClient) Append(a *hrpc.Mutate) (*hrpc.Result, error)
- func (m MockClient) CheckAndPut(p *hrpc.Mutate, family string, qualifier string, expectedValue []byte) (bool, error)
- func (m MockClient) Close()
- func (m MockClient) Delete(d *hrpc.Mutate) (*hrpc.Result, error)
- func (m MockClient) Get(g *hrpc.Get) (*hrpc.Result, error)
- func (m MockClient) Increment(i *hrpc.Mutate) (int64, error)
- func (m MockClient) Put(p *hrpc.Mutate) (*hrpc.Result, error)
- func (m MockClient) Scan(s *hrpc.Scan) hrpc.Scanner
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDoesNotExist = errors.New("requested entry does not exist")
)
Functions ¶
func NewAdminStorage ¶
func NewAdminStorage(ms storage.LogStorage) storage.AdminStorage
NewAdminStorage returns a storage.AdminStorage implementation backed by commitTreeStorage.
func NewLogStorage ¶
NewLogStorage creates a commit log LogStorage instance.
Types ¶
type MockClient ¶
mockClient implements gohbase.Client for testing
func NewMockClient ¶
func NewMockClient(zkquorum string, options ...gohbase.Option) MockClient
func (MockClient) CheckAndPut ¶
func (MockClient) Close ¶
func (m MockClient) Close()
Click to show internal directories.
Click to hide internal directories.