Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ReflectTypeGenerateUUID = reflect.TypeOf(GenerateUUID(nil))
ReflectTypeGenerateUUID used when your service claims to implement GenerateUUID
Functions ¶
func AddGenerateUUIDFunc ¶
func AddGenerateUUIDFunc(builder *di.Builder, fnc GenerateUUID)
AddSingletonGenerateUUIDFunc adds a func to the DI
func RemoveAllGenerateUUIDFunc ¶
RemoveAllGenerateUUIDFunc removes all GenerateUUID functions from the DI
Types ¶
type GenerateUUID ¶
type GenerateUUID func() string
GenerateUUID ...
func GetGenerateUUIDFromContainer ¶
func GetGenerateUUIDFromContainer(ctn di.Container) GenerateUUID
GetGenerateUUIDFromContainer alternative to SafeGetGenerateUUIDFromContainer but panics of object is not present
func GetManyGenerateUUIDFromContainer ¶
func GetManyGenerateUUIDFromContainer(ctn di.Container) []GenerateUUID
GetManyGenerateUUIDFromContainer alternative to SafeGetManyGenerateUUIDFromContainer but panics of object is not present
func SafeGetGenerateUUIDFromContainer ¶
func SafeGetGenerateUUIDFromContainer(ctn di.Container) (GenerateUUID, error)
SafeGetGenerateUUIDFromContainer trys to get the object by type, will not panic, returns nil and error
func SafeGetManyGenerateUUIDFromContainer ¶
func SafeGetManyGenerateUUIDFromContainer(ctn di.Container) ([]GenerateUUID, error)
SafeGetManyGenerateUUIDFromContainer trys to get the object by type, will not panic, returns nil and error
Click to show internal directories.
Click to hide internal directories.