Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Engine string `mapstructure:"engine"` // mysql | sqlite DBUsername string `mapstructure:"db_username"` DBPassword string `mapstructure:"db_password"` DBHost string `mapstructure:"db_host"` DBPort int `mapstructure:"db_port"` DBName string `mapstructure:"db_name"` // CacheTTL (seconds) determines how long the list of projects will be stored in a cache // before a new database query is executed. The default, 0, corresponds to 60 seconds. CacheTTL int `mapstructure:"cache_ttl"` }
Config is the configuration to use for the mysql driver implementing the projects.Catalogue interface.
Click to show internal directories.
Click to hide internal directories.