Documentation ¶
Index ¶
- Constants
- Variables
- type Adapter
- func (a *Adapter) ClearAllSymbolListenersCount(ctx context.Context) error
- func (a *Adapter) ClearSymbolListenerSubscribers(ctx context.Context, exchange, pair string) error
- func (a *Adapter) CreateIndexes() error
- func (a *Adapter) DecrementSymbolListenerSubscribers(ctx context.Context, exchange, pair string) (int64, error)
- func (a *Adapter) GetSymbolListenerSubscribers(ctx context.Context, exchange, pair string) (int64, error)
- func (a *Adapter) IncrementSymbolListenerSubscribers(ctx context.Context, exchange, pair string) (int64, error)
- func (a *Adapter) Reset(ctx context.Context) error
Constants ¶
View Source
const (
// CollectionName is the name of the collection in the database
CollectionName = "symbol_listeners"
)
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) ClearAllSymbolListenersCount ¶
func (*Adapter) ClearSymbolListenerSubscribers ¶
func (*Adapter) CreateIndexes ¶
func (*Adapter) DecrementSymbolListenerSubscribers ¶
func (*Adapter) GetSymbolListenerSubscribers ¶
func (*Adapter) IncrementSymbolListenerSubscribers ¶
Click to show internal directories.
Click to hide internal directories.