conf

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Issuer      string    // FIXME what the hell is an issuer?
	OAuth       OAuthConf `yaml:"OAuth"`
	Services    string    `yaml:"services"` // Service folder
	JWKProvider string    `yaml:"jwk_provider"`
	Listen      string    `yaml:"listen"` // http listen address
	DataPath    string    `yaml:"data_path"`
	Hosts       []string  `yaml:"hosts"`
}

func Open

func Open(path string) (*Conf, error)

func (*Conf) Defaults

func (c *Conf) Defaults()

type OAuthConf

type OAuthConf struct {
	ProviderURL string `yaml:"provider_url"`
	AppID       string `yaml:"app_id"`
	AppSecret   string `yaml:"app_secret"`
	AppURL      string `yaml:"app_url"`
}

OAuthConf wraps all the config required for OAuth2 mechanism

Jump to

Keyboard shortcuts

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