Documentation
¶
Index ¶
- Constants
- Variables
- type Adapter
- func (a *Adapter) CreateExchanges(ctx context.Context, exchanges ...exchange.Exchange) error
- func (a *Adapter) CreateIndexes() error
- func (a *Adapter) DeleteExchanges(ctx context.Context, names ...string) error
- func (a *Adapter) ReadExchanges(ctx context.Context, names ...string) ([]exchange.Exchange, error)
- func (a *Adapter) Reset(ctx context.Context) error
- func (a *Adapter) UpdateExchanges(ctx context.Context, exchanges ...exchange.Exchange) error
Constants ¶
View Source
const (
// CollectionName is the name of the collection in the database
CollectionName = "exchanges"
)
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) CreateExchanges ¶
func (*Adapter) CreateIndexes ¶
func (*Adapter) DeleteExchanges ¶
func (*Adapter) ReadExchanges ¶
Click to show internal directories.
Click to hide internal directories.