alibaba

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Request

func Request(rq *ReqeustParam) (any, error)

Types

type EndpointBody

type EndpointBody struct {
	Endpoints struct {
		Endpoint []EndpointItem
	}
	RequestId string
	Success   bool
}

type EndpointItem

type EndpointItem struct {
	Id        string
	Endpoint  string
	Namespace string
	Protocols struct {
		Protocols []string
	}
	SerivceCode string
	Type        string
}

type ReqeustParam

type ReqeustParam struct {
	Service   string `note:"产品名称"`
	Version   string `note:"接口版本"`
	Action    string `note:"接口名称"`
	Query     any    `note:"结构化数据"`
	Payload   any    `note:"结构化数据"`
	RegionId  string `note:"资源所在区域"`
	Endpoint  string `note:"指定接口域名"`
	SecretId  string `note:"访问密钥 Id"`
	SecretKey string `note:"访问密钥 Key"`
}

type ResponseData

type ResponseData struct {
	Response any
}

Jump to

Keyboard shortcuts

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