environment

package
v0.1.46 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApp added in v0.1.31

func GetApp[T any]() T

func GetRepo added in v0.1.31

func GetRepo[T any]() T

Types

type Env

type Env struct {
	Cfg        config.CfgManager
	ApiServer  *httpserver.ApiServer
	Broker     *messaging.Broker
	AppFactory application.AppFactory
	DbFactory  database.DbFactory
	Worker     messaging.Worker
	// contains filtered or unexported fields
}

func NewEnv

func NewEnv() *Env

func (*Env) Bootstrap

func (env *Env) Bootstrap(b func(env *Env) error) error

func (*Env) WithAppFactory added in v0.1.35

func (env *Env) WithAppFactory() *Env

func (*Env) WithBroker added in v0.1.35

func (env *Env) WithBroker() *Env

func (*Env) WithDbFactory added in v0.1.35

func (env *Env) WithDbFactory() *Env

func (*Env) WithWorker added in v0.1.41

func (env *Env) WithWorker() *Env

Jump to

Keyboard shortcuts

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