config

package
v0.0.0-...-e3a8e75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL