Documentation
¶
Index ¶
- Variables
- type AssetService
- type CandlestickService
- func (css *CandlestickService) Create(cs *candlestick.List) error
- func (css *CandlestickService) Delete(cs *candlestick.List) error
- func (css *CandlestickService) Read(cs *candlestick.List, start, end timestamp.Timestamp, limit uint) error
- func (css *CandlestickService) Update(cs *candlestick.List) error
- type Config
- type Database
- type ExchangeService
- func (ps *ExchangeService) Create(exchanges ...exchange.Exchange) error
- func (ps *ExchangeService) Delete(exchanges ...exchange.Exchange) error
- func (ps *ExchangeService) GetAndSetLockedExpiration(fn func(time.Time) (*time.Time, error)) error
- func (ps *ExchangeService) Read(names ...string) ([]exchange.Exchange, error)
- func (ps *ExchangeService) SetPairs(exchangeName string, pairs []pair.Pair) error
- func (ps *ExchangeService) Update(exchanges ...exchange.Exchange) error
- type Migrator
- type PairService
- func (ps *PairService) Create(pairs ...pair.Pair) error
- func (ps *PairService) Delete(pairs ...pair.Pair) error
- func (ps *PairService) Read(pairs ...pair.Pair) ([]pair.Pair, error)
- func (ps *PairService) ReadPerExchange(exchangeName string) ([]pair.Pair, error)
- func (ps *PairService) Update(pairs ...pair.Pair) error
- type PeriodService
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoUserInConfig = errors.New("no-cockroach-user-in-config") ErrNoHostInConfig = errors.New("no-cockroach-host-in-config") ErrNoPortInConfig = errors.New("no-cockroach-port-in-config") )
View Source
var ( DefaultGormConfig = &gorm.Config{ Logger: logger.Default.LogMode(logger.Silent), } )
View Source
var (
ErrCandlestickNotFound = errors.New("candlestick-not-found")
)
Functions ¶
This section is empty.
Types ¶
type AssetService ¶
type AssetService struct {
// contains filtered or unexported fields
}
type CandlestickService ¶
type CandlestickService struct {
// contains filtered or unexported fields
}
func (*CandlestickService) Create ¶
func (css *CandlestickService) Create(cs *candlestick.List) error
func (*CandlestickService) Delete ¶
func (css *CandlestickService) Delete(cs *candlestick.List) error
func (*CandlestickService) Read ¶
func (css *CandlestickService) Read(cs *candlestick.List, start, end timestamp.Timestamp, limit uint) error
func (*CandlestickService) Update ¶
func (css *CandlestickService) Update(cs *candlestick.List) error
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) Assets ¶
func (s *Database) Assets() db.AssetService
func (*Database) Candlesticks ¶
func (s *Database) Candlesticks() db.CandlestickService
func (*Database) Exchanges ¶
func (s *Database) Exchanges() db.ExchangeService
func (*Database) Pairs ¶
func (s *Database) Pairs() db.PairService
func (*Database) Periods ¶
func (s *Database) Periods() db.PeriodService
type ExchangeService ¶
type ExchangeService struct {
// contains filtered or unexported fields
}
func (*ExchangeService) Create ¶
func (ps *ExchangeService) Create(exchanges ...exchange.Exchange) error
func (*ExchangeService) Delete ¶
func (ps *ExchangeService) Delete(exchanges ...exchange.Exchange) error
func (*ExchangeService) GetAndSetLockedExpiration ¶
func (*ExchangeService) Read ¶
func (ps *ExchangeService) Read(names ...string) ([]exchange.Exchange, error)
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func NewMigrator ¶
type PairService ¶
type PairService struct {
// contains filtered or unexported fields
}
func (*PairService) ReadPerExchange ¶
func (ps *PairService) ReadPerExchange(exchangeName string) ([]pair.Pair, error)
type PeriodService ¶
type PeriodService struct {
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.