Documentation
¶
Index ¶
Constants ¶
View Source
const ( UnitTestingEnv string = "unit_testing" IntegrationTestingEnv string = "integration_testing" DevelopmentEnv string = "development" ProductionEnv string = "production" EnvironmentStringKey string = "API_ENV" EnvironmentDefault = DevelopmentEnv )
Variables ¶
This section is empty.
Functions ¶
func GetEnvironmentStrFromEnv ¶
func GetEnvironmentStrFromEnv() string
Types ¶
type ApplicationConfig ¶
type ApplicationConfig struct {
ApplicationConfig *config.ApplicationConfig
}
type ConfigDefaults ¶
type Database ¶
type Database struct {
SessionFactory db.SessionFactory
}
type Env ¶
type Env struct {
Name string
Services Services
Handlers Handlers
Clients Clients
Database Database
Config *config.ApplicationConfig
}
func Environment ¶
func Environment() *Env
func NewEnvironment ¶
func NewEnvironment(impls map[string]EnvironmentImpl) *Env
func (*Env) Initialize ¶
func (*Env) LoadClients ¶
func (*Env) LoadServices ¶
func (e *Env) LoadServices()
func (*Env) Seed ¶
func (e *Env) Seed() *errors.ServiceError
func (*Env) SetEnvironmentImpls ¶
func (e *Env) SetEnvironmentImpls(impls map[string]EnvironmentImpl)
type EnvironmentImpl ¶
type Handlers ¶
type Handlers struct {
AuthMiddleware JWTMiddleware
}
type JWTMiddleware ¶ added in v0.0.17
JWTMiddleware interface for JWT authentication - avoiding import cycle
type Services ¶
type Services struct {
// contains filtered or unexported fields
}
func (*Services) GetService ¶
func (*Services) InitRegistry ¶
func (s *Services) InitRegistry()
func (*Services) SetService ¶
Click to show internal directories.
Click to hide internal directories.