client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

This file is auto-generated, don't edit it. Thanks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesLength added in v0.0.3

func BytesLength(src []byte) (_result *int64)

func Compress added in v0.0.3

func Compress(src []byte, compressType *string) (_result []byte, _err error)

Description:

Compress data by specified compress type, use isCompressorAvailable to check if the compress type is supported.

@param src - the data to be compressed

@param compressType - the compress type

@return the compressed data

@throws error if the compress type is not supported or the compress failed

func IsCompressorAvailable added in v0.0.3

func IsCompressorAvailable(compressType *string) (_result *bool)

func IsDecompressorAvailable added in v0.0.3

func IsDecompressorAvailable(compressType *string) (_result *bool)

func ReadAndUncompressBlock

func ReadAndUncompressBlock(stream io.Reader, compressType *string, bodyRawSize *string) (_result io.Reader, _err error)

Description:

Read data from a readable stream, and parse it by JSON format

@param stream - the readable stream

@return the parsed result

Types

This section is empty.

Jump to

Keyboard shortcuts

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