lambda

package
v0.1.323 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

func RemoveAllGenerateUUIDFunc(builder *di.Builder)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL