Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpJSON ¶
DumpJSON marshals a value to a JSON string, if it fails, it will return an empty string.
func GenerateCacheKey ¶
func GenerateCacheKey(req any, functionName string, softTTL, hardTTL time.Duration, version string) (string, error)
GenerateCacheKey generates a cache key for a given function name and request encoded in SHA512. With the following format: SHA512(functionName:marshalledRequest:softTTL:hardTTL)
func GetFunctionName ¶
GetFunctionName uses reflect to retrieve the name of the function passed into the higher-order function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.