Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringJSONArrayOrSlicesToConfig ¶
func StringJSONArrayOrSlicesToConfig() func(f reflect.Kind, t reflect.Kind, data interface{}) (interface{}, error)
StringJSONArrayOrSlicesToConfig will convert Json Encoded Strings to Maps or Slices, Used Primarily to support Slices and Maps in Environment variables
Types ¶
type AutoIndexPattern ¶
type AutoIndexPattern struct { Enabled bool GeneralPatterns []GeneralPattern Schedule string `validate:"required"` Concurrency int `validate:"gt=0"` }
AutoIndexPattern for Config Unmarshalling
type Config ¶
type Config struct { Kibana Kibana `validate:"required"` Logging Logging `validate:"required"` AutoIndexPattern AutoIndexPattern RefreshIndexPattern RefreshIndexPattern }
Config for Config Unmarshalling
type GeneralPattern ¶
GeneralPattern for Config Unmarshalling
type Kibana ¶
type Kibana struct { Host string `validate:"required,uri"` User string `validate:"required_with=password"` Password string `validate:"required_with=User"` }
Kibana for Config Unmarshalling
Click to show internal directories.
Click to hide internal directories.