redis

package
v0.0.0-...-74d5043 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BacktestService

type BacktestService struct {
	// contains filtered or unexported fields
}

func (*BacktestService) Create

func (bts *BacktestService) Create(ctx context.Context, bt *backtest.Backtest) error

func (*BacktestService) Delete

func (bts *BacktestService) Delete(ctx context.Context, bt backtest.Backtest) error

func (*BacktestService) Locked

func (bts *BacktestService) Locked(id uint, fn vdb.LockedBacktestCallback) error

func (*BacktestService) Read

func (bts *BacktestService) Read(ctx context.Context, id uint) (backtest.Backtest, error)

func (*BacktestService) Update

func (bts *BacktestService) Update(ctx context.Context, bt backtest.Backtest) error

type Config

type Config struct {
	Address  string
	Password string
}

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New(c Config) (*DB, error)

func (*DB) Backtests

func (db *DB) Backtests() vdb.BacktestService

Jump to

Keyboard shortcuts

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