Documentation ¶
Index ¶
- type Cos
- func (s Cos) Close() error
- func (s Cos) Delete(exchange exchanges.Exchange, date time.Time) error
- func (s Cos) Exists(exchange exchanges.Exchange, date time.Time) (bool, error)
- func (s Cos) Load(exchange exchanges.Exchange, date time.Time) (*quotes.ExchangeDailyQuote, error)
- func (s Cos) Save(exchange exchanges.Exchange, date time.Time, edq *quotes.ExchangeDailyQuote) error
- type FileSystem
- func (s FileSystem) Close() error
- func (s FileSystem) Delete(exchange exchanges.Exchange, date time.Time) error
- func (s FileSystem) Exists(exchange exchanges.Exchange, date time.Time) (bool, error)
- func (s FileSystem) Load(exchange exchanges.Exchange, date time.Time) (*quotes.ExchangeDailyQuote, error)
- func (s FileSystem) Save(exchange exchanges.Exchange, date time.Time, edq *quotes.ExchangeDailyQuote) error
- type InfluxDB
- func (s InfluxDB) Close() error
- func (s InfluxDB) Delete(exchange exchanges.Exchange, date time.Time) error
- func (s InfluxDB) Exists(exchange exchanges.Exchange, date time.Time) (bool, error)
- func (s InfluxDB) Load(exchange exchanges.Exchange, date time.Time) (*quotes.ExchangeDailyQuote, error)
- func (s InfluxDB) Save(exchange exchanges.Exchange, date time.Time, edq *quotes.ExchangeDailyQuote) error
- type KV
- type LevelDB
- func (s LevelDB) Close() error
- func (s LevelDB) Delete(exchange exchanges.Exchange, date time.Time) error
- func (s LevelDB) Exists(exchange exchanges.Exchange, date time.Time) (bool, error)
- func (s LevelDB) Load(exchange exchanges.Exchange, date time.Time) (*quotes.ExchangeDailyQuote, error)
- func (s LevelDB) Save(exchange exchanges.Exchange, date time.Time, edq *quotes.ExchangeDailyQuote) error
- type Redis
- func (s Redis) Close() error
- func (s Redis) Delete(exchange exchanges.Exchange, date time.Time) error
- func (s Redis) Exists(exchange exchanges.Exchange, date time.Time) (bool, error)
- func (s Redis) Load(exchange exchanges.Exchange, date time.Time) (*quotes.ExchangeDailyQuote, error)
- func (s Redis) Save(exchange exchanges.Exchange, date time.Time, edq *quotes.ExchangeDailyQuote) error
- type S3
- func (s S3) Close() error
- func (s S3) Delete(exchange exchanges.Exchange, date time.Time) error
- func (s S3) Exists(exchange exchanges.Exchange, date time.Time) (bool, error)
- func (s S3) Load(exchange exchanges.Exchange, date time.Time) (*quotes.ExchangeDailyQuote, error)
- func (s S3) Save(exchange exchanges.Exchange, date time.Time, edq *quotes.ExchangeDailyQuote) error
- type S3Config
- type Store
- type TDEngine
- func (s TDEngine) Close() error
- func (s TDEngine) Delete(exchange exchanges.Exchange, date time.Time) error
- func (s TDEngine) Exists(exchange exchanges.Exchange, date time.Time) (bool, error)
- func (s TDEngine) Load(exchange exchanges.Exchange, date time.Time) (*quotes.ExchangeDailyQuote, error)
- func (s TDEngine) Save(exchange exchanges.Exchange, date time.Time, edq *quotes.ExchangeDailyQuote) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cos ¶ added in v0.5.1
type Cos struct {
// contains filtered or unexported fields
}
Cos define tencent cos store
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
FileSystem define file system store
func NewFileSystem ¶
func NewFileSystem(root string) *FileSystem
NewFileSystem create file system store
func (FileSystem) Load ¶
func (s FileSystem) Load(exchange exchanges.Exchange, date time.Time) (*quotes.ExchangeDailyQuote, error)
Load load exchange daily quote
func (FileSystem) Save ¶
func (s FileSystem) Save(exchange exchanges.Exchange, date time.Time, edq *quotes.ExchangeDailyQuote) error
Save save exchange daily quote
type InfluxDB ¶ added in v0.6.3
type InfluxDB struct {
// contains filtered or unexported fields
}
InfluxDB influxdb store
func NewInfluxDB ¶ added in v0.6.3
NewInfluxDB create new influxdb store
type LevelDB ¶ added in v0.3.1
type LevelDB struct {
// contains filtered or unexported fields
}
LevelDB level db store
func NewLevelDB ¶ added in v0.3.1
NewLevelDB create level db store
type Redis ¶ added in v0.4.2
type Redis struct {
// contains filtered or unexported fields
}
Redis define redis store
type S3 ¶ added in v0.6.5
type S3 struct {
// contains filtered or unexported fields
}
S3 define tencent cos store
type S3Config ¶ added in v0.6.5
type S3Config struct { AccessKeyID string `yaml:"id"` SecretAccessKey string `yaml:"secret"` Region string `yaml:"region"` Bucket string `yaml:"bucket"` }
S3Config aws s3 store config
type Store ¶
type Store interface { // Exists exchange daily quote exists Exists(exchanges.Exchange, time.Time) (bool, error) // Save save exchange daily quote Save(exchanges.Exchange, time.Time, *quotes.ExchangeDailyQuote) error // Load load exchange daily quote Load(exchanges.Exchange, time.Time) (*quotes.ExchangeDailyQuote, error) // Delete delete exchange daily quote Delete(exchanges.Exchange, time.Time) error // Close close exchange daily quote store Close() error }
Store define exchange daily quote store
type TDEngine ¶ added in v0.7.0
type TDEngine struct {
// contains filtered or unexported fields
}
TDEngine tdengine store tables: nasdaq_raw_1m_done done flag nasdaq_company companies nasdaq_aapl_pre_raw_1m pre nasdaq_aapl_regular_raw_1m regular nasdaq_aapl_post_raw_1m post nasdaq_aapl_dividend dividend nasdaq_aapl_split split
func NewTDEngine ¶ added in v0.7.0
NewTDEngine create new tdengine store