Documentation ¶
Index ¶
- Variables
- type Config
- type DB
- func (sqldb *DB) ClearAllSymbolListenersCount(ctx context.Context) error
- func (sqldb *DB) ClearSymbolListenerSubscribers(ctx context.Context, exchange, pairSymbol string) error
- func (sqldb *DB) DecrementSymbolListenerSubscribers(ctx context.Context, exchange, pairSymbol string) (int64, error)
- func (sqldb *DB) GetSymbolListenerSubscribers(ctx context.Context, exchange, pairSymbol string) (int64, error)
- func (sqldb *DB) IncrementSymbolListenerSubscribers(ctx context.Context, exchange, pairSymbol string) (int64, error)
- func (d *DB) Reset() 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) ClearAllSymbolListenersCount ¶
func (*DB) ClearSymbolListenerSubscribers ¶
func (*DB) DecrementSymbolListenerSubscribers ¶
func (*DB) GetSymbolListenerSubscribers ¶
func (*DB) IncrementSymbolListenerSubscribers ¶
Click to show internal directories.
Click to hide internal directories.