auth

package
v0.1.245 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

GetIModularAuthMiddlewareDefinition returns that last definition registered that this container can provide

func GetIModularAuthMiddlewareDefinitions added in v0.1.217

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

GetIModularAuthMiddlewareDefinitions returns all definitions that this container can provide

func RemoveAllIModularAuthMiddleware

func RemoveAllIModularAuthMiddleware(builder *di.Builder)

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

Jump to

Keyboard shortcuts

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