oauth2

package
v0.1.226 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReflectTypeIOauth2 = di.GetInterfaceReflectType((*IOauth2)(nil))

ReflectTypeIOauth2 used when your service claims to implement IOauth2

Functions

func AddScopedIOauth2

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

AddScopedIOauth2 adds a type that implements IOauth2

func AddScopedIOauth2ByFunc

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

AddScopedIOauth2ByFunc adds a type by a custom func

func AddScopedIOauth2ByFuncWithMetadata added in v0.1.217

func AddScopedIOauth2ByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedIOauth2ByFuncWithMetadata adds a type by a custom func

func AddScopedIOauth2WithMetadata added in v0.1.217

func AddScopedIOauth2WithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedIOauth2WithMetadata adds a type that implements IOauth2

func AddSingletonIOauth2

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

AddSingletonIOauth2 adds a type that implements IOauth2

func AddSingletonIOauth2ByFunc

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

AddSingletonIOauth2ByFunc adds a type by a custom func

func AddSingletonIOauth2ByFuncWithMetadata added in v0.1.217

func AddSingletonIOauth2ByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIOauth2ByFuncWithMetadata adds a type by a custom func

func AddSingletonIOauth2ByObj

func AddSingletonIOauth2ByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)

AddSingletonIOauth2ByObj adds a prebuilt obj

func AddSingletonIOauth2ByObjWithMetadata added in v0.1.217

func AddSingletonIOauth2ByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIOauth2ByObjWithMetadata adds a prebuilt obj

func AddSingletonIOauth2WithMetadata added in v0.1.217

func AddSingletonIOauth2WithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIOauth2WithMetadata adds a type that implements IOauth2

func AddTransientIOauth2

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

AddTransientIOauth2 adds a type that implements IOauth2

func AddTransientIOauth2ByFunc

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

AddTransientIOauth2ByFunc adds a type by a custom func

func AddTransientIOauth2ByFuncWithMetadata added in v0.1.217

func AddTransientIOauth2ByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientIOauth2ByFuncWithMetadata adds a type by a custom func

func AddTransientIOauth2WithMetadata added in v0.1.217

func AddTransientIOauth2WithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientIOauth2WithMetadata adds a type that implements IOauth2

func GetIOauth2Definition added in v0.1.217

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

GetIOauth2Definition returns that last definition registered that this container can provide

func GetIOauth2Definitions added in v0.1.217

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

GetIOauth2Definitions returns all definitions that this container can provide

func RemoveAllIOauth2 added in v0.1.144

func RemoveAllIOauth2(builder *di.Builder)

RemoveAllIOauth2 removes all IOauth2 from the DI

Types

type IOauth2

type IOauth2 interface {
}

IOauth2 contract

func GetIOauth2FromContainer

func GetIOauth2FromContainer(ctn di.Container) IOauth2

GetIOauth2FromContainer alternative to SafeGetIOauth2FromContainer but panics of object is not present

func GetManyIOauth2FromContainer added in v0.1.178

func GetManyIOauth2FromContainer(ctn di.Container) []IOauth2

GetManyIOauth2FromContainer alternative to SafeGetManyIOauth2FromContainer but panics of object is not present

func SafeGetIOauth2FromContainer

func SafeGetIOauth2FromContainer(ctn di.Container) (IOauth2, error)

SafeGetIOauth2FromContainer trys to get the object by type, will not panic, returns nil and error

func SafeGetManyIOauth2FromContainer added in v0.1.178

func SafeGetManyIOauth2FromContainer(ctn di.Container) ([]IOauth2, error)

SafeGetManyIOauth2FromContainer 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