option

package
v0.0.0-...-ca18e3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromJSONBytes

func LoadFromJSONBytes(raw []byte) (teler.Options, error)

LoadFromJSONBytes to unmarshal the teler-waf JSON bytes configuration into the teler.Options struct.

func LoadFromJSONFile

func LoadFromJSONFile(path string) (teler.Options, error)

LoadFromJSONFile to unmarshal the teler-waf JSON configuration into the teler.Options struct.

func LoadFromJSONString

func LoadFromJSONString(raw string) (teler.Options, error)

LoadFromJSONString to unmarshal the teler-waf JSON string configuration into the teler.Options struct.

func LoadFromYAMLBytes

func LoadFromYAMLBytes(raw []byte) (teler.Options, error)

LoadFromYAMLFile to unmarshal the teler-waf YAML bytes configuration into the teler.Options struct.

func LoadFromYAMLFile

func LoadFromYAMLFile(path string) (teler.Options, error)

LoadFromYAMLFile to unmarshal the teler-waf YAML configuration into the teler.Options struct.

func LoadFromYAMLString

func LoadFromYAMLString(raw string) (teler.Options, error)

LoadFromYAMLFile to unmarshal the teler-waf YAML string configuration into the teler.Options struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL