Documentation ¶
Index ¶
- Variables
- type Config
- type DB
- func (d *DB) CreateCandlesticks(ctx context.Context, cs *candlestick.List) error
- func (d *DB) DeleteCandlesticks(ctx context.Context, cs *candlestick.List) error
- func (d *DB) ReadCandlesticks(ctx context.Context, cs *candlestick.List, start, end time.Time, limit uint) error
- func (d *DB) Reset() error
- func (d *DB) UpdateCandlesticks(ctx context.Context, cs *candlestick.List) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultGormConfig = &gorm.Config{ Logger: logger.Default.LogMode(logger.Silent), } )
View Source
var (
ErrInvalidConfig = errors.New("invalid sql config")
)
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CreateCandlesticks ¶
func (*DB) DeleteCandlesticks ¶
func (*DB) ReadCandlesticks ¶
func (*DB) UpdateCandlesticks ¶
Click to show internal directories.
Click to hide internal directories.