appconfig

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 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 {
	ListenerPort                     string                  `mapstructure:"LISTENER_PORT"`
	ListenerHost                     string                  `mapstructure:"LISTENER_HOST"`
	LoggerOutputFile                 string                  `mapstructure:"LOGGER_OUTPUT_FILE"`
	PeerCommunication                PeerCommunicationConfig `mapstructure:"PEER_COMMUNICATION"`
	TikiDBConfig                     DBConfig                `mapstructure:"DB_CONFIG"`
	TikiSTSConfig                    STSConfig               `mapstructure:"STS_CONFIG"`
	TikiOpenSearchConfig             OpenSearchConfig        `mapstructure:"OPEN_SEARCH_CONFIG"`
	TikiAuthenticationProviderConfig AuthenticationProvider  `mapstructure:"AUTHENTICATION_PROVIDER"`
	LogLevel                         string                  `mapstructure:"LOG_LEVEL"`
	Deployment                       string                  `mapstructure:"TIKI_DEPLOYMENT"`
	DeveloperEmail                   string                  `mapstructure:"DEVELOPER_EMAIL"`
	IMONetPort                       int                     `mapstructure:"IMO_NET_PORT"`
	IMOInitialWaitPeriod             int                     `mapstructure:"IMO_INITIAL_WAIT_PERIOD"`
	SessionMaxLength                 int64                   `mapstructure:"SESSION_MAX_LENGTH"`
	SessionMaxSimultaneousUsers      int                     `mapstructure:"SESSION_MAX_SIMULTANEOUS_USERS"`
	SessionKeepExpiredSessionsFor    int                     `mapstructure:"SESSION_KEEP_EXPIRED_SESSIONS_FOR"`
}

func GetAppConfig

func GetAppConfig() *AppConfig

type AuthenticationProvider

type AuthenticationProvider struct {
	Name         string   `mapstructure:"NAME"`
	ClientId     string   `mapstructure:"GOOGLE_CLIENT_ID"`
	ClientSecret string   `mapstructure:"GOOGLE_CLIENT_SECRET"`
	RedirectUri  string   `mapstructure:"REDIRECT_URI"`
	Scopes       []string `mapstructure:"SCOPES"`
	GtIss        []string `mapstructure:"GT_ISS"`
	GtHd         string   `mapstructure:"GT_HD"`
}

type DBConfig

type DBConfig struct {
	DbType          string `mapstructure:"DB_TYPE"`
	DbProfileId     string `mapstructure:"DB_PROFILE_ID"`
	DbProfileSecret string `mapstructure:"DB_PROFILE_SECRET"`
	DbRegion        string `mapstructure:"DB_REGION"`
	LocalSuffix     string `mapstructure:"LOCAL_SUFFIX"`
}

type OpenSearchConfig

type OpenSearchConfig struct {
	Username string `mapstructure:"USERNAME"`
	Url      string `mapstructure:"URL"`
}

type PeerCommunicationConfig added in v0.1.2

type PeerCommunicationConfig struct {
	Port            int      `mapstructure:"PORT"`
	Protocol        string   `mapstructure:"PROTOCOL"`
	DiscoveryMethod string   `mapstructure:"DISCOVERY_METHOD"`
	Namespace       string   `mapstructure:"NAMESPACE"`
	Peers           []string `mapstructure:"PEERS"`
}

type STSConfig

type STSConfig struct {
	STSProfileId     string `mapstructure:"STS_PROFILE_ID"`
	STSProfileSecret string `mapstructure:"STS_PROFILE_SECRET"`
	STSRegion        string `mapstructure:"STS_REGION"`
}

type TableNames

type TableNames struct {
	GroupTableName    string
	DomainTableName   string
	SessTableName     string
	TicketTableName   string
	RegisterTableName string
	BannedTableName   string
}
var TNames TableNames

func (*TableNames) GetTableNames

func (tnames *TableNames) GetTableNames() *TableNames

func (*TableNames) SetTableNames

func (tnames *TableNames) SetTableNames(names map[string]string)

Jump to

Keyboard shortcuts

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