Skip to content

Features

Reference of tinyconf capabilities grouped by area.

Looking for a recipe?

The Use cases page shows how the features work together in typical setups: a twelve-factor service, a config file with overrides, a command line tool, a Kubernetes deployment.

Configuration

Page What's inside
Manager New, WithDriver, WithLogger, Register, Parse, priority of drivers, errors, concurrency
Struct tags Tags of drivers and common tags: doc, hidden, required, separator, kvseparator
Supported types Scalars, durations, time, slices, arrays, maps, structs, pointers — the same for all drivers
Nested structs and sub configs Grouping fields into structs, optional sections with pointers, parsing a part of the config
Required fields required:"true" tag and ErrRequired

Operations

Page What's inside
Documentation generation GenDoc: a config template in the format of the driver
Value sources Sources: which driver has set the value of every field
Reloading Subscribe and Current: configs are parsed again after changes of the sources
Logging What the manager logs, bundled loggers, custom logger