app

package
Version: v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*proto.GetAuthConfigResponse
	// contains filtered or unexported fields
}

func (*Config) GetAuthenticationType

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

func (*Config) IsApplicationAdmEnabled

func (c *Config) IsApplicationAdmEnabled() bool

func (*Config) IsEmailsDisabled

func (c *Config) IsEmailsDisabled() bool

type IConfig

type IConfig interface {
	IsEmailsDisabled() bool
	IsApplicationAdmEnabled() bool
	GetAuthenticationType() auth.AuthenticationType
}

func NewAppConfig

func NewAppConfig(authGRPC proto.AuthServiceClient) IConfig

type Mock

type Mock struct {
	mock.Mock
}

func (*Mock) GetAuthenticationType

func (m *Mock) GetAuthenticationType() auth.AuthenticationType

func (*Mock) IsApplicationAdmEnabled

func (m *Mock) IsApplicationAdmEnabled() bool

func (*Mock) IsEmailsDisabled

func (m *Mock) IsEmailsDisabled() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL