responses

package
v1.62.508 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 15 Imported by: 810

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(response AcsResponse, httpResponse *http.Response, format string) (err error)

Unmarshal object from http response body to target Response

Types

type AcsResponse

type AcsResponse interface {
	IsSuccess() bool
	GetHttpStatus() int
	GetHttpHeaders() map[string][]string
	GetHttpContentString() string
	GetHttpContentBytes() []byte
	GetOriginHttpResponse() *http.Response
	// contains filtered or unexported methods
}

type BaseResponse

type BaseResponse struct {
	// contains filtered or unexported fields
}

func (*BaseResponse) GetHttpContentBytes

func (baseResponse *BaseResponse) GetHttpContentBytes() []byte

func (*BaseResponse) GetHttpContentString

func (baseResponse *BaseResponse) GetHttpContentString() string

func (*BaseResponse) GetHttpHeaders

func (baseResponse *BaseResponse) GetHttpHeaders() map[string][]string

func (*BaseResponse) GetHttpStatus

func (baseResponse *BaseResponse) GetHttpStatus() int

func (*BaseResponse) GetOriginHttpResponse

func (baseResponse *BaseResponse) GetOriginHttpResponse() *http.Response

func (*BaseResponse) IsSuccess

func (baseResponse *BaseResponse) IsSuccess() bool

func (*BaseResponse) String

func (baseResponse *BaseResponse) String() string

type CommonResponse

type CommonResponse struct {
	*BaseResponse
}

func NewCommonResponse

func NewCommonResponse() (response *CommonResponse)

Jump to

Keyboard shortcuts

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