Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseConfig ¶
type BaseConfig struct { BatchSize int `json:"batchSize"` //单次批量写入数 BatchTimeout time2.Duration `json:"batchTimeout"` //单次批量写入超时时间 }
BaseConfig 基础文件流输出配置
func NewBaseConfig ¶
func NewBaseConfig(conf *config.JSON) (*BaseConfig, error)
NewBaseConfig 通过json配置获取基础文件流输出配置
func (*BaseConfig) GetBatchTimeout ¶
func (b *BaseConfig) GetBatchTimeout() time.Duration
GetBatchTimeout 单次批量写入超时时间
Click to show internal directories.
Click to hide internal directories.