client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultScheme is default http scheme
	DefaultScheme = "http"
	// DefaultRegion is default region
	DefaultRegion = "cn-north-1"
	// DefaultSdkVersion will be used in business framework.
	DefaultSdkVersion = "2021-03-03"
)

Variables

This section is empty.

Functions

func NewServiceInfo

func NewServiceInfo() *base.ServiceInfo

NewServiceInfo return base serviceInfo.

Types

type Client

type Client interface {
	CommonHandler(action string, query url.Values, body string, resp interface{}) (int, error)
}

func NewBaseClient

func NewBaseClient(sdkVersion string, serviceInfo *base.ServiceInfo) Client

NewBaseClient return a base baseClient

func NewFakeClient added in v0.1.1

func NewFakeClient() Client

NewFakeClient return a fake client

type ErrorData

type ErrorData struct {
	Code    string            `json:"Code"`
	Message string            `json:"Message"`
	Data    map[string]string `json:"Data"`
}

ErrorData is the message in response body

func (*ErrorData) Error

func (data *ErrorData) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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