Documentation ¶
Overview ¶
Package option provides functions for unmarshaling teler-waf configuration from JSON and YAML formats into the teler.Options struct.
It includes functions to handle different input sources and formats. These functions allow convenient loading of configuration data into the Options struct for further processing.
Index ¶
- func LoadFromJSONBytes(raw []byte) (teler.Options, error)
- func LoadFromJSONFile(path string) (teler.Options, error)
- func LoadFromJSONString(raw string) (teler.Options, error)
- func LoadFromYAMLBytes(raw []byte) (teler.Options, error)
- func LoadFromYAMLFile(path string) (teler.Options, error)
- func LoadFromYAMLString(raw string) (teler.Options, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromJSONBytes ¶
LoadFromJSONBytes to unmarshal the teler-waf JSON bytes configuration into the teler.Options struct.
func LoadFromJSONFile ¶
LoadFromJSONFile to unmarshal the teler-waf JSON configuration into the teler.Options struct.
func LoadFromJSONString ¶
LoadFromJSONString to unmarshal the teler-waf JSON string configuration into the teler.Options struct.
func LoadFromYAMLBytes ¶
LoadFromYAMLFile to unmarshal the teler-waf YAML bytes configuration into the teler.Options struct.
func LoadFromYAMLFile ¶
LoadFromYAMLFile to unmarshal the teler-waf YAML configuration into the teler.Options struct.
func LoadFromYAMLString ¶
LoadFromYAMLFile to unmarshal the teler-waf YAML string configuration into the teler.Options struct.
Types ¶
This section is empty.