Documentation
¶
Index ¶
- type DataCache
- type DataKLine
- func (k *DataKLine) Clone(date, code string) DataSet
- func (k *DataKLine) Filename(date, code string) string
- func (k *DataKLine) Increase(snapshot quotes.Snapshot)
- func (k *DataKLine) Key() string
- func (k *DataKLine) Kind() DataKind
- func (k *DataKLine) Name() string
- func (k *DataKLine) Repair(cacheDate, featureDate string)
- func (k *DataKLine) Update(cacheDate, featureDate string)
- type DataKind
- type DataSet
- type DataSetCache
- type DataXdxr
- func (x *DataXdxr) Clone(date string, code string) DataSet
- func (x *DataXdxr) Filename(date, code string) string
- func (x *DataXdxr) Increase(snapshot quotes.Snapshot)
- func (x *DataXdxr) Key() string
- func (x *DataXdxr) Kind() DataKind
- func (x *DataXdxr) Name() string
- func (x *DataXdxr) Repair(cacheDate, featureDate string)
- func (x *DataXdxr) Update(cacheDate, featureDate string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataCache ¶
type DataCache struct {
Date string // 日期
Code string // 证券代码
// contains filtered or unexported fields
}
DataCache 基础的数据缓存
type DataSet ¶
type DataSet interface {
Kind() DataKind // 类型
Name() string // 特征名称
Key() string // 缓存关键字
Filename(date, code string) string // 缓存文件名
Update(cacheDate, featureDate string) // 更新数据
Repair(cacheDate, featureDate string) // 回补数据
Increase(snapshot quotes.Snapshot) // 增量计算, 用快照增量计算特征
Clone(date string, code string) DataSet // 克隆一个DataSet
}
DataSet 数据层, 数据集接口 smart
type DataSetCache ¶
Click to show internal directories.
Click to hide internal directories.