util

package
v0.0.0-...-dd74ac0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALGORITHM_MD5 types.Bitmask16 = 1 << iota
	ALGORITHM_SHA1
	ALGORITHM_SHA224
	ALGORITHM_SHA256
	ALGORITHM_SHA384
	ALGORITHM_SHA512
	ALGORITHM_SHA3224
	ALGORITHM_SHA3256
	ALGORITHM_SHA3384
	ALGORITHM_SHA3512
)

Variables

This section is empty.

Functions

func ComputeHash

func ComputeHash(bytes []byte, algorithm types.Bitmask16) []byte

func ComputeHashPtrString

func ComputeHashPtrString(str *string, algorithm types.Bitmask16) []byte

func ComputeHashString

func ComputeHashString(str string, algorithm types.Bitmask16) []byte

func EncodeToHexString

func EncodeToHexString(bytes []byte) string

func EncodeToStringByBase64AsURLEncoding

func EncodeToStringByBase64AsURLEncoding(bytes []byte) string

func FieldNumericToString

func FieldNumericToString(nameField string, fieldId interface{}) (string, error)

func GetJSONResponseWithRequestKeyAsBytes

func GetJSONResponseWithRequestKeyAsBytes(fromRequest *map[string]interface{}, toResponse *map[string]interface{}) ([]byte, error)

func GetJSONResponseWithRequestKeyAsMap

func GetJSONResponseWithRequestKeyAsMap(fromRequest *map[string]interface{}, toResponse *map[string]interface{}) (*map[string]interface{}, error)

func GetMapFromBytesOfMassage

func GetMapFromBytesOfMassage(bytesMessage *[]byte) (map[string]interface{}, error)

func GetRequestKey

func GetRequestKey(dict *map[string]interface{}) (*string, error)

func SetMapToBytesOfMassage

func SetMapToBytesOfMassage(dict *map[string]interface{}) (*[]byte, error)

func SetRequestKey

func SetRequestKey(requestKey string, dict *map[string]interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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