Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Config ¶
type Config struct { Web struct { Addr string `yaml:"addr"` } `yaml:"web"` Kafka struct { Enable bool `yaml:"enable"` Brokers []string `yaml:"brokers"` Consumer struct { Group struct { Session struct { Timeout time.Duration `yaml:"timeout"` } `yaml:"session` Heartbeat struct { Interval time.Duration `yaml:"interval"` } `yaml:"heartbeat"` } `yaml:"group"` Offsets struct { Initial int64 `yaml:"initial"` } `yaml:"offsets"` } `yaml:"consumer"` } `yaml:"kafka"` Plugin struct { Path string `yaml:"path"` WatchPath bool `yaml:"watch_path"` Log struct { Enable bool `yaml:"enable"` Path string `yaml:"path"` Level string `yaml:"level"` MaxSize int64 `yaml:"maxsize"` MaxRolls uint `yaml:"maxrolls"` } `yaml:"log"` } `yaml:"plugin"` Log struct { Level string `yaml:"level"` File string `yaml:"file"` MaxSize int64 `yaml:"maxsize"` MaxRolls uint `yaml:"maxrolls"` } `yaml:"log"` Env []struct { Name string `yaml:"name"` Value string `yaml:"value"` } `yaml:"env"` }
var ( Conf *Config RotateLog *rotatelogs.RotateLogs )
type Signal ¶
type Signal struct {
// contains filtered or unexported fields
}
func NewSignal ¶
func NewSignal(options ...SignalOption) *Signal
type SignalOption ¶
type SignalOption func(*Signal)
func OptionSignalCancel ¶
func OptionSignalCancel(cancel context.CancelFunc) SignalOption
Click to show internal directories.
Click to hide internal directories.