Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfluxStorage ¶
type InfluxStorage struct {
// contains filtered or unexported fields
}
InfluxStorage represent a client to store trade data to influx DB
func NewInfluxStorage ¶
func NewInfluxStorage(sugar *zap.SugaredLogger, dbName string, influxClient client.Client) (*InfluxStorage, error)
NewInfluxStorage init an instance of InfluxStorage
func (*InfluxStorage) IsExceedDailyLimit ¶
func (inf *InfluxStorage) IsExceedDailyLimit(address string, dailyLimit float64) (bool, error)
IsExceedDailyLimit return if add address trade over daily limit or not
type UserDB ¶
type UserDB struct {
// contains filtered or unexported fields
}
UserDB is storage of user data
func (*UserDB) CreateOrUpdate ¶
CreateOrUpdate store user info to persist in database
func (*UserDB) DeleteAllTables ¶
DeleteAllTables delete all table from schema using for test only
Click to show internal directories.
Click to hide internal directories.