oauth2

package
v0.1.164 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 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)

AddScopedIOauth2 adds a type that implements IOauth2

func AddScopedIOauth2ByFunc

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

AddScopedIOauth2ByFunc adds a type by a custom func

func AddSingletonIOauth2

func AddSingletonIOauth2(builder *di.Builder, implType 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))

AddSingletonIOauth2ByFunc adds a type by a custom func

func AddSingletonIOauth2ByObj

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

AddSingletonIOauth2ByObj adds a prebuilt obj

func AddTransientIOauth2

func AddTransientIOauth2(builder *di.Builder, implType 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))

AddTransientIOauth2ByFunc adds a type by a custom func

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 SafeGetIOauth2FromContainer

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

SafeGetIOauth2FromContainer 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