bilibili-backup/app/service/ops/log-agent/pkg/httpstream/conf.go
2019-04-22 02:59:20 +00:00

21 lines
263 B
Go

package httpstream
import (
"errors"
)
type Config struct {
Addr string `toml:"addr"`
}
func (c *Config) ConfigValidate() (error) {
if c == nil {
return errors.New("config of Sock Input is nil")
}
if c.Addr == "" {
c.Addr = ":18123"
}
return nil
}