Documentation ¶
Overview ¶
Package models provides models.
Index ¶
Constants ¶
View Source
const ( EnvDevelopment = "development" EnvTest = "test" EnvStaging = "staging" EnvProduction = "production" )
Env consts
Variables ¶
View Source
var (
ErrConfigFilePathNotSpecified = errors.New("config file path is not specified")
)
Errors
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
Env string `yaml:"env"`
}
AppConfig represents a configuration for the application
func (*AppConfig) Development ¶
Development returns true if the Env == envDevelopment.
func (*AppConfig) Production ¶
Production returns true if the Env == envProduction.
type Config ¶
type Config struct { App AppConfig `yaml:"app"` Server ServerConfig `yaml:"server"` }
Config represents a configuration for Orgs.io.
type Flags ¶
type Flags struct { // ConfigFilePath represents a configuration file path. ConfigFilePath string }
Flags presents command line flags.
type ServerConfig ¶
ServerConfig represents a configuration for the server.
Click to show internal directories.
Click to hide internal directories.