config

package module
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// WithSource with config source.
	WithSource = config.WithSource

	// WithDecoder with config decoder.
	// DefaultDecoder behavior:
	// If KeyValue.Format is non-empty, then KeyValue.Value will be deserialized into map[string]interface{}
	// and stored in the config cache(map[string]interface{})
	// if KeyValue.Format is empty,{KeyValue.Key : KeyValue.Value} will be stored in config cache(map[string]interface{})
	WithDecoder = config.WithDecoder

	// WithResolveActualTypes with config resolver.
	// bool input will enable conversion of config to data types
	WithResolveActualTypes = config.WithResolveActualTypes

	// WithResolver with config resolver.
	WithResolver = config.WithResolver

	// WithMergeFunc with config merge func.
	WithMergeFunc = config.WithMergeFunc
)

Functions

func SourceDecoder

func SourceDecoder(src *config.KeyValue, target map[string]interface{}) error

Types

type Config

type Config = config.Config

Config is config.

func New

func New(opts ...Option) Config

type Decoder

type Decoder = config.Decoder

Decoder is config decoder.

type KeyValue

type KeyValue = config.KeyValue

KeyValue is config key atomicValue.

type Merge

type Merge = config.Merge

Merge is config merge func.

type Option

type Option = config.Option

Option is config option.

type Reader

type Reader = config.Reader

Reader is config reader.

type Resolver

type Resolver = config.Resolver

Resolver resolve placeholder in config.

type Source

type Source = config.Source

Source is config source.

type Value

type Value = config.Value

Value is config atomicValue.

type Watcher

type Watcher = config.Watcher

Watcher is config watcher.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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