Documentation ¶
Index ¶
- type MockStorer
- func (m *MockStorer) Close() error
- func (m *MockStorer) Get(_ context.Context, _ storage.ModeGet, addr boson.Address) (ch boson.Chunk, err error)
- func (m *MockStorer) GetModePut(addr boson.Address) (mode storage.ModePut)
- func (m *MockStorer) GetModeSet(addr boson.Address) (mode storage.ModeSet)
- func (m *MockStorer) GetMulti(ctx context.Context, mode storage.ModeGet, addrs ...boson.Address) (ch []boson.Chunk, err error)
- func (m *MockStorer) Has(ctx context.Context, hasMode storage.ModeHas, addr boson.Address) (yes bool, err error)
- func (m *MockStorer) HasMulti(ctx context.Context, hasMode storage.ModeHas, addrs ...boson.Address) (yes []bool, err error)
- func (m *MockStorer) Put(ctx context.Context, mode storage.ModePut, chs ...boson.Chunk) (exist []bool, err error)
- func (m *MockStorer) Set(ctx context.Context, mode storage.ModeSet, addrs ...boson.Address) (err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStorer ¶
type MockStorer struct {
// contains filtered or unexported fields
}
func NewStorer ¶
func NewStorer(opts ...Option) *MockStorer
func (*MockStorer) Close ¶
func (m *MockStorer) Close() error
func (*MockStorer) GetModePut ¶
func (m *MockStorer) GetModePut(addr boson.Address) (mode storage.ModePut)
func (*MockStorer) GetModeSet ¶
func (m *MockStorer) GetModeSet(addr boson.Address) (mode storage.ModeSet)
Click to show internal directories.
Click to hide internal directories.