keys

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Yaml = SourceType("yaml")
	Env  = SourceType("env")
)

Variables

This section is empty.

Functions

func Init

func Init(r io.Reader) (confKeys map[SourceType]*DataType, err error)

Types

type ConfigType

type ConfigType struct {
	Type    string     `yaml:"type"`
	Default string     `yaml:"default"`
	Source  SourceType `yaml:"source"`
}

type DataType

type DataType struct {
	Configs map[string]ConfigType `yaml:"config"`
}

type SourceType

type SourceType string

Jump to

Keyboard shortcuts

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