contextaccessor

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 4 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
}

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