container

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	GetRepository() repository.Repository
	GetSession() session.Session
	GetConfig() *config.Config
	GetMessages() map[string]string
	GetLogger() logger.Logger
	GetEnv() string
}

Container represents a interface for accessing the data which sharing in overall application.

func NewContainer

func NewContainer(rep repository.Repository, s session.Session, config *config.Config,
	messages map[string]string, logger logger.Logger, env string) Container

NewContainer is constructor.

Jump to

Keyboard shortcuts

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