Documentation ¶
Index ¶
Constants ¶
View Source
const SourceGithub int = 1
SourceGithub is an enum for the Github source.
View Source
const WorkerSize int = 4
WorkerSize defines the amount of goroutines to spawn when running background tasks.
Variables ¶
View Source
var BasePath string
BasePath is the root directory of the project.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Environment string `split_words:"true" default:"dev"` BaseURL string `split_words:"true" required:"true"` Port int `split_words:"true" required:"true"` DatabaseName string `split_words:"true" required:"true"` GithubAPIKey string `split_words:"true" required:"true"` GithubMaxFetch int `split_words:"true" default:"50"` GithubCommitLength int `split_words:"true" default:"45"` LogLevel string `split_words:"true" default:"INFO"` SentryDSN string `split_words:"true"` GoatcounterUser string `split_words:"true"` }
Config contains all settings for the application.
var App Config
App stores the configuration for the application.
Click to show internal directories.
Click to hide internal directories.