Documentation ¶
Index ¶
- func LoadDefs(path string) (map[string]ConfigDefinition, error)
- type ConfigDefinition
- type ConfigDefinitionOption
- type ConfigDefinitionValidator
- type ConfigDefinitionValidatorParam
- type Handler
- func (h *Handler) ValidateBase(cType string, cTypeOpts module.ConfigTypeOptions, dataType module.DataType) error
- func (h *Handler) ValidateTypeOptions(cType string, cTypeOpts module.ConfigTypeOptions) error
- func (h *Handler) ValidateValInOpt(cOpt any, value any, isSlice bool, dataType module.DataType) (err error)
- func (h *Handler) ValidateValue(cType string, cTypeOpts module.ConfigTypeOptions, value any, isSlice bool, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigDefinition ¶
type ConfigDefinition struct { DataType util.Set[module.DataType] `json:"data_type"` Options map[string]ConfigDefinitionOption `json:"options"` Validators []ConfigDefinitionValidator `json:"validators"` }
type ConfigDefinitionOption ¶
type ConfigDefinitionValidator ¶
type ConfigDefinitionValidator struct { Name string `json:"name"` Parameter map[string]ConfigDefinitionValidatorParam `json:"parameter"` }
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) ValidateBase ¶
func (*Handler) ValidateTypeOptions ¶
func (h *Handler) ValidateTypeOptions(cType string, cTypeOpts module.ConfigTypeOptions) error
func (*Handler) ValidateValInOpt ¶
Click to show internal directories.
Click to hide internal directories.