Documentation ¶
Index ¶
- func GunzipStringToObject(compressed string, obj interface{}) error
- func GzipObjectToString(obj interface{}) (string, error)
- func NewUnsupportedCompressionTypeError(t string) error
- func UnZstdStringToObject(encoded string, obj interface{}) error
- func ZstdObjectToString(obj interface{}) (string, error)
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GunzipStringToObject ¶
GunzipStringToObject decode the compressed string with base64, decompress it with gzip, unmarshal it into obj
func GzipObjectToString ¶
GzipObjectToString marshal object into json, compress it with gzip, encode the result with base64
func NewUnsupportedCompressionTypeError ¶
NewUnsupportedCompressionTypeError create a new unsupported compression type error
func UnZstdStringToObject ¶
UnZstdStringToObject decodes the compressed string with base64, decompresses it with zstd, and unmarshals it. obj must be a pointer so that it can be updated.
func ZstdObjectToString ¶
ZstdObjectToString marshals the object into json, compress it with zstd, encode the result with base64.
Types ¶
Click to show internal directories.
Click to hide internal directories.