Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigFileType ¶
type ConfigFileType int32
ConfigFileType x ENUM( Json Toml Yaml Yml Xml Properties Props Prop Env Dotenv Unknown )
const ( // ConfigFileTypeJson is a ConfigFileType of type Json ConfigFileTypeJson ConfigFileType = iota // ConfigFileTypeToml is a ConfigFileType of type Toml ConfigFileTypeToml // ConfigFileTypeYaml is a ConfigFileType of type Yaml ConfigFileTypeYaml // ConfigFileTypeYml is a ConfigFileType of type Yml ConfigFileTypeYml // ConfigFileTypeXml is a ConfigFileType of type Xml ConfigFileTypeXml // ConfigFileTypeProperties is a ConfigFileType of type Properties ConfigFileTypeProperties // ConfigFileTypeProps is a ConfigFileType of type Props ConfigFileTypeProps // ConfigFileTypeProp is a ConfigFileType of type Prop ConfigFileTypeProp // ConfigFileTypeEnv is a ConfigFileType of type Env ConfigFileTypeEnv // ConfigFileTypeDotenv is a ConfigFileType of type Dotenv ConfigFileTypeDotenv // ConfigFileTypeUnknown is a ConfigFileType of type Unknown ConfigFileTypeUnknown )
func ParseConfigFileType ¶
func ParseConfigFileType(name string) (ConfigFileType, *errorAVA.Error)
ParseConfigFileType attempts to convert a string to a ConfigFileType
func (ConfigFileType) MarshalText ¶
func (x ConfigFileType) MarshalText() ([]byte, *errorAVA.Error)
MarshalText implements the text marshaller method
func (ConfigFileType) String ¶
func (x ConfigFileType) String() string
String implements the Stringer interface.
func (ConfigFileType) UnmarshalText ¶
func (x ConfigFileType) UnmarshalText(text []byte) (ConfigFileType, *errorAVA.Error)
UnmarshalText implements the text unmarshaller method
type Configuration ¶
type Configuration struct { ProjectName string Author string Copyright string Version *versionAVA.VersionInfo Environment *Environment }
func (*Configuration) Serializer ¶
func (c *Configuration) Serializer(t serializerAVA.SerializerType) ([]byte, *errorAVA.Error)
type Environment ¶
type Environment struct { Type EnvironmentType Name string Logger *loggerAVA.Logger API *httpModelConfigAVA.API TLS *httpModelConfigAVA.TLS }
func NewEnvironment ¶
func NewEnvironment(environmentType EnvironmentType, name string, logger *loggerAVA.Logger, api *httpModelConfigAVA.API, tls *httpModelConfigAVA.TLS) (*Environment, *errorAVA.Error)
func (*Environment) Serializer ¶
func (environment *Environment) Serializer(t serializerAVA.SerializerType) ([]byte, *errorAVA.Error)
type EnvironmentType ¶
type EnvironmentType int32
EnvironmentType x ENUM( Development, Test, Integration, Production, Unknown, )
const ( // EnvironmentTypeDevelopment is a EnvironmentType of type Development EnvironmentTypeDevelopment EnvironmentType = iota // EnvironmentTypeTest is a EnvironmentType of type Test EnvironmentTypeTest // EnvironmentTypeIntegration is a EnvironmentType of type Integration EnvironmentTypeIntegration // EnvironmentTypeProduction is a EnvironmentType of type Production EnvironmentTypeProduction // EnvironmentTypeUnknown is a EnvironmentType of type Unknown EnvironmentTypeUnknown )
func ParseEnvironmentType ¶
func ParseEnvironmentType(name string) (EnvironmentType, *errorAVA.Error)
ParseEnvironmentType attempts to convert a string to a EnvironmentType
func (EnvironmentType) MarshalText ¶
func (x EnvironmentType) MarshalText() ([]byte, *errorAVA.Error)
MarshalText implements the text marshaller method
func (EnvironmentType) String ¶
func (x EnvironmentType) String() string
String implements the Stringer interface.
func (EnvironmentType) UnmarshalText ¶
func (x EnvironmentType) UnmarshalText(text []byte) (EnvironmentType, *errorAVA.Error)
UnmarshalText implements the text unmarshaller method
Source Files ¶
Click to show internal directories.
Click to hide internal directories.