app

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvEnableApplicationAdminEnv = "HORUSEC_ENABLE_APPLICATION_ADMIN"
	EnvApplicationAdminDataEnv   = "HORUSEC_APPLICATION_ADMIN_DATA"
	EnvAuthType                  = "HORUSEC_AUTH_TYPE"
	EnvHorusecAPIURL             = "HORUSEC_API_URL"
	DisabledBrokerEnv            = "HORUSEC_DISABLED_BROKER"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HorusecAPIURL          string
	EnableApplicationAdmin bool
	ApplicationAdminData   string
	AuthType               authEnums.AuthorizationType
	DisabledBroker         bool
}

func NewConfig

func NewConfig() *Config

func (*Config) GetApplicationAdminData

func (a *Config) GetApplicationAdminData() (entity *dto.CreateAccount, err error)

func (*Config) GetAuthType

func (a *Config) GetAuthType() authEnums.AuthorizationType

func (*Config) GetEnableApplicationAdmin

func (a *Config) GetEnableApplicationAdmin() bool

func (*Config) GetHorusecAPIURL added in v1.4.0

func (a *Config) GetHorusecAPIURL() string

func (*Config) IsDisabledBroker added in v1.3.0

func (a *Config) IsDisabledBroker() bool

Jump to

Keyboard shortcuts

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