uuid

package
v0.1.313-herb-transcode.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReflectTypeIKSUID = di.GetInterfaceReflectType((*IKSUID)(nil))

ReflectTypeIKSUID used when your service claims to implement IKSUID

Functions

func AddScopedIKSUID

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

AddScopedIKSUID adds a type that implements IKSUID

func AddScopedIKSUIDByFunc

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

AddScopedIKSUIDByFunc adds a type by a custom func

func AddScopedIKSUIDByFuncWithMetadata added in v0.1.217

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

AddScopedIKSUIDByFuncWithMetadata adds a type by a custom func

func AddScopedIKSUIDWithMetadata added in v0.1.217

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

AddScopedIKSUIDWithMetadata adds a type that implements IKSUID

func AddSingletonIKSUID

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

AddSingletonIKSUID adds a type that implements IKSUID

func AddSingletonIKSUIDByFunc

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

AddSingletonIKSUIDByFunc adds a type by a custom func

func AddSingletonIKSUIDByFuncWithMetadata added in v0.1.217

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

AddSingletonIKSUIDByFuncWithMetadata adds a type by a custom func

func AddSingletonIKSUIDByObj

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

AddSingletonIKSUIDByObj adds a prebuilt obj

func AddSingletonIKSUIDByObjWithMetadata added in v0.1.217

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

AddSingletonIKSUIDByObjWithMetadata adds a prebuilt obj

func AddSingletonIKSUIDWithMetadata added in v0.1.217

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

AddSingletonIKSUIDWithMetadata adds a type that implements IKSUID

func AddTransientIKSUID

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

AddTransientIKSUID adds a type that implements IKSUID

func AddTransientIKSUIDByFunc

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

AddTransientIKSUIDByFunc adds a type by a custom func

func AddTransientIKSUIDByFuncWithMetadata added in v0.1.217

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

AddTransientIKSUIDByFuncWithMetadata adds a type by a custom func

func AddTransientIKSUIDWithMetadata added in v0.1.217

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

AddTransientIKSUIDWithMetadata adds a type that implements IKSUID

func GetIKSUIDDefinition added in v0.1.217

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

GetIKSUIDDefinition returns that last definition registered that this container can provide

func GetIKSUIDDefinitions added in v0.1.217

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

GetIKSUIDDefinitions returns all definitions that this container can provide

func RemoveAllIKSUID

func RemoveAllIKSUID(builder *di.Builder)

RemoveAllIKSUID removes all IKSUID from the DI

Types

type IKSUID

type IKSUID interface {
	UUID() string
}

IKSUID ...

func GetIKSUIDFromContainer

func GetIKSUIDFromContainer(ctn di.Container) IKSUID

GetIKSUIDFromContainer alternative to SafeGetIKSUIDFromContainer but panics of object is not present

func GetManyIKSUIDFromContainer added in v0.1.181

func GetManyIKSUIDFromContainer(ctn di.Container) []IKSUID

GetManyIKSUIDFromContainer alternative to SafeGetManyIKSUIDFromContainer but panics of object is not present

func SafeGetIKSUIDFromContainer

func SafeGetIKSUIDFromContainer(ctn di.Container) (IKSUID, error)

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

func SafeGetManyIKSUIDFromContainer added in v0.1.181

func SafeGetManyIKSUIDFromContainer(ctn di.Container) ([]IKSUID, error)

SafeGetManyIKSUIDFromContainer 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