Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnknownQuoteFormat 未知的Quote格式 ErrUnknownQuoteFormat = errors.New("未知的Quote格式") )
Functions ¶
This section is empty.
Types ¶
type AliyunOSS ¶
type AliyunOSS struct {
// contains filtered or unexported fields
}
AliyunOSS 阿里云对象存储服务
type AliyunOSSConfig ¶
type AliyunOSSConfig struct { EndPoint string `yaml:"endpoint"` // Key AccessKeyID string `yaml:"id"` // ID AccessKeySecret string `yaml:"secret"` // Key Bucket string `yaml:"bucket"` // Bucket KeyRoot string `yaml:"root"` // Root }
AliyunOSSConfig 阿里云对象存储服务配置
type AmazonS3 ¶
type AmazonS3 struct {
// contains filtered or unexported fields
}
AmazonS3 亚马逊S3存储服务
type AmazonS3Config ¶
type AmazonS3Config struct { AccessKeyID string `yaml:"id"` // ID SecretAccessKey string `yaml:"secret"` // Key Region string `yaml:"region"` // 区域 Bucket string `yaml:"bucket"` // 存储桶 KeyRoot string `yaml:"keyroot"` // S3路径根目录 }
AmazonS3Config 亚马逊S3存储配置
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
FileSystem 文件系统存储服务
func NewFileSystem ¶
func NewFileSystem(config FileSystemConfig) *FileSystem
NewFileSystem 新建文件系统存储服务
func (FileSystem) Load ¶
func (s FileSystem) Load(_market market.Market, date time.Time) (market.DailyQuote, error)
Load 读取
type FileSystemConfig ¶
type FileSystemConfig struct {
StoreRoot string // 存储根目录
}
FileSystemConfig 文件系统配置
Click to show internal directories.
Click to hide internal directories.