contextaccessor

package
v0.1.298-herb-nested-c... Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReflectTypeIEchoContextAccessor = di.GetInterfaceReflectType((*IEchoContextAccessor)(nil))

ReflectTypeIEchoContextAccessor used when your service claims to implement IEchoContextAccessor

View Source
var ReflectTypeIInternalEchoContextAccessor = di.GetInterfaceReflectType((*IInternalEchoContextAccessor)(nil))

ReflectTypeIInternalEchoContextAccessor used when your service claims to implement IInternalEchoContextAccessor

Functions

func AddScopedIEchoContextAccessor

func AddScopedIEchoContextAccessor(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddScopedIEchoContextAccessor adds a type that implements IEchoContextAccessor

func AddScopedIEchoContextAccessorByFunc

func AddScopedIEchoContextAccessorByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddScopedIEchoContextAccessorByFunc adds a type by a custom func

func AddScopedIEchoContextAccessorByFuncWithMetadata

func AddScopedIEchoContextAccessorByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedIEchoContextAccessorByFuncWithMetadata adds a type by a custom func

func AddScopedIEchoContextAccessorWithMetadata

func AddScopedIEchoContextAccessorWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedIEchoContextAccessorWithMetadata adds a type that implements IEchoContextAccessor

func AddScopedIInternalEchoContextAccessor

func AddScopedIInternalEchoContextAccessor(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddScopedIInternalEchoContextAccessor adds a type that implements IInternalEchoContextAccessor

func AddScopedIInternalEchoContextAccessorByFunc

func AddScopedIInternalEchoContextAccessorByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddScopedIInternalEchoContextAccessorByFunc adds a type by a custom func

func AddScopedIInternalEchoContextAccessorByFuncWithMetadata

func AddScopedIInternalEchoContextAccessorByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedIInternalEchoContextAccessorByFuncWithMetadata adds a type by a custom func

func AddScopedIInternalEchoContextAccessorWithMetadata

func AddScopedIInternalEchoContextAccessorWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedIInternalEchoContextAccessorWithMetadata adds a type that implements IInternalEchoContextAccessor

func AddSingletonIEchoContextAccessor

func AddSingletonIEchoContextAccessor(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddSingletonIEchoContextAccessor adds a type that implements IEchoContextAccessor

func AddSingletonIEchoContextAccessorByFunc

func AddSingletonIEchoContextAccessorByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddSingletonIEchoContextAccessorByFunc adds a type by a custom func

func AddSingletonIEchoContextAccessorByFuncWithMetadata

func AddSingletonIEchoContextAccessorByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIEchoContextAccessorByFuncWithMetadata adds a type by a custom func

func AddSingletonIEchoContextAccessorByObj

func AddSingletonIEchoContextAccessorByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)

AddSingletonIEchoContextAccessorByObj adds a prebuilt obj

func AddSingletonIEchoContextAccessorByObjWithMetadata

func AddSingletonIEchoContextAccessorByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIEchoContextAccessorByObjWithMetadata adds a prebuilt obj

func AddSingletonIEchoContextAccessorWithMetadata

func AddSingletonIEchoContextAccessorWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIEchoContextAccessorWithMetadata adds a type that implements IEchoContextAccessor

func AddSingletonIInternalEchoContextAccessor

func AddSingletonIInternalEchoContextAccessor(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddSingletonIInternalEchoContextAccessor adds a type that implements IInternalEchoContextAccessor

func AddSingletonIInternalEchoContextAccessorByFunc

func AddSingletonIInternalEchoContextAccessorByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddSingletonIInternalEchoContextAccessorByFunc adds a type by a custom func

func AddSingletonIInternalEchoContextAccessorByFuncWithMetadata

func AddSingletonIInternalEchoContextAccessorByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIInternalEchoContextAccessorByFuncWithMetadata adds a type by a custom func

func AddSingletonIInternalEchoContextAccessorByObj

func AddSingletonIInternalEchoContextAccessorByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)

AddSingletonIInternalEchoContextAccessorByObj adds a prebuilt obj

func AddSingletonIInternalEchoContextAccessorByObjWithMetadata

func AddSingletonIInternalEchoContextAccessorByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIInternalEchoContextAccessorByObjWithMetadata adds a prebuilt obj

func AddSingletonIInternalEchoContextAccessorWithMetadata

func AddSingletonIInternalEchoContextAccessorWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIInternalEchoContextAccessorWithMetadata adds a type that implements IInternalEchoContextAccessor

func AddTransientIEchoContextAccessor

func AddTransientIEchoContextAccessor(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddTransientIEchoContextAccessor adds a type that implements IEchoContextAccessor

func AddTransientIEchoContextAccessorByFunc

func AddTransientIEchoContextAccessorByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddTransientIEchoContextAccessorByFunc adds a type by a custom func

func AddTransientIEchoContextAccessorByFuncWithMetadata

func AddTransientIEchoContextAccessorByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientIEchoContextAccessorByFuncWithMetadata adds a type by a custom func

func AddTransientIEchoContextAccessorWithMetadata

func AddTransientIEchoContextAccessorWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientIEchoContextAccessorWithMetadata adds a type that implements IEchoContextAccessor

func AddTransientIInternalEchoContextAccessor

func AddTransientIInternalEchoContextAccessor(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddTransientIInternalEchoContextAccessor adds a type that implements IInternalEchoContextAccessor

func AddTransientIInternalEchoContextAccessorByFunc

func AddTransientIInternalEchoContextAccessorByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddTransientIInternalEchoContextAccessorByFunc adds a type by a custom func

func AddTransientIInternalEchoContextAccessorByFuncWithMetadata

func AddTransientIInternalEchoContextAccessorByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientIInternalEchoContextAccessorByFuncWithMetadata adds a type by a custom func

func AddTransientIInternalEchoContextAccessorWithMetadata

func AddTransientIInternalEchoContextAccessorWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientIInternalEchoContextAccessorWithMetadata adds a type that implements IInternalEchoContextAccessor

func GetIEchoContextAccessorDefinition

func GetIEchoContextAccessorDefinition(ctn di.Container) *di.Def

GetIEchoContextAccessorDefinition returns that last definition registered that this container can provide

func GetIEchoContextAccessorDefinitions

func GetIEchoContextAccessorDefinitions(ctn di.Container) []*di.Def

GetIEchoContextAccessorDefinitions returns all definitions that this container can provide

func GetIInternalEchoContextAccessorDefinition

func GetIInternalEchoContextAccessorDefinition(ctn di.Container) *di.Def

GetIInternalEchoContextAccessorDefinition returns that last definition registered that this container can provide

func GetIInternalEchoContextAccessorDefinitions

func GetIInternalEchoContextAccessorDefinitions(ctn di.Container) []*di.Def

GetIInternalEchoContextAccessorDefinitions returns all definitions that this container can provide

func RemoveAllIEchoContextAccessor

func RemoveAllIEchoContextAccessor(builder *di.Builder)

RemoveAllIEchoContextAccessor removes all IEchoContextAccessor from the DI

func RemoveAllIInternalEchoContextAccessor

func RemoveAllIInternalEchoContextAccessor(builder *di.Builder)

RemoveAllIInternalEchoContextAccessor removes all IInternalEchoContextAccessor from the DI

Types

type IEchoContextAccessor

type IEchoContextAccessor interface {
	GetContext() echo.Context
}

IEchoContextAccessor ...

func GetIEchoContextAccessorFromContainer

func GetIEchoContextAccessorFromContainer(ctn di.Container) IEchoContextAccessor

GetIEchoContextAccessorFromContainer alternative to SafeGetIEchoContextAccessorFromContainer but panics of object is not present

func GetManyIEchoContextAccessorFromContainer

func GetManyIEchoContextAccessorFromContainer(ctn di.Container) []IEchoContextAccessor

GetManyIEchoContextAccessorFromContainer alternative to SafeGetManyIEchoContextAccessorFromContainer but panics of object is not present

func SafeGetIEchoContextAccessorFromContainer

func SafeGetIEchoContextAccessorFromContainer(ctn di.Container) (IEchoContextAccessor, error)

SafeGetIEchoContextAccessorFromContainer trys to get the object by type, will not panic, returns nil and error

func SafeGetManyIEchoContextAccessorFromContainer

func SafeGetManyIEchoContextAccessorFromContainer(ctn di.Container) ([]IEchoContextAccessor, error)

SafeGetManyIEchoContextAccessorFromContainer trys to get the object by type, will not panic, returns nil and error

type IInternalEchoContextAccessor

type IInternalEchoContextAccessor interface {
	IEchoContextAccessor
	SetContext(echo.Context)
}

IInternalEchoContextAccessor ...

func GetIInternalEchoContextAccessorFromContainer

func GetIInternalEchoContextAccessorFromContainer(ctn di.Container) IInternalEchoContextAccessor

GetIInternalEchoContextAccessorFromContainer alternative to SafeGetIInternalEchoContextAccessorFromContainer but panics of object is not present

func GetManyIInternalEchoContextAccessorFromContainer

func GetManyIInternalEchoContextAccessorFromContainer(ctn di.Container) []IInternalEchoContextAccessor

GetManyIInternalEchoContextAccessorFromContainer alternative to SafeGetManyIInternalEchoContextAccessorFromContainer but panics of object is not present

func SafeGetIInternalEchoContextAccessorFromContainer

func SafeGetIInternalEchoContextAccessorFromContainer(ctn di.Container) (IInternalEchoContextAccessor, error)

SafeGetIInternalEchoContextAccessorFromContainer trys to get the object by type, will not panic, returns nil and error

func SafeGetManyIInternalEchoContextAccessorFromContainer

func SafeGetManyIInternalEchoContextAccessorFromContainer(ctn di.Container) ([]IInternalEchoContextAccessor, error)

SafeGetManyIInternalEchoContextAccessorFromContainer trys to get the object by type, will not panic, returns nil and error

Jump to

Keyboard shortcuts

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