db

package
v0.0.0-...-e7652ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package db is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL