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)