Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsApiKeyMinifierEnabled ¶
func IsApiKeyMinifierEnabled() bool
IsApiKeyMinifierEnabled returns whether the API key minifier is enabled.
func MinifyApiKeys ¶
func MinifyApiKeys(input interface{}) (interface{}, error)
MinifyApiKeys recursively minifies the keys of a given input based on the predefined key mapping.
Parameters: - input: An interface{} that must be either a struct, a map[string]interface{}, or a nested combination.
Returns: - map[string]interface{}: A map with minified keys at all levels. - error: An error if the input is not a valid structure or contains unsupported types.
func SetupApiKeyMinifierConfig ¶
SetupApiKeyMinifierConfig configures the API key minifier.
Parameters: - isEnabled: A boolean indicating whether the API key minifier should be enabled. - keymap: A pointer to a sync.Map containing the original keys and their minified counterparts.
Types ¶
This section is empty.