config

package
v0.0.0-...-afc335f Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Application

func Application() string

func ApplicationError

func ApplicationError() string

func Assets

func Assets() string

func Debug

func Debug() bool

func GetBoolFromEnv

func GetBoolFromEnv(key string) bool

func GetIntFromEnv

func GetIntFromEnv(key string) (int, error)

func GetStringFromEnv

func GetStringFromEnv(key string) string

func GetUrlDatabase

func GetUrlDatabase() string

func GetUrlHttp

func GetUrlHttp() string

func SetPrefix

func SetPrefix(key string)

Types

type GeneralConfig

type GeneralConfig struct {
	// contains filtered or unexported fields
}

func (*GeneralConfig) GetDatabaseUrl

func (this *GeneralConfig) GetDatabaseUrl() string

func (*GeneralConfig) GetHttpUrl

func (this *GeneralConfig) GetHttpUrl() string

func (*GeneralConfig) LoadDefaultConfig

func (this *GeneralConfig) LoadDefaultConfig()

func (*GeneralConfig) LoadEnvConfig

func (this *GeneralConfig) LoadEnvConfig() error

Jump to

Keyboard shortcuts

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