Documentation ¶
Overview ¶
Package go_yac is a configuration provisioning toolkit, inspired by other libraries such as viper, go-config, among others.
go_yac contains the following packages:
The composite package allows composing hierarchically config.Loader and config.Provider implementations.
The config package provides a cohesive set of interfaces to expose configuration provisioning features.
The loader package contains useful implementations for config.Loader interface, relying only on go stdlib.
The logger package provides a stdlib log compatible interface and mechanisms to easily swap implementations.
The provider package offers a default config.Repository backed implementation for config.Provider.
The reader package contains useful implementations for loader.Reader interface, relying only on go stdlib.
The yaml package provides a go-yaml based loader.Parser implementation
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
internal
|
|
samples
Package samples helps this project's tests, providing filesystem assets
|
Package samples helps this project's tests, providing filesystem assets |
pkg
|
|
composite
Package composite allows composition of config.Loader Package composite allows composition of config.Provider sources hierarchically.
|
Package composite allows composition of config.Loader Package composite allows composition of config.Provider sources hierarchically. |
config
Package config holds main interfaces and constants to interact with configuration provisioning
|
Package config holds main interfaces and constants to interact with configuration provisioning |
loader
Package loader provides reading configuration from streamable data Package loader provides reading configuration from os environment
|
Package loader provides reading configuration from streamable data Package loader provides reading configuration from os environment |
logger
Package logger provides an interfaces used to log configuration provisioning default implementations.
|
Package logger provides an interfaces used to log configuration provisioning default implementations. |
parser/yaml
Package yaml parses yaml data to be used by map configuration databases
|
Package yaml parses yaml data to be used by map configuration databases |
provider
Package provider contains default implementations from config.Provider interface
|
Package provider contains default implementations from config.Provider interface |
repository
Package repository with a map[string]interface{} backed config.Repository implementation
|
Package repository with a map[string]interface{} backed config.Repository implementation |