Documentation ¶
Index ¶
- Variables
- func AddScopedIModularAuthMiddleware(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddScopedIModularAuthMiddlewareByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddScopedIModularAuthMiddlewareByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddScopedIModularAuthMiddlewareWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func AddSingletonIModularAuthMiddleware(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddSingletonIModularAuthMiddlewareByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIModularAuthMiddlewareByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIModularAuthMiddlewareByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)
- func AddSingletonIModularAuthMiddlewareByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, ...)
- func AddSingletonIModularAuthMiddlewareWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func AddTransientIModularAuthMiddleware(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddTransientIModularAuthMiddlewareByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddTransientIModularAuthMiddlewareByFuncWithMetadata(builder *di.Builder, implType reflect.Type, ...)
- func AddTransientIModularAuthMiddlewareWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, ...)
- func GetIModularAuthMiddlewareDefinition(ctn di.Container) *di.Def
- func GetIModularAuthMiddlewareDefinitions(ctn di.Container) []*di.Def
- func RemoveAllIModularAuthMiddleware(builder *di.Builder)
- type IModularAuthMiddleware
- func GetIModularAuthMiddlewareFromContainer(ctn di.Container) IModularAuthMiddleware
- func GetManyIModularAuthMiddlewareFromContainer(ctn di.Container) []IModularAuthMiddleware
- func SafeGetIModularAuthMiddlewareFromContainer(ctn di.Container) (IModularAuthMiddleware, error)
- func SafeGetManyIModularAuthMiddlewareFromContainer(ctn di.Container) ([]IModularAuthMiddleware, error)
Constants ¶
This section is empty.
Variables ¶
var ReflectTypeIModularAuthMiddleware = di.GetInterfaceReflectType((*IModularAuthMiddleware)(nil))
ReflectTypeIModularAuthMiddleware used when your service claims to implement IModularAuthMiddleware
Functions ¶
func AddScopedIModularAuthMiddleware ¶
func AddScopedIModularAuthMiddleware(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
AddScopedIModularAuthMiddleware adds a type that implements IModularAuthMiddleware
func AddScopedIModularAuthMiddlewareByFunc ¶
func AddScopedIModularAuthMiddlewareByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)
AddScopedIModularAuthMiddlewareByFunc adds a type by a custom func
func AddScopedIModularAuthMiddlewareByFuncWithMetadata ¶ added in v0.1.217
func AddScopedIModularAuthMiddlewareByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddScopedIModularAuthMiddlewareByFuncWithMetadata adds a type by a custom func
func AddScopedIModularAuthMiddlewareWithMetadata ¶ added in v0.1.217
func AddScopedIModularAuthMiddlewareWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddScopedIModularAuthMiddlewareWithMetadata adds a type that implements IModularAuthMiddleware
func AddSingletonIModularAuthMiddleware ¶
func AddSingletonIModularAuthMiddleware(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
AddSingletonIModularAuthMiddleware adds a type that implements IModularAuthMiddleware
func AddSingletonIModularAuthMiddlewareByFunc ¶
func AddSingletonIModularAuthMiddlewareByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)
AddSingletonIModularAuthMiddlewareByFunc adds a type by a custom func
func AddSingletonIModularAuthMiddlewareByFuncWithMetadata ¶ added in v0.1.217
func AddSingletonIModularAuthMiddlewareByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddSingletonIModularAuthMiddlewareByFuncWithMetadata adds a type by a custom func
func AddSingletonIModularAuthMiddlewareByObj ¶
func AddSingletonIModularAuthMiddlewareByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)
AddSingletonIModularAuthMiddlewareByObj adds a prebuilt obj
func AddSingletonIModularAuthMiddlewareByObjWithMetadata ¶ added in v0.1.217
func AddSingletonIModularAuthMiddlewareByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddSingletonIModularAuthMiddlewareByObjWithMetadata adds a prebuilt obj
func AddSingletonIModularAuthMiddlewareWithMetadata ¶ added in v0.1.217
func AddSingletonIModularAuthMiddlewareWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddSingletonIModularAuthMiddlewareWithMetadata adds a type that implements IModularAuthMiddleware
func AddTransientIModularAuthMiddleware ¶
func AddTransientIModularAuthMiddleware(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
AddTransientIModularAuthMiddleware adds a type that implements IModularAuthMiddleware
func AddTransientIModularAuthMiddlewareByFunc ¶
func AddTransientIModularAuthMiddlewareByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)
AddTransientIModularAuthMiddlewareByFunc adds a type by a custom func
func AddTransientIModularAuthMiddlewareByFuncWithMetadata ¶ added in v0.1.217
func AddTransientIModularAuthMiddlewareByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddTransientIModularAuthMiddlewareByFuncWithMetadata adds a type by a custom func
func AddTransientIModularAuthMiddlewareWithMetadata ¶ added in v0.1.217
func AddTransientIModularAuthMiddlewareWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)
AddTransientIModularAuthMiddlewareWithMetadata adds a type that implements IModularAuthMiddleware
func GetIModularAuthMiddlewareDefinition ¶ added in v0.1.217
GetIModularAuthMiddlewareDefinition returns that last definition registered that this container can provide
func GetIModularAuthMiddlewareDefinitions ¶ added in v0.1.217
GetIModularAuthMiddlewareDefinitions returns all definitions that this container can provide
func RemoveAllIModularAuthMiddleware ¶
RemoveAllIModularAuthMiddleware removes all IModularAuthMiddleware from the DI
Types ¶
type IModularAuthMiddleware ¶
type IModularAuthMiddleware interface { // GetUnaryServerInterceptor ... GetUnaryServerInterceptor() grpc.UnaryServerInterceptor }
IModularAuthMiddleware ...
func GetIModularAuthMiddlewareFromContainer ¶
func GetIModularAuthMiddlewareFromContainer(ctn di.Container) IModularAuthMiddleware
GetIModularAuthMiddlewareFromContainer alternative to SafeGetIModularAuthMiddlewareFromContainer but panics of object is not present
func GetManyIModularAuthMiddlewareFromContainer ¶
func GetManyIModularAuthMiddlewareFromContainer(ctn di.Container) []IModularAuthMiddleware
GetManyIModularAuthMiddlewareFromContainer alternative to SafeGetManyIModularAuthMiddlewareFromContainer but panics of object is not present
func SafeGetIModularAuthMiddlewareFromContainer ¶
func SafeGetIModularAuthMiddlewareFromContainer(ctn di.Container) (IModularAuthMiddleware, error)
SafeGetIModularAuthMiddlewareFromContainer trys to get the object by type, will not panic, returns nil and error
func SafeGetManyIModularAuthMiddlewareFromContainer ¶
func SafeGetManyIModularAuthMiddlewareFromContainer(ctn di.Container) ([]IModularAuthMiddleware, error)
SafeGetManyIModularAuthMiddlewareFromContainer trys to get the object by type, will not panic, returns nil and error