config

package
v0.0.0-...-fc364c1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SERVICENAME contains a service name prefix which used in ENV variables
	SERVICENAME = "GITHUBSTATBOT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port               string `envconfig:"PORT" default:"8080"`
	DbUrl              string `envconfig:"DATABASE_URL" default:"postgres://postgres:password@localhost:5432/githubstatbot?sslmode=disable"`
	GitHubClientId     string `required:"true"`
	GitHubClientSecret string `required:"true"`
	TelegramToken      string `required:"true"`
	StaticFilesDir     string `default:"./static"`
	AuthBasicUsername  string `default:"user"`
	AuthBasicPassword  string `default:"password"`
}

func Load

func Load() (*Config, error)

Jump to

Keyboard shortcuts

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