config

package
v0.0.0-...-57fdbbf Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Environment        string
	RootPath           string
	DebugMode          bool
	Options            []string
	DatabaseDsn        string
	DatabaseName       string
	APIPort            int
	DatabaseDriver     string
	MailerUser         string
	MailerPassword     string
	RecaptchaSiteKey   string
	RecaptchaSecretKey string
}

Config Config

func (*Config) GetAPIPort

func (c *Config) GetAPIPort() int

GetAPIPort GetAPIPort

func (*Config) GetDatabaseDriver

func (c *Config) GetDatabaseDriver() string

GetDatabaseDriver GetDatabaseDriver

func (*Config) GetDatabaseName

func (c *Config) GetDatabaseName() string

GetDatabaseName GetDatabaseName

func (*Config) GetEnvironment

func (c *Config) GetEnvironment() string

GetEnvironment GetEnvironment

func (*Config) GetMailerPassword

func (c *Config) GetMailerPassword() string

GetMailerPassword GetMailerPassword

func (*Config) GetMailerUser

func (c *Config) GetMailerUser() string

GetMailerUser GetMailerUser

func (*Config) GetMysqlDsn

func (c *Config) GetMysqlDsn() string

GetMysqlDsn GetMysqlDsn

func (*Config) GetRecaptchaSecretKey

func (c *Config) GetRecaptchaSecretKey() string

GetRecaptchaSecretKey GetRecaptchaSecretKey

func (*Config) GetRecaptchaSiteKey

func (c *Config) GetRecaptchaSiteKey() string

GetRecaptchaSiteKey GetRecaptchaSiteKey

func (*Config) GetRootPath

func (c *Config) GetRootPath() string

GetRootPath GetRootPath

func (*Config) Init

func (c *Config) Init()

Init Init

type IConfig

type IConfig interface {
	Init()
	GetRootPath() string
	GetEnvironment() string
	GetMysqlDsn() string
	GetAPIPort() int
	GetDatabaseName() string
	GetDatabaseDriver() string
	GetMailerUser() string
	GetMailerPassword() string
	GetRecaptchaSiteKey() string
	GetRecaptchaSecretKey() string
}

IConfig IConfig

Jump to

Keyboard shortcuts

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