cfg_provider

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigProvider

type ConfigProvider interface {
	GetValue(key string) interface{}
	PackConf(cfgId string, obj interface{}) error
	PackConfToMap(cfgId string) map[string]interface{}
	GetIntSlice(key string) []int
}

type YamlConfigProvider

type YamlConfigProvider struct {
	// contains filtered or unexported fields
}

func NewYamlConfigProvider

func NewYamlConfigProvider(globalEnv *env.GlobalEnv) (*YamlConfigProvider, error)

func (YamlConfigProvider) GetIntSlice

func (y YamlConfigProvider) GetIntSlice(key string) []int

func (YamlConfigProvider) GetValue

func (y YamlConfigProvider) GetValue(key string) interface{}

func (YamlConfigProvider) PackConf

func (y YamlConfigProvider) PackConf(cfgId string, obj interface{}) error

func (YamlConfigProvider) PackConfToMap

func (y YamlConfigProvider) PackConfToMap(cfgId string) map[string]interface{}

Jump to

Keyboard shortcuts

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