metadatafilter

package
v0.1.176 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

AddScopedIMetadataFilterMiddleware adds a type that implements IMetadataFilterMiddleware

func AddScopedIMetadataFilterMiddlewareByFunc

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

AddScopedIMetadataFilterMiddlewareByFunc adds a type by a custom func

func AddSingletonIMetadataFilterMiddleware

func AddSingletonIMetadataFilterMiddleware(builder *di.Builder, implType 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))

AddSingletonIMetadataFilterMiddlewareByFunc adds a type by a custom func

func AddSingletonIMetadataFilterMiddlewareByObj

func AddSingletonIMetadataFilterMiddlewareByObj(builder *di.Builder, obj interface{})

AddSingletonIMetadataFilterMiddlewareByObj adds a prebuilt obj

func AddTransientIMetadataFilterMiddleware

func AddTransientIMetadataFilterMiddleware(builder *di.Builder, implType 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))

AddTransientIMetadataFilterMiddlewareByFunc adds a type by a custom func

func RemoveAllIMetadataFilterMiddleware

func RemoveAllIMetadataFilterMiddleware(builder *di.Builder)

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 SafeGetIMetadataFilterMiddlewareFromContainer

func SafeGetIMetadataFilterMiddlewareFromContainer(ctn di.Container) (IMetadataFilterMiddleware, error)

SafeGetIMetadataFilterMiddlewareFromContainer 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