Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Limit LimitConfig `yaml:"limit"` API []search.API `yaml:"api"` Elasticsearch elasticsearch.Config `yaml:"elasticsearch"` RecordEmptyAnswer bool `yaml:"recordEmptyAnswer"` Mysql string `yaml:"mysql"` OSS OSSConfig `yaml:"oss"` Plat []PlatConfig `yaml:"plat"` }
Config 所有的配置文件
type LimitConfig ¶
type LimitConfig struct { Enable bool `yaml:"enable"` Duration uint `yaml:"duration"` Requests uint64 `yaml:"requests"` }
LimitConfig 限流配置
type OSSConfig ¶
type OSSConfig struct { EndPoint string `yaml:"endpoint"` AccessKeyID string `yaml:"accessKeyID"` AccessKeySecret string `yaml:"accessKeySecret"` BucketName string `yaml:"bucketName"` }
OSSConfig 阿里云oss配置
type PlatConfig ¶
PlatConfig 自定义的平台类型
Click to show internal directories.
Click to hide internal directories.