app

package
v0.0.0-...-244eeba Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 17 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 initialize the application container and load resources like JDBC, Messaging server and so on. InitApp only needs to be called once. If the configuration changes, you can call it again to reinitialize the app. "filename" is optional, it is provided, then the configuration is loaded from the file and saved them in appConfig, otherwise it is provided in code. You can also hard code the configuration values in code.

Types

This section is empty.

Directories

Path Synopsis
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