oidc

package
v0.1.170-herb-contract... Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReflectTypeIOidcBackgroundStorage = di.GetInterfaceReflectType((*IOidcBackgroundStorage)(nil))

ReflectTypeIOidcBackgroundStorage used when your service claims to implement IOidcBackgroundStorage

Functions

func AddScopedIOidcBackgroundStorage

func AddScopedIOidcBackgroundStorage(builder *di.Builder, implType reflect.Type)

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

func AddSingletonIOidcBackgroundStorage(builder *di.Builder, implType reflect.Type)

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

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

AddSingletonIOidcBackgroundStorageByObj adds a prebuilt obj

func AddTransientIOidcBackgroundStorage

func AddTransientIOidcBackgroundStorage(builder *di.Builder, implType reflect.Type)

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

func RemoveAllIOidcBackgroundStorage(builder *di.Builder)

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

Jump to

Keyboard shortcuts

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