Documentation ¶
Index ¶
- Variables
- func AddScopedIOauth2(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddScopedIOauth2ByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIOauth2(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddSingletonIOauth2ByFunc(builder *di.Builder, implType reflect.Type, ...)
- func AddSingletonIOauth2ByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)
- func AddTransientIOauth2(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)
- func AddTransientIOauth2ByFunc(builder *di.Builder, implType reflect.Type, ...)
- func RemoveAllIOauth2(builder *di.Builder)
- type IOauth2
Constants ¶
This section is empty.
Variables ¶
var ReflectTypeIOauth2 = di.GetInterfaceReflectType((*IOauth2)(nil))
ReflectTypeIOauth2 used when your service claims to implement IOauth2
Functions ¶
func AddScopedIOauth2 ¶
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 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 AddSingletonIOauth2ByObj ¶
func AddSingletonIOauth2ByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)
AddSingletonIOauth2ByObj adds a prebuilt obj
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 RemoveAllIOauth2 ¶ added in v0.1.144
RemoveAllIOauth2 removes all IOauth2 from the DI
Types ¶
type IOauth2 ¶
type IOauth2 interface { }
IOauth2 contract
func GetIOauth2FromContainer ¶
GetIOauth2FromContainer alternative to SafeGetIOauth2FromContainer but panics of object is not present
func GetManyIOauth2FromContainer ¶ added in v0.1.178
GetManyIOauth2FromContainer alternative to SafeGetManyIOauth2FromContainer but panics of object is not present
func SafeGetIOauth2FromContainer ¶
SafeGetIOauth2FromContainer trys to get the object by type, will not panic, returns nil and error