Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupEnvOrInt ¶
LookupEnvOrInt attempts to fetch a configuration parameter via environment variable and convert to an int
func LookupEnvOrStr ¶
LookupEnvOrStr attempts to fetch configuration parameter from environmnet variable and assign result as a string
Types ¶
type Config ¶
type Config struct { HTTPBindPort int // port we listen and serve HTTPBindAddress string // IP or hostname to bind to HTTPDebugBindAddres string // Bind address for internal metrics/admin server HTTPDebugPort int // TCP port for admin/stats service. SourceAPIKey string // LAST.FM api key CacheHost string // Cache Host CachePort int // Cache port CacheSecret string // secret key for cache connectivity LogFileLocation string // logfile location MaxTopSimArtists int MaxTopSimTracks int MaxTopArtistTracks int CacheTTLDuration time.Duration // used internally after sting->duration conversion }
func (*Config) SetCacheDuration ¶
SetCacheDuration returns configuration data read from the target config file
Click to show internal directories.
Click to hide internal directories.