config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	AuthentificationBackend string
	OAuth                   *OAuthConfig
}

AuthConfig holds configuration related to the authentification backend

type Config

type Config struct {
	DB                    *DBConfig
	HTTP                  *HTTPServerConfig
	Auth                  *AuthConfig
	ServerURL             *url.URL
	DataDirectory         string
	TemplatesDirectory    string
	StaticFilesDirectory  string
	TemplatesCacheEnabled bool
	LogLevel              log.Level
}

Config holds configuration that is needed by Server to initialize all of its dependencies.

type DBConfig

type DBConfig struct {
	Driver           string
	ConnectionString string
}

DBConfig holds configuration related to the database

type HTTPServerConfig

type HTTPServerConfig struct {
	Address string
}

HTTPServerConfig holds configuration related to the HTTP server

type OAuthConfig

type OAuthConfig struct {
	Provider     string
	BaseURL      string
	ClientID     string
	ClientSecret string
}

OAuthConfig holds configuration related to the OAuth provider

Jump to

Keyboard shortcuts

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