contextaccessor

package
v0.1.91 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddContextAccessor

func AddContextAccessor(builder *di.Builder)

ContextAccessor adds service to the DI container

Types

type IContextAccessor

type IContextAccessor interface {
	GetContext() context.Context
	GetContainer() di.Container
}

func GetContextAccessorFromContainer

func GetContextAccessorFromContainer(ctn di.Container) IContextAccessor

GetContextAccessorFromContainer from the Container

type IInternalContextAccessor

type IInternalContextAccessor interface {
	IContextAccessor
	SetContext(context.Context)
}

func GetInternalGetContextAccessorFromContainer

func GetInternalGetContextAccessorFromContainer(ctn di.Container) IInternalContextAccessor

GetInternalGetContextAccessorFromContainer from the Container

Jump to

Keyboard shortcuts

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