Documentation ¶
Overview ¶
Package db is a generated GoMock package.
Index ¶
- Variables
- type Adapter
- type MockAdapter
- func (m *MockAdapter) CreateCandlesticks(ctx context.Context, cs *candlestick.List) error
- func (m *MockAdapter) DeleteCandlesticks(ctx context.Context, cs *candlestick.List) error
- func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder
- func (m *MockAdapter) ReadCandlesticks(ctx context.Context, cs *candlestick.List, start, end time.Time, limit uint) error
- func (m *MockAdapter) UpdateCandlesticks(ctx context.Context, cs *candlestick.List) error
- type MockAdapterMockRecorder
- func (mr *MockAdapterMockRecorder) CreateCandlesticks(ctx, cs interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) DeleteCandlesticks(ctx, cs interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) ReadCandlesticks(ctx, cs, start, end, limit interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) UpdateCandlesticks(ctx, cs interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
var (
ErrNotFound = errors.New("not-found")
)
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { CreateCandlesticks(ctx context.Context, cs *candlestick.List) error ReadCandlesticks(ctx context.Context, cs *candlestick.List, start, end time.Time, limit uint) error UpdateCandlesticks(ctx context.Context, cs *candlestick.List) error DeleteCandlesticks(ctx context.Context, cs *candlestick.List) error }
type MockAdapter ¶
type MockAdapter struct {
// contains filtered or unexported fields
}
MockAdapter is a mock of Adapter interface.
func NewMockAdapter ¶
func NewMockAdapter(ctrl *gomock.Controller) *MockAdapter
NewMockAdapter creates a new mock instance.
func (*MockAdapter) CreateCandlesticks ¶
func (m *MockAdapter) CreateCandlesticks(ctx context.Context, cs *candlestick.List) error
CreateCandlesticks mocks base method.
func (*MockAdapter) DeleteCandlesticks ¶
func (m *MockAdapter) DeleteCandlesticks(ctx context.Context, cs *candlestick.List) error
DeleteCandlesticks mocks base method.
func (*MockAdapter) EXPECT ¶
func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAdapter) ReadCandlesticks ¶
func (m *MockAdapter) ReadCandlesticks(ctx context.Context, cs *candlestick.List, start, end time.Time, limit uint) error
ReadCandlesticks mocks base method.
func (*MockAdapter) UpdateCandlesticks ¶
func (m *MockAdapter) UpdateCandlesticks(ctx context.Context, cs *candlestick.List) error
UpdateCandlesticks mocks base method.
type MockAdapterMockRecorder ¶
type MockAdapterMockRecorder struct {
// contains filtered or unexported fields
}
MockAdapterMockRecorder is the mock recorder for MockAdapter.
func (*MockAdapterMockRecorder) CreateCandlesticks ¶
func (mr *MockAdapterMockRecorder) CreateCandlesticks(ctx, cs interface{}) *gomock.Call
CreateCandlesticks indicates an expected call of CreateCandlesticks.
func (*MockAdapterMockRecorder) DeleteCandlesticks ¶
func (mr *MockAdapterMockRecorder) DeleteCandlesticks(ctx, cs interface{}) *gomock.Call
DeleteCandlesticks indicates an expected call of DeleteCandlesticks.
func (*MockAdapterMockRecorder) ReadCandlesticks ¶
func (mr *MockAdapterMockRecorder) ReadCandlesticks(ctx, cs, start, end, limit interface{}) *gomock.Call
ReadCandlesticks indicates an expected call of ReadCandlesticks.
func (*MockAdapterMockRecorder) UpdateCandlesticks ¶
func (mr *MockAdapterMockRecorder) UpdateCandlesticks(ctx, cs interface{}) *gomock.Call
UpdateCandlesticks indicates an expected call of UpdateCandlesticks.