config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	SecretKey string
	ClientURL string
}

App represents configuration properties specific to the application.

type Config

type Config struct {
	App        App
	Database   Database
	HTTPServer HTTPServer
	OAuth2     OAuth2
}

Config represents all the application configurations grouped as per their category.

type Database

type Database struct {
	Host       string
	Port       string
	DBName     string
	Username   string
	Password   string
	DriverName string
	SSLMode    string
	URL        string
	Debug      bool
}

Database represents configuration properties required to connect to a database. The url config optional. But if url is set then the values of host, port, dbname, username, password, driver-name will be overridden with their respective values from url string.

type Github

type Github struct {
	ClientID     string
	ClientSecret string
	RedirectURL  string
}

Github represents configuration properties required consume github oauth2 api.

type HTTPServer

type HTTPServer struct {
	Host  string
	Port  string
	Debug bool
}

HTTPServer represents configuration properties required for starting http server.

type OAuth2

type OAuth2 struct {
	Github Github
}

OAuth2 represents configuration grouped by the oauth2 provider.

Jump to

Keyboard shortcuts

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