Documentation
¶
Index ¶
- Constants
- Variables
- type Adapter
- func (a *Adapter) CreateBacktest(ctx context.Context, bt backtest.Backtest) error
- func (a *Adapter) CreateIndexes() error
- func (a *Adapter) DeleteBacktest(ctx context.Context, bt backtest.Backtest) error
- func (a *Adapter) ListBacktests(ctx context.Context) ([]backtest.Backtest, error)
- func (a *Adapter) LockedBacktest(ctx context.Context, id uuid.UUID, fn port.LockedBacktestCallback) (err error)
- func (a *Adapter) ReadBacktest(ctx context.Context, id uuid.UUID) (backtest.Backtest, error)
- func (a *Adapter) Reset(ctx context.Context) error
- func (a *Adapter) UpdateBacktest(ctx context.Context, bt backtest.Backtest) error
Constants ¶
View Source
const (
// CollectionName is the name of the collection in the database
CollectionName = "backtests"
)
Variables ¶
View Source
var ( // ErrNilID is returned when the ID is nil ErrNilID = fmt.Errorf("ID is nil") )
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func (*Adapter) CreateBacktest ¶
func (*Adapter) CreateIndexes ¶
func (*Adapter) DeleteBacktest ¶
func (*Adapter) ListBacktests ¶
func (*Adapter) LockedBacktest ¶
func (*Adapter) ReadBacktest ¶
Click to show internal directories.
Click to hide internal directories.