config

package
v1.10.13 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfig

func ParseConfig(filename string) (map[string]interface{}, error)

func RemoveSensitiveInfo

func RemoveSensitiveInfo(config map[string]interface{}) string

remove sensitive info before output

func WatchConfig

func WatchConfig(filename string, reloadFunc func()) error

Watcher watches the config file and callback f

Types

type Config

type Config map[string]interface{}

type Parser

type Parser interface {
	// contains filtered or unexported methods
}

type YamlParser

type YamlParser struct{}

Jump to

Keyboard shortcuts

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