get_regions

package
v7.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

获取所有区域信息

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Region

type Region struct {
	Id          string // 区域 ID
	Description string // 区域描述信息
}

区域信息

func (*Region) MarshalJSON

func (j *Region) MarshalJSON() ([]byte, error)

func (*Region) UnmarshalJSON

func (j *Region) UnmarshalJSON(data []byte) error

type Regions

type Regions = []Region

区域列表

type RegionsInfo

type RegionsInfo = Response

所有区域信息

type Request

type Request struct {
	Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}

调用 API 所用的请求

type Response

type Response struct {
	Regions Regions // 区域列表
}

获取 API 所用的响应

func (*Response) MarshalJSON

func (j *Response) MarshalJSON() ([]byte, error)

func (*Response) UnmarshalJSON

func (j *Response) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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