contextaccessor

package
v0.1.120 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 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)

AddContextAccessor 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