Documentation ¶
Index ¶
- type BacktestStorage
- func (_m *BacktestStorage) Create(_a0 context.Context, _a1 string, _a2 *storage.Backtest) error
- func (_m *BacktestStorage) Delete(_a0 context.Context, _a1 string) error
- func (_m *BacktestStorage) Get(_a0 context.Context, _a1 string) (*storage.Backtest, error)
- func (_m *BacktestStorage) List(_a0 context.Context, _a1 string) ([]*storage.Backtest, error)
- func (_m *BacktestStorage) ListByStage(_a0 context.Context, _a1 ...string) ([]*storage.Backtest, error)
- func (_m *BacktestStorage) Update(_a0 context.Context, _a1 *storage.Backtest) error
- type PeriodStorage
- type StrategyStorage
- func (_m *StrategyStorage) Create(_a0 context.Context, _a1 *storage.Strategy) error
- func (_m *StrategyStorage) Delete(_a0 context.Context, _a1 string) error
- func (_m *StrategyStorage) Get(_a0 context.Context, _a1 string) (*storage.Strategy, error)
- func (_m *StrategyStorage) List(_a0 context.Context) ([]*storage.Strategy, error)
- func (_m *StrategyStorage) Update(_a0 context.Context, _a1 *storage.Strategy) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BacktestStorage ¶
BacktestStorage is an autogenerated mock type for the BacktestStorage type
func NewBacktestStorage ¶
func NewBacktestStorage(t mockConstructorTestingTNewBacktestStorage) *BacktestStorage
NewBacktestStorage creates a new instance of BacktestStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BacktestStorage) Delete ¶
func (_m *BacktestStorage) Delete(_a0 context.Context, _a1 string) error
Delete provides a mock function with given fields: _a0, _a1
func (*BacktestStorage) ListByStage ¶
func (_m *BacktestStorage) ListByStage(_a0 context.Context, _a1 ...string) ([]*storage.Backtest, error)
ListByStage provides a mock function with given fields: _a0, _a1
type PeriodStorage ¶
PeriodStorage is an autogenerated mock type for the PeriodStorage type
func NewPeriodStorage ¶
func NewPeriodStorage(t mockConstructorTestingTNewPeriodStorage) *PeriodStorage
NewPeriodStorage creates a new instance of PeriodStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type StrategyStorage ¶
StrategyStorage is an autogenerated mock type for the StrategyStorage type
func NewStrategyStorage ¶
func NewStrategyStorage(t mockConstructorTestingTNewStrategyStorage) *StrategyStorage
NewStrategyStorage creates a new instance of StrategyStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StrategyStorage) Delete ¶
func (_m *StrategyStorage) Delete(_a0 context.Context, _a1 string) error
Delete provides a mock function with given fields: _a0, _a1