Documentation ¶
Index ¶
- Variables
- func AddScopedIMetadataFilterMiddleware(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddScopedIMetadataFilterMiddlewareByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddScopedIMetadataFilterMiddlewareByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddScopedIMetadataFilterMiddlewareWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func AddSingletonIMetadataFilterMiddleware(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddSingletonIMetadataFilterMiddlewareByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIMetadataFilterMiddlewareByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIMetadataFilterMiddlewareByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)
- func AddSingletonIMetadataFilterMiddlewareByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, ...)
- func AddSingletonIMetadataFilterMiddlewareWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func AddTransientIMetadataFilterMiddleware(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddTransientIMetadataFilterMiddlewareByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddTransientIMetadataFilterMiddlewareByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddTransientIMetadataFilterMiddlewareWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func GetIMetadataFilterMiddlewareDefinition(ctn di.Container) *di.Def
- func GetIMetadataFilterMiddlewareDefinitions(ctn di.Container) []*di.Def
- func RemoveAllIMetadataFilterMiddleware(builder *di.Builder)
- type IMetadataFilterMiddleware
- func GetIMetadataFilterMiddlewareFromContainer(ctn di.Container) IMetadataFilterMiddleware
- func GetManyIMetadataFilterMiddlewareFromContainer(ctn di.Container) []IMetadataFilterMiddleware
- func SafeGetIMetadataFilterMiddlewareFromContainer(ctn di.Container) (IMetadataFilterMiddleware, error)
- func SafeGetManyIMetadataFilterMiddlewareFromContainer(ctn di.Container) ([]IMetadataFilterMiddleware, error)
Constants ¶
This section is empty.
Variables ¶
var ReflectTypeIMetadataFilterMiddleware = di.GetInterfaceReflectType((*IMetadataFilterMiddleware)(nil))
ReflectTypeIMetadataFilterMiddleware used when your service claims to implement IMetadataFilterMiddleware
Functions ¶
func AddScopedIMetadataFilterMiddleware ¶
func AddScopedIMetadataFilterMiddleware(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
AddScopedIMetadataFilterMiddleware adds a type that implements IMetadataFilterMiddleware
func AddScopedIMetadataFilterMiddlewareByFunc ¶
func AddScopedIMetadataFilterMiddlewareByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)
AddScopedIMetadataFilterMiddlewareByFunc adds a type by a custom func
func AddScopedIMetadataFilterMiddlewareByFuncWithMetadata ¶ added in v0.1.217
func AddScopedIMetadataFilterMiddlewareByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddScopedIMetadataFilterMiddlewareByFuncWithMetadata adds a type by a custom func
func AddScopedIMetadataFilterMiddlewareWithMetadata ¶ added in v0.1.217
func AddScopedIMetadataFilterMiddlewareWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddScopedIMetadataFilterMiddlewareWithMetadata adds a type that implements IMetadataFilterMiddleware
func AddSingletonIMetadataFilterMiddleware ¶
func AddSingletonIMetadataFilterMiddleware(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
AddSingletonIMetadataFilterMiddleware adds a type that implements IMetadataFilterMiddleware
func AddSingletonIMetadataFilterMiddlewareByFunc ¶
func AddSingletonIMetadataFilterMiddlewareByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)
AddSingletonIMetadataFilterMiddlewareByFunc adds a type by a custom func
func AddSingletonIMetadataFilterMiddlewareByFuncWithMetadata ¶ added in v0.1.217
func AddSingletonIMetadataFilterMiddlewareByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddSingletonIMetadataFilterMiddlewareByFuncWithMetadata adds a type by a custom func
func AddSingletonIMetadataFilterMiddlewareByObj ¶
func AddSingletonIMetadataFilterMiddlewareByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)
AddSingletonIMetadataFilterMiddlewareByObj adds a prebuilt obj
func AddSingletonIMetadataFilterMiddlewareByObjWithMetadata ¶ added in v0.1.217
func AddSingletonIMetadataFilterMiddlewareByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddSingletonIMetadataFilterMiddlewareByObjWithMetadata adds a prebuilt obj
func AddSingletonIMetadataFilterMiddlewareWithMetadata ¶ added in v0.1.217
func AddSingletonIMetadataFilterMiddlewareWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddSingletonIMetadataFilterMiddlewareWithMetadata adds a type that implements IMetadataFilterMiddleware
func AddTransientIMetadataFilterMiddleware ¶
func AddTransientIMetadataFilterMiddleware(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
AddTransientIMetadataFilterMiddleware adds a type that implements IMetadataFilterMiddleware
func AddTransientIMetadataFilterMiddlewareByFunc ¶
func AddTransientIMetadataFilterMiddlewareByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)
AddTransientIMetadataFilterMiddlewareByFunc adds a type by a custom func
func AddTransientIMetadataFilterMiddlewareByFuncWithMetadata ¶ added in v0.1.217
func AddTransientIMetadataFilterMiddlewareByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddTransientIMetadataFilterMiddlewareByFuncWithMetadata adds a type by a custom func
func AddTransientIMetadataFilterMiddlewareWithMetadata ¶ added in v0.1.217
func AddTransientIMetadataFilterMiddlewareWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddTransientIMetadataFilterMiddlewareWithMetadata adds a type that implements IMetadataFilterMiddleware
func GetIMetadataFilterMiddlewareDefinition ¶ added in v0.1.217
GetIMetadataFilterMiddlewareDefinition returns that last definition registered that this container can provide
func GetIMetadataFilterMiddlewareDefinitions ¶ added in v0.1.217
GetIMetadataFilterMiddlewareDefinitions returns all definitions that this container can provide
func RemoveAllIMetadataFilterMiddleware ¶
RemoveAllIMetadataFilterMiddleware removes all IMetadataFilterMiddleware from the DI
Types ¶
type IMetadataFilterMiddleware ¶
type IMetadataFilterMiddleware interface { // GetUnaryServerInterceptor ... GetUnaryServerInterceptor() grpc.UnaryServerInterceptor }
IMetadataFilterMiddleware ...
func GetIMetadataFilterMiddlewareFromContainer ¶
func GetIMetadataFilterMiddlewareFromContainer(ctn di.Container) IMetadataFilterMiddleware
GetIMetadataFilterMiddlewareFromContainer alternative to SafeGetIMetadataFilterMiddlewareFromContainer but panics of object is not present
func GetManyIMetadataFilterMiddlewareFromContainer ¶ added in v0.1.178
func GetManyIMetadataFilterMiddlewareFromContainer(ctn di.Container) []IMetadataFilterMiddleware
GetManyIMetadataFilterMiddlewareFromContainer alternative to SafeGetManyIMetadataFilterMiddlewareFromContainer but panics of object is not present
func SafeGetIMetadataFilterMiddlewareFromContainer ¶
func SafeGetIMetadataFilterMiddlewareFromContainer(ctn di.Container) (IMetadataFilterMiddleware, error)
SafeGetIMetadataFilterMiddlewareFromContainer trys to get the object by type, will not panic, returns nil and error
func SafeGetManyIMetadataFilterMiddlewareFromContainer ¶ added in v0.1.178
func SafeGetManyIMetadataFilterMiddlewareFromContainer(ctn di.Container) ([]IMetadataFilterMiddleware, error)
SafeGetManyIMetadataFilterMiddlewareFromContainer trys to get the object by type, will not panic, returns nil and error