Documentation ¶
Index ¶
- Constants
- Variables
- type Adapter
- func (a *Adapter) CreateCandlesticks(ctx context.Context, cs *candlestick.List) error
- func (a *Adapter) CreateIndexes() error
- func (a *Adapter) DeleteCandlesticks(ctx context.Context, cs *candlestick.List) error
- func (a *Adapter) ReadCandlesticks(ctx context.Context, cs *candlestick.List, start, end time.Time, limit uint) error
- func (a *Adapter) Reset(ctx context.Context) error
- func (a *Adapter) UpdateCandlesticks(ctx context.Context, cs *candlestick.List) error
Constants ¶
View Source
const (
// CollectionName is the name of the collection in the database
CollectionName = "candlesticks"
)
Variables ¶
View Source
var ( // ErrNilID is returned when the ID is nil ErrNilID = fmt.Errorf("ID is nil") // ErrNoDocument is returned when no document is found ErrNoDocument = fmt.Errorf("no document found") )
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func (*Adapter) CreateCandlesticks ¶
func (*Adapter) CreateIndexes ¶
func (*Adapter) DeleteCandlesticks ¶
func (*Adapter) ReadCandlesticks ¶
func (*Adapter) UpdateCandlesticks ¶
Click to show internal directories.
Click to hide internal directories.