config

package
v0.0.0-...-6edc87d Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 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 Config

type Config struct {
	Port             int
	Host             string
	DSN              string
	SessionSecretKey string                   `yaml:"session_secret_key"`
	OAuth            map[string]OAuthProvider `yaml:"oauth"`
}

func LoadConfig

func LoadConfig(configPath string) (*Config, error)

type OAuthProvider

type OAuthProvider struct {
	ClientID         string   `yaml:"client_id"`
	ClientSecret     string   `yaml:"client_secret"`
	AutoDiscoveryUrl string   `yaml:"auto_discovery_url"`
	Scopes           []string `yaml:"scopes"`
}

Jump to

Keyboard shortcuts

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