app

package
v0.0.0-...-46e61fc Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminAccount

type AdminAccount interface {
	CreateOrUpdate(account *accountEntities.Account) error
}

type Config

type Config struct {
	HorusecAuthURL         string
	AuthType               auth.AuthenticationType
	DisableEmails          bool
	EnableApplicationAdmin bool
	ApplicationAdminData   string
	EnableDefaultUser      bool
	DefaultUserData        string
	HorusecManagerURL      string
	// contains filtered or unexported fields
}

func (*Config) GetApplicationAdminData

func (c *Config) GetApplicationAdminData() (*accountEntities.Account, error)

func (*Config) GetAuthenticationType

func (c *Config) GetAuthenticationType() auth.AuthenticationType

func (*Config) GetDefaultUserData

func (c *Config) GetDefaultUserData() (*accountEntities.Account, error)

func (*Config) GetEnableApplicationAdmin

func (c *Config) GetEnableApplicationAdmin() bool

func (*Config) GetEnableDefaultUser

func (c *Config) GetEnableDefaultUser() bool

func (*Config) GetHorusecAuthURL

func (c *Config) GetHorusecAuthURL() string

func (*Config) GetHorusecManagerURL

func (c *Config) GetHorusecManagerURL() string

func (*Config) IsApplicationAdmEnabled

func (c *Config) IsApplicationAdmEnabled() bool

func (*Config) IsEmailsDisabled

func (c *Config) IsEmailsDisabled() bool

func (*Config) ToConfigResponse

func (c *Config) ToConfigResponse() map[string]interface{}

func (*Config) ToGetAuthConfigResponse

func (c *Config) ToGetAuthConfigResponse() *proto.GetAuthConfigResponse

type IConfig

type IConfig interface {
	GetAuthenticationType() auth.AuthenticationType
	ToConfigResponse() map[string]interface{}
	IsApplicationAdmEnabled() bool
	IsEmailsDisabled() bool
	ToGetAuthConfigResponse() *proto.GetAuthConfigResponse
	GetHorusecAuthURL() string
	GetHorusecManagerURL() string
	GetEnableApplicationAdmin() bool
	GetEnableDefaultUser() bool
	GetDefaultUserData() (*accountEntities.Account, error)
	GetApplicationAdminData() (*accountEntities.Account, error)
}

func NewAuthAppConfig

func NewAuthAppConfig(connection *database.Connection) IConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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