app

package
v0.0.0-...-80d4866 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitApp

func InitApp(filename ...string) (container.Container, error)

InitApp loads the application configurations from a file and saved it in appConfig and initialize the logger The appConfig is cached in container, so it only loads the configuration file once. InitApp only needs to be called once. If the configuration changes, you can call it again to reinitialize the app.

Types

This section is empty.

Directories

Path Synopsis
Package config reasd configurations from a YAML file and load them into a AppConfig type to save the configuration information for the application.
Package config reasd configurations from a YAML file and load them into a AppConfig type to save the configuration information for the application.
package container use dependency injection to create concrete type and wire the whole application together
package container use dependency injection to create concrete type and wire the whole application together
Package logger represents a generic logging interface
Package logger represents a generic logging interface

Jump to

Keyboard shortcuts

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