container

package
v0.0.0-...-3d01394 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProductDBConnKey represents the sql connection key that will be used to
	// obtain the connection instance of product database
	ProductDBConnKey string = "sql.ProductConn"
	// TimeStampKey represents the time stamp key that will be used to
	// obtain the TimeStamp instance
	TimeStampKey string = "chrono.TimeStamp"
	// UserServiceConnKey represents de connection client key for
	// User Info Service
	UserServiceConnKey string = "userinfo.UserInfoServiceClient"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	// Initialize is responsible for initializing all application structs
	Initialize(configFilename string) error
	// Get is responsible for returning the instance of a struct
	Get(key string) (instance interface{}, ok bool)
	// GetAppConfig is responsible for returning de application configuration properties
	GetAppConfig() *config.AppConfig
	// Put is responsible for adding an instance of a struct to the container
	Put(key string, value interface{})
	// Remove is responsible for remove an instance of a struct to the container
	Remove(key string)
}

Container is responsible for managing the application's dependencies

Directories

Path Synopsis
factory

Jump to

Keyboard shortcuts

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