environment

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidParentContext   = xerrors.New("new content is not created based on previous context", "E0210")
	ErrNoEnvironmentInContext = xerrors.New("there is no environment in the context", "E0220")
)

Functions

func GetEnvironment

func GetEnvironment(ctx context.Context) (componego.Environment, error)

func GetEnvironmentOrPanic

func GetEnvironmentOrPanic(ctx context.Context) componego.Environment

func New

func New(
	ctx context.Context,
	application componego.Application,
	applicationIO componego.ApplicationIO,
	applicationMode componego.ApplicationMode,
	configProvider componego.ConfigProvider,
	componentProvider componego.ComponentProvider,
	dependencyInvoker componego.DependencyInvoker,
) componego.Environment

New is a constructor that creates environment for the application.

Types

type ContextKey added in v0.0.3

type ContextKey struct{}

Jump to

Keyboard shortcuts

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