Documentation ¶
Index ¶
- Variables
- func AddScopedIOidcBackgroundStorage(builder *di.Builder, implType reflect.Type)
- func AddScopedIOidcBackgroundStorageByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIOidcBackgroundStorage(builder *di.Builder, implType reflect.Type)
- func AddSingletonIOidcBackgroundStorageByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIOidcBackgroundStorageByObj(builder *di.Builder, obj interface{})
- func AddTransientIOidcBackgroundStorage(builder *di.Builder, implType reflect.Type)
- func AddTransientIOidcBackgroundStorageByFunc(builder *di.Builder, implType reflect.Type, ...)
- func RemoveAllIOidcBackgroundStorage(builder *di.Builder)
- type IOidcBackgroundStorage
Constants ¶
This section is empty.
Variables ¶
var ReflectTypeIOidcBackgroundStorage = di.GetInterfaceReflectType((*IOidcBackgroundStorage)(nil))
ReflectTypeIOidcBackgroundStorage used when your service claims to implement IOidcBackgroundStorage
Functions ¶
func AddScopedIOidcBackgroundStorage ¶
AddScopedIOidcBackgroundStorage adds a type that implements IOidcBackgroundStorage
func AddScopedIOidcBackgroundStorageByFunc ¶
func AddScopedIOidcBackgroundStorageByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error))
AddScopedIOidcBackgroundStorageByFunc adds a type by a custom func
func AddSingletonIOidcBackgroundStorage ¶
AddSingletonIOidcBackgroundStorage adds a type that implements IOidcBackgroundStorage
func AddSingletonIOidcBackgroundStorageByFunc ¶
func AddSingletonIOidcBackgroundStorageByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error))
AddSingletonIOidcBackgroundStorageByFunc adds a type by a custom func
func AddSingletonIOidcBackgroundStorageByObj ¶
AddSingletonIOidcBackgroundStorageByObj adds a prebuilt obj
func AddTransientIOidcBackgroundStorage ¶
AddTransientIOidcBackgroundStorage adds a type that implements IOidcBackgroundStorage
func AddTransientIOidcBackgroundStorageByFunc ¶
func AddTransientIOidcBackgroundStorageByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error))
AddTransientIOidcBackgroundStorageByFunc adds a type by a custom func
func RemoveAllIOidcBackgroundStorage ¶
RemoveAllIOidcBackgroundStorage removes all IOidcBackgroundStorage from the DI
Types ¶
type IOidcBackgroundStorage ¶
type IOidcBackgroundStorage interface { AtomicStore(disco *middleware_oidc.DiscoveryDocument) AtomicGet() *middleware_oidc.DiscoveryDocument }
IOidcBackgroundStorage ...
func GetIOidcBackgroundStorageFromContainer ¶
func GetIOidcBackgroundStorageFromContainer(ctn di.Container) IOidcBackgroundStorage
GetIOidcBackgroundStorageFromContainer alternative to SafeGetIOidcBackgroundStorageFromContainer but panics of object is not present
func SafeGetIOidcBackgroundStorageFromContainer ¶
func SafeGetIOidcBackgroundStorageFromContainer(ctn di.Container) (IOidcBackgroundStorage, error)
SafeGetIOidcBackgroundStorageFromContainer trys to get the object by type, will not panic, returns nil and error