config

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 17 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 interface {
	comfig.Logger
	comfig.Listenerer
	pgdb.Databaser
	notificator.Notificatorer
	auth.Auther

	OrgsConfig() OrgsConfig
	IssuerConfig() IssuerConfig
	S3() *s3.Storage
	// contains filtered or unexported methods
}

func New

func New(getter kv.Getter) Config

type IssuerConfig

type IssuerConfig struct {
	BaseUrl      string `fig:"base_url,required"`
	AuthUsername string `fig:"auth_username,required"`
	AuthPassword string `fig:"auth_password,required"`
}

type OrgsConfig

type OrgsConfig struct {
	VerifyDomain  bool          `fig:"verify_domain,required"`
	OTPExpiration time.Duration `fig:"otp_expiration,required"`
}

Jump to

Keyboard shortcuts

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