Documentation ¶
Index ¶
- Variables
- func AddScopedIEchoContextAccessor(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddScopedIEchoContextAccessorByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddScopedIEchoContextAccessorByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddScopedIEchoContextAccessorWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func AddScopedIInternalEchoContextAccessor(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddScopedIInternalEchoContextAccessorByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddScopedIInternalEchoContextAccessorByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddScopedIInternalEchoContextAccessorWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func AddSingletonIEchoContextAccessor(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddSingletonIEchoContextAccessorByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIEchoContextAccessorByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIEchoContextAccessorByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)
- func AddSingletonIEchoContextAccessorByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, ...)
- func AddSingletonIEchoContextAccessorWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func AddSingletonIInternalEchoContextAccessor(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddSingletonIInternalEchoContextAccessorByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIInternalEchoContextAccessorByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIInternalEchoContextAccessorByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)
- func AddSingletonIInternalEchoContextAccessorByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, ...)
- func AddSingletonIInternalEchoContextAccessorWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func AddTransientIEchoContextAccessor(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddTransientIEchoContextAccessorByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddTransientIEchoContextAccessorByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddTransientIEchoContextAccessorWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func AddTransientIInternalEchoContextAccessor(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddTransientIInternalEchoContextAccessorByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddTransientIInternalEchoContextAccessorByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddTransientIInternalEchoContextAccessorWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func GetIEchoContextAccessorDefinition(ctn di.Container) *di.Def
- func GetIEchoContextAccessorDefinitions(ctn di.Container) []*di.Def
- func GetIInternalEchoContextAccessorDefinition(ctn di.Container) *di.Def
- func GetIInternalEchoContextAccessorDefinitions(ctn di.Container) []*di.Def
- func RemoveAllIEchoContextAccessor(builder *di.Builder)
- func RemoveAllIInternalEchoContextAccessor(builder *di.Builder)
- type IEchoContextAccessor
- func GetIEchoContextAccessorFromContainer(ctn di.Container) IEchoContextAccessor
- func GetManyIEchoContextAccessorFromContainer(ctn di.Container) []IEchoContextAccessor
- func SafeGetIEchoContextAccessorFromContainer(ctn di.Container) (IEchoContextAccessor, error)
- func SafeGetManyIEchoContextAccessorFromContainer(ctn di.Container) ([]IEchoContextAccessor, error)
- type IInternalEchoContextAccessor
- func GetIInternalEchoContextAccessorFromContainer(ctn di.Container) IInternalEchoContextAccessor
- func GetManyIInternalEchoContextAccessorFromContainer(ctn di.Container) []IInternalEchoContextAccessor
- func SafeGetIInternalEchoContextAccessorFromContainer(ctn di.Container) (IInternalEchoContextAccessor, error)
- func SafeGetManyIInternalEchoContextAccessorFromContainer(ctn di.Container) ([]IInternalEchoContextAccessor, error)
Constants ¶
This section is empty.
Variables ¶
var ReflectTypeIEchoContextAccessor = di.GetInterfaceReflectType((*IEchoContextAccessor)(nil))
ReflectTypeIEchoContextAccessor used when your service claims to implement IEchoContextAccessor
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 ¶
GetIEchoContextAccessorDefinition returns that last definition registered that this container can provide
func GetIEchoContextAccessorDefinitions ¶
GetIEchoContextAccessorDefinitions returns all definitions that this container can provide
func GetIInternalEchoContextAccessorDefinition ¶
GetIInternalEchoContextAccessorDefinition returns that last definition registered that this container can provide
func GetIInternalEchoContextAccessorDefinitions ¶
GetIInternalEchoContextAccessorDefinitions returns all definitions that this container can provide
func RemoveAllIEchoContextAccessor ¶
RemoveAllIEchoContextAccessor removes all IEchoContextAccessor from the DI
func RemoveAllIInternalEchoContextAccessor ¶
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