config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Name               string               `yaml:"name"`
	DomainName         string               `yaml:"domain_name"` // this is the domain under which all cookies will be stored
	UseSecureCookies   bool                 `yaml:"use_secure_cookies"`
	BaseAuthLevel      authlevels.AuthLevel `yaml:"base_auth_level"`
	AuthTokenLifetime  int64                `yaml:"auth_token_lifetime"`
	AppURL             string               `yaml:"app_url"`
	Email              EmailConfig          `yaml:"email"`
	DataPolicyURL      string               `yaml:"data_policy_url"`
	SoftMaxTeamMembers uint                 `yaml:"soft_max_team_members"`
}

AppConfig is a struct to store non-private configuration for the project

func NewAppConfig

func NewAppConfig(env *environment.Env) (*AppConfig, error)

NewAppConfig loads the project config from the config files based on the environment

type EmailConfig

type EmailConfig struct {
	HelpEmailAddr             string `yaml:"help_email_addr"`
	NoreplyEmailAddr          string `yaml:"noreply_email_addr"`
	NoreplyEmailName          string `yaml:"noreply_email_name"`
	EmailVerficationEmailSubj string `yaml:"email_verification_email_subj"`
	PasswordResetEmailSubj    string `yaml:"password_reset_email_subj"`
}

EmailConfig stores the configuration to be used by the email service

Jump to

Keyboard shortcuts

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