1234567891011121314151617 |
- package producer
- import (
- "errors"
- )
- type Config struct {
- Hosts []string `yaml:"hosts"`
- }
- func (c Config) Invalidate() error {
- if len(c.Hosts) < 1 {
- return errors.New("at least one bootstrap server / host must be provided")
- }
- return nil
- }
|