Documentation ¶
Overview ¶
Package config provides config file loading and overridding using env vars.
Index ¶
Constants ¶
View Source
const MaxRelationships = 10
MaxRelationships is the maximum number of types of relationships tracked. Out-of-the-box, Tomolink supports tracking of up to 10 different kinds of relationships. This can be changed and Tomolink recompiled, but note that raising this value indiscriminantly may have an impact on startup times!
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { DB interface{} Cfg *goconfig.Config Overrides map[string]string Relationships map[string]string }
AppConfig holds the loaded static config, env overrides, and any runtime configuration for the app (shared database connections, etc)
func (*AppConfig) Connect ¶
Connect to the selected database and make a single client for all requests going through this API instance to share.
Click to show internal directories.
Click to hide internal directories.