config

package
v0.0.0-...-941b1c8 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 5 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 {
	Logger l.Wrapper `yaml:"-"`

	Listen        string                            `yaml:"Listen"`
	WebListen     string                            `yaml:"WebListen"`
	GRPCTLSConfig *servicetoolset.GRPCTlsFileConfig `yaml:"GRPCTLSConfig"`

	RedisDSN     string `yaml:"RedisDSN"`
	UserMongoDSN string `yaml:"UserMongoDSN"`

	DefaultDomain string `yaml:"DefaultDomain"`

	DebugCfg DebugCfg `yaml:"DebugCfg"`

	OAuthListen string `yaml:"OAuthListen"`

	OAuthClientCredentials map[string]OAuthClientCredential `yaml:"OAuthClientCredentials"`
}

func GetConfig

func GetConfig() *Config

type DebugCfg

type DebugCfg struct {
	AuthenticatorGoogle2FA *DebugCfgAuthenticatorGoogle2FA `yaml:"AuthenticatorGoogle2FA"`
}

type DebugCfgAuthenticatorGoogle2FA

type DebugCfgAuthenticatorGoogle2FA struct {
	FakeQrCode    string `yaml:"FakeQrCode"`
	FakeSecretKey string `yaml:"FakeSecretKey"`
}

type OAuthClientCredential

type OAuthClientCredential struct {
	Secret string `yaml:"Secret"`
	Domain string `yaml:"Domain"`
}

Jump to

Keyboard shortcuts

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