gtm

package
v1.0.151 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

GTM SDK 使用指南

  1. 添加环境变量,填写 common/config.go 和 demo_gtm_test.go 中的账号等关键信息

    环境变量

    export VOLC_ACCESSKEY=
    export VOLC_SECRETKEY=
    
  2. 运行 demo_gtm_test.go 中的测试代码

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultServiceInfo

func NewDefaultServiceInfo() *base.Client

Types

type Address

type Address struct {
	Active *bool   `form:"active" json:"active,omitempty"`
	TTL    *int64  `form:"ttl" json:"ttl,omitempty"`
	Type   *int64  `form:"type" json:"type,omitempty"`
	Value  *string `form:"value" json:"value,omitempty"`
	Weight *int64  `form:"weight" json:"weight,omitempty"`
}

type Caller

type Caller interface {
	Do(*http.Request) (*http.Response, error)
}

type Client

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

func NewClient

func NewClient(c Caller) *Client

func (*Client) CreateGTM

func (c *Client) CreateGTM(ctx context.Context, data *CreateGTMRequest) (*CreateGTMResponse, error)

func (*Client) CreateView

func (c *Client) CreateView(ctx context.Context, data *CreateViewRequest) (*CreateViewResponse, error)

func (*Client) DeleteGTM

func (c *Client) DeleteGTM(ctx context.Context, data *DeleteGTMRequest) error

func (*Client) DeleteView

func (c *Client) DeleteView(ctx context.Context, data *DeleteViewRequest) error

func (*Client) FindGTMs

func (c *Client) FindGTMs(ctx context.Context, data *FindGTMsRequest) (*FindGTMsResponse, error)

func (*Client) ListViews

func (c *Client) ListViews(ctx context.Context, data *ListViewsRequest) (ListViewsResponse, error)

func (*Client) ModifyGTM

func (c *Client) ModifyGTM(ctx context.Context, data *ModifyGTMRequest) error

func (*Client) ModifyProbe

func (c *Client) ModifyProbe(ctx context.Context, data *ModifyProbeRequest) error

func (*Client) ModifyView

func (c *Client) ModifyView(ctx context.Context, data *ModifyViewRequest) error

func (*Client) ReadGTM

func (c *Client) ReadGTM(ctx context.Context, data *ReadGTMRequest) (*ReadGTMResponse, error)

func (*Client) ReadProbe

func (c *Client) ReadProbe(ctx context.Context, data *ReadProbeRequest) (*ReadProbeResponse, error)

func (*Client) ReadView

func (c *Client) ReadView(ctx context.Context, data *ReadViewRequest) (*ReadViewResponse, error)

func (*Client) StartGTM

func (c *Client) StartGTM(ctx context.Context, data *StartGTMRequest) error

func (*Client) Stats

func (c *Client) Stats(ctx context.Context, data *StatsRequest) (*StatsResponse, error)

func (*Client) StopGTM

func (c *Client) StopGTM(ctx context.Context, data *StopGTMRequest) error

type Conf

type Conf struct {
	Host    string
	Name    string
	Region  string
	Timeout int
	Version string
}

func InitCommonParameter

func InitCommonParameter() *Conf

type CreateGTMRequest

type CreateGTMRequest struct {
	Version      *string `form:"-" json:"-"`
	XTopRegion   *string `form:"-" json:"-"`
	XTopService  *string `form:"-" json:"-"`
	AccMode      *string `form:"-" json:"-"`
	AddrType     *string `form:"-" json:"-"`
	AlarmOnly    *string `form:"-" json:"-"`
	Cname        *string `form:"-" json:"-"`
	Domain       *string `form:"-" json:"-"`
	FoMode       *string `form:"-" json:"-"`
	LastOperator *string `form:"-" json:"-"`
	LbMode       *string `form:"-" json:"-"`
	MaxServer    *string `form:"-" json:"-"`
	Owner        *string `form:"-" json:"-"`
	Platform     *string `form:"-" json:"-"`
	PrivInfo     *string `form:"-" json:"-"`
	SchedMode    *string `form:"-" json:"-"`
	TTL          *string `form:"-" json:"-"`
}

type CreateGTMResponse

type CreateGTMResponse struct {
	AccMode           *int64            `form:"acc_mode" json:"acc_mode,omitempty"`
	AddrType          *int64            `form:"addr_type" json:"addr_type,omitempty"`
	AlarmOnly         *bool             `form:"alarm_only" json:"alarm_only,omitempty"`
	Cname             *string           `form:"cname" json:"cname,omitempty"`
	ConfigurationCode *string           `form:"configuration_code" json:"configuration_code,omitempty"`
	Domain            *string           `form:"domain" json:"domain,omitempty"`
	FoMode            *int64            `form:"fo_mode" json:"fo_mode,omitempty"`
	ID                *string           `form:"id" json:"id,omitempty"`
	InstanceID        *string           `form:"instance_id" json:"instance_id,omitempty"`
	InstanceStatus    *int64            `form:"instance_status" json:"instance_status,omitempty"`
	LastOperator      *string           `form:"last_operator" json:"last_operator,omitempty"`
	LbMode            *int64            `form:"lb_mode" json:"lb_mode,omitempty"`
	MaxServer         *int64            `form:"max_server" json:"max_server,omitempty"`
	Owner             *string           `form:"owner" json:"owner,omitempty"`
	Platform          *string           `form:"platform" json:"platform,omitempty"`
	PoolStats         *string           `form:"pool_stats" json:"pool_stats,omitempty"`
	PrivInfo          *string           `form:"priv_info" json:"priv_info,omitempty"`
	Probe             *ProbeParam       `form:"probe" json:"probe,omitempty"`
	Remark            *string           `form:"remark" json:"remark,omitempty"`
	SchedMode         *int64            `form:"sched_mode" json:"sched_mode,omitempty"`
	State             *int64            `form:"state" json:"state,omitempty"`
	Tags              map[string]string `form:"tags" json:"tags,omitempty"`
	TsDel             *string           `form:"ts_del" json:"ts_del,omitempty"`
	TsExpired         *string           `form:"ts_expired" json:"ts_expired,omitempty"`
	TsMod             *string           `form:"ts_mod" json:"ts_mod,omitempty"`
	TsNew             *string           `form:"ts_new" json:"ts_new,omitempty"`
	TTL               *int64            `form:"ttl" json:"ttl,omitempty"`
	Views             map[string]View   `form:"views" json:"views,omitempty"`
}

type CreateViewRequest

type CreateViewRequest struct {
	Version     *string `form:"-" json:"-"`
	XTopRegion  *string `form:"-" json:"-"`
	XTopService *string `form:"-" json:"-"`
	ActPool     *string `form:"act_pool" json:"act_pool,omitempty"`
	ID          *string `form:"-" json:"-"`
	Line        *string `form:"line" json:"line,omitempty"`
	Name        *string `form:"name" json:"name,omitempty"`
	PriPool     *Pool   `form:"pri_pool" json:"pri_pool,omitempty"`
	SecPool     *Pool   `form:"sec_pool" json:"sec_pool,omitempty"`
	ViewID      *string `form:"view_id" json:"view_id,omitempty"`
	Weight      *int64  `form:"weight" json:"weight,omitempty"`
}

type CreateViewResponse

type CreateViewResponse struct {
	Version     *string `form:"Version" json:"Version,omitempty"`
	XTopRegion  *string `form:"XTopRegion" json:"XTopRegion,omitempty"`
	XTopService *string `form:"XTopService" json:"XTopService,omitempty"`
	ActPool     *string `form:"act_pool" json:"act_pool,omitempty"`
	ID          *string `form:"id" json:"id,omitempty"`
	Line        *string `form:"line" json:"line,omitempty"`
	Name        *string `form:"name" json:"name,omitempty"`
	PriPool     *Pool   `form:"pri_pool" json:"pri_pool,omitempty"`
	SecPool     *Pool   `form:"sec_pool" json:"sec_pool,omitempty"`
	ViewID      *string `form:"view_id" json:"view_id,omitempty"`
	Weight      *int64  `form:"weight" json:"weight,omitempty"`
}

type DeleteGTMRequest

type DeleteGTMRequest struct {
	Version     *string `form:"-" json:"-"`
	XTopRegion  *string `form:"-" json:"-"`
	XTopService *string `form:"-" json:"-"`
	ID          *string `form:"-" json:"-"`
}

type DeleteViewRequest

type DeleteViewRequest struct {
	Version     *string `form:"-" json:"-"`
	XTopRegion  *string `form:"-" json:"-"`
	XTopService *string `form:"-" json:"-"`
	ID          *string `form:"-" json:"-"`
	Vid         *string `form:"-" json:"-"`
}

type FindGTMsRequest

type FindGTMsRequest struct {
	Version     *string `form:"-" json:"-"`
	XTopRegion  *string `form:"-" json:"-"`
	XTopService *string `form:"-" json:"-"`
	Cname       *string `form:"-" json:"-"`
	DnsProv     *string `form:"-" json:"-"`
	Domain      *string `form:"-" json:"-"`
	PageNumber  *string `form:"-" json:"-"`
	PageSize    *string `form:"-" json:"-"`
	PrivInfo    *string `form:"-" json:"-"`
	State       *string `form:"-" json:"-"`
}

type FindGTMsResponse

type FindGTMsResponse struct {
	List  []GTM  `form:"list" json:"list,omitempty"`
	Total *int64 `form:"total" json:"total,omitempty"`
}

type GTM

type GTM struct {
	AccMode           *int64            `form:"acc_mode" json:"acc_mode,omitempty"`
	AddrType          *int64            `form:"addr_type" json:"addr_type,omitempty"`
	AlarmOnly         *bool             `form:"alarm_only" json:"alarm_only,omitempty"`
	Cname             *string           `form:"cname" json:"cname,omitempty"`
	ConfigurationCode *string           `form:"configuration_code" json:"configuration_code,omitempty"`
	Domain            *string           `form:"domain" json:"domain,omitempty"`
	FoMode            *int64            `form:"fo_mode" json:"fo_mode,omitempty"`
	ID                *string           `form:"id" json:"id,omitempty"`
	InstanceID        *string           `form:"instance_id" json:"instance_id,omitempty"`
	InstanceStatus    *int64            `form:"instance_status" json:"instance_status,omitempty"`
	LastOperator      *string           `form:"last_operator" json:"last_operator,omitempty"`
	LbMode            *int64            `form:"lb_mode" json:"lb_mode,omitempty"`
	MaxServer         *int64            `form:"max_server" json:"max_server,omitempty"`
	Owner             *string           `form:"owner" json:"owner,omitempty"`
	Platform          *string           `form:"platform" json:"platform,omitempty"`
	PoolStats         *string           `form:"pool_stats" json:"pool_stats,omitempty"`
	PrivInfo          *string           `form:"priv_info" json:"priv_info,omitempty"`
	Probe             *ProbeParam       `form:"probe" json:"probe,omitempty"`
	Remark            *string           `form:"remark" json:"remark,omitempty"`
	SchedMode         *int64            `form:"sched_mode" json:"sched_mode,omitempty"`
	State             *int64            `form:"state" json:"state,omitempty"`
	Tags              map[string]string `form:"tags" json:"tags,omitempty"`
	TsDel             *string           `form:"ts_del" json:"ts_del,omitempty"`
	TsExpired         *string           `form:"ts_expired" json:"ts_expired,omitempty"`
	TsMod             *string           `form:"ts_mod" json:"ts_mod,omitempty"`
	TsNew             *string           `form:"ts_new" json:"ts_new,omitempty"`
	TTL               *int64            `form:"ttl" json:"ttl,omitempty"`
	Views             map[string]View   `form:"views" json:"views,omitempty"`
}

type ListViewsRequest

type ListViewsRequest struct {
	Version     *string `form:"-" json:"-"`
	XTopRegion  *string `form:"-" json:"-"`
	XTopService *string `form:"-" json:"-"`
	ID          *string `form:"-" json:"-"`
	Line        *string `form:"-" json:"-"`
	Name        *string `form:"-" json:"-"`
}

type ListViewsResponse

type ListViewsResponse []View

type ModifyGTMRequest

type ModifyGTMRequest struct {
	Version      *string `form:"-" json:"-"`
	XTopRegion   *string `form:"-" json:"-"`
	XTopService  *string `form:"-" json:"-"`
	AccMode      *string `form:"-" json:"-"`
	AddrType     *string `form:"-" json:"-"`
	AlarmOnly    *string `form:"-" json:"-"`
	Cname        *string `form:"-" json:"-"`
	Domain       *string `form:"-" json:"-"`
	FoMode       *string `form:"-" json:"-"`
	ID           *string `form:"-" json:"-"`
	LastOperator *string `form:"-" json:"-"`
	LbMode       *string `form:"-" json:"-"`
	MaxServer    *string `form:"-" json:"-"`
	Owner        *string `form:"-" json:"-"`
	Platform     *string `form:"-" json:"-"`
	PrivInfo     *string `form:"-" json:"-"`
	SchedMode    *string `form:"-" json:"-"`
	TTL          *string `form:"-" json:"-"`
}

type ModifyProbeRequest

type ModifyProbeRequest struct {
	Version     *string           `form:"-" json:"-"`
	XTopRegion  *string           `form:"-" json:"-"`
	XTopService *string           `form:"-" json:"-"`
	Count       *int64            `form:"count" json:"count,omitempty"`
	Enable      *bool             `form:"enable" json:"enable,omitempty"`
	FailCount   *int64            `form:"fail_count" json:"fail_count,omitempty"`
	Host        *string           `form:"host" json:"host,omitempty"`
	HttpBody    *string           `form:"http_body" json:"http_body,omitempty"`
	HttpHeader  map[string]string `form:"http_header" json:"http_header,omitempty"`
	HttpMethod  *string           `form:"http_method" json:"http_method,omitempty"`
	ID          *string           `form:"-" json:"-"`
	Interval    *int64            `form:"interval" json:"interval,omitempty"`
	Port        *int64            `form:"port" json:"port,omitempty"`
	Proto       *string           `form:"proto" json:"proto,omitempty"`
	Sni         *string           `form:"sni" json:"sni,omitempty"`
	StCodeMin   *int64            `form:"st_code_min" json:"st_code_min,omitempty"`
	Timeout     *string           `form:"timeout" json:"timeout,omitempty"`
	Url         *string           `form:"url" json:"url,omitempty"`
}

type ModifyViewRequest

type ModifyViewRequest struct {
	Version     *string `form:"-" json:"-"`
	XTopRegion  *string `form:"-" json:"-"`
	XTopService *string `form:"-" json:"-"`
	ActPool     *string `form:"act_pool" json:"act_pool,omitempty"`
	ID          *string `form:"-" json:"-"`
	Line        *string `form:"line" json:"line,omitempty"`
	Name        *string `form:"name" json:"name,omitempty"`
	PriPool     *Pool   `form:"pri_pool" json:"pri_pool,omitempty"`
	SecPool     *Pool   `form:"sec_pool" json:"sec_pool,omitempty"`
	Vid         *string `form:"-" json:"-"`
	ViewID      *string `form:"view_id" json:"view_id,omitempty"`
	Weight      *int64  `form:"weight" json:"weight,omitempty"`
}

type Pool

type Pool struct {
	ActThresh *int64    `form:"act_thresh" json:"act_thresh,omitempty"`
	Active    *bool     `form:"active" json:"active,omitempty"`
	AddrType  *string   `form:"addr_type" json:"addr_type,omitempty"`
	Addrs     []Address `form:"addrs" json:"addrs,omitempty"`
	Line      *string   `form:"line" json:"line,omitempty"`
	Weight    *int64    `form:"weight" json:"weight,omitempty"`
}

type ProbeParam

type ProbeParam struct {
	Version     *string           `form:"Version" json:"Version,omitempty"`
	XTopRegion  *string           `form:"XTopRegion" json:"XTopRegion,omitempty"`
	XTopService *string           `form:"XTopService" json:"XTopService,omitempty"`
	Count       *int64            `form:"count" json:"count,omitempty"`
	Enable      *bool             `form:"enable" json:"enable,omitempty"`
	FailCount   *int64            `form:"fail_count" json:"fail_count,omitempty"`
	Host        *string           `form:"host" json:"host,omitempty"`
	HttpBody    *string           `form:"http_body" json:"http_body,omitempty"`
	HttpHeader  map[string]string `form:"http_header" json:"http_header,omitempty"`
	HttpMethod  *string           `form:"http_method" json:"http_method,omitempty"`
	ID          *string           `form:"id" json:"id,omitempty"`
	Interval    *int64            `form:"interval" json:"interval,omitempty"`
	Port        *int64            `form:"port" json:"port,omitempty"`
	Proto       *string           `form:"proto" json:"proto,omitempty"`
	Sni         *string           `form:"sni" json:"sni,omitempty"`
	StCodeMin   *int64            `form:"st_code_min" json:"st_code_min,omitempty"`
	Timeout     *string           `form:"timeout" json:"timeout,omitempty"`
	Url         *string           `form:"url" json:"url,omitempty"`
}

type ReadGTMRequest

type ReadGTMRequest struct {
	Version     *string `form:"-" json:"-"`
	XTopRegion  *string `form:"-" json:"-"`
	XTopService *string `form:"-" json:"-"`
	ID          *string `form:"-" json:"-"`
}

type ReadGTMResponse

type ReadGTMResponse struct {
	AccMode           *int64            `form:"acc_mode" json:"acc_mode,omitempty"`
	AddrType          *int64            `form:"addr_type" json:"addr_type,omitempty"`
	AlarmOnly         *bool             `form:"alarm_only" json:"alarm_only,omitempty"`
	Cname             *string           `form:"cname" json:"cname,omitempty"`
	ConfigurationCode *string           `form:"configuration_code" json:"configuration_code,omitempty"`
	Domain            *string           `form:"domain" json:"domain,omitempty"`
	FoMode            *int64            `form:"fo_mode" json:"fo_mode,omitempty"`
	ID                *string           `form:"id" json:"id,omitempty"`
	InstanceID        *string           `form:"instance_id" json:"instance_id,omitempty"`
	InstanceStatus    *int64            `form:"instance_status" json:"instance_status,omitempty"`
	LastOperator      *string           `form:"last_operator" json:"last_operator,omitempty"`
	LbMode            *int64            `form:"lb_mode" json:"lb_mode,omitempty"`
	MaxServer         *int64            `form:"max_server" json:"max_server,omitempty"`
	Owner             *string           `form:"owner" json:"owner,omitempty"`
	Platform          *string           `form:"platform" json:"platform,omitempty"`
	PoolStats         *string           `form:"pool_stats" json:"pool_stats,omitempty"`
	PrivInfo          *string           `form:"priv_info" json:"priv_info,omitempty"`
	Probe             *ProbeParam       `form:"probe" json:"probe,omitempty"`
	Remark            *string           `form:"remark" json:"remark,omitempty"`
	SchedMode         *int64            `form:"sched_mode" json:"sched_mode,omitempty"`
	State             *int64            `form:"state" json:"state,omitempty"`
	Tags              map[string]string `form:"tags" json:"tags,omitempty"`
	TsDel             *string           `form:"ts_del" json:"ts_del,omitempty"`
	TsExpired         *string           `form:"ts_expired" json:"ts_expired,omitempty"`
	TsMod             *string           `form:"ts_mod" json:"ts_mod,omitempty"`
	TsNew             *string           `form:"ts_new" json:"ts_new,omitempty"`
	TTL               *int64            `form:"ttl" json:"ttl,omitempty"`
	Views             map[string]View   `form:"views" json:"views,omitempty"`
}

type ReadProbeRequest

type ReadProbeRequest struct {
	Version     *string `form:"-" json:"-"`
	XTopRegion  *string `form:"-" json:"-"`
	XTopService *string `form:"-" json:"-"`
	ID          *string `form:"-" json:"-"`
}

type ReadProbeResponse

type ReadProbeResponse struct {
	Version     *string           `form:"Version" json:"Version,omitempty"`
	XTopRegion  *string           `form:"XTopRegion" json:"XTopRegion,omitempty"`
	XTopService *string           `form:"XTopService" json:"XTopService,omitempty"`
	Count       *int64            `form:"count" json:"count,omitempty"`
	Enable      *bool             `form:"enable" json:"enable,omitempty"`
	FailCount   *int64            `form:"fail_count" json:"fail_count,omitempty"`
	Host        *string           `form:"host" json:"host,omitempty"`
	HttpBody    *string           `form:"http_body" json:"http_body,omitempty"`
	HttpHeader  map[string]string `form:"http_header" json:"http_header,omitempty"`
	HttpMethod  *string           `form:"http_method" json:"http_method,omitempty"`
	ID          *string           `form:"id" json:"id,omitempty"`
	Interval    *int64            `form:"interval" json:"interval,omitempty"`
	Port        *int64            `form:"port" json:"port,omitempty"`
	Proto       *string           `form:"proto" json:"proto,omitempty"`
	Sni         *string           `form:"sni" json:"sni,omitempty"`
	StCodeMin   *int64            `form:"st_code_min" json:"st_code_min,omitempty"`
	Timeout     *string           `form:"timeout" json:"timeout,omitempty"`
	Url         *string           `form:"url" json:"url,omitempty"`
}

type ReadViewRequest

type ReadViewRequest struct {
	Version     *string `form:"-" json:"-"`
	XTopRegion  *string `form:"-" json:"-"`
	XTopService *string `form:"-" json:"-"`
	ID          *string `form:"-" json:"-"`
	Vid         *string `form:"-" json:"-"`
}

type ReadViewResponse

type ReadViewResponse struct {
	Version     *string `form:"Version" json:"Version,omitempty"`
	XTopRegion  *string `form:"XTopRegion" json:"XTopRegion,omitempty"`
	XTopService *string `form:"XTopService" json:"XTopService,omitempty"`
	ActPool     *string `form:"act_pool" json:"act_pool,omitempty"`
	ID          *string `form:"id" json:"id,omitempty"`
	Line        *string `form:"line" json:"line,omitempty"`
	Name        *string `form:"name" json:"name,omitempty"`
	PriPool     *Pool   `form:"pri_pool" json:"pri_pool,omitempty"`
	SecPool     *Pool   `form:"sec_pool" json:"sec_pool,omitempty"`
	Vid         *string `form:"vid" json:"vid,omitempty"`
	ViewID      *string `form:"view_id" json:"view_id,omitempty"`
	Weight      *int64  `form:"weight" json:"weight,omitempty"`
}

type StartGTMRequest

type StartGTMRequest struct {
	Version     *string `form:"-" json:"-"`
	XTopRegion  *string `form:"-" json:"-"`
	XTopService *string `form:"-" json:"-"`
	ID          *string `form:"-" json:"-"`
}

type StatsRequest

type StatsRequest struct {
	Version     *string `form:"-" json:"-"`
	XTopRegion  *string `form:"-" json:"-"`
	XTopService *string `form:"-" json:"-"`
}

type StatsResponse

type StatsResponse struct {
	AlarmOnlys *int64           `form:"alarm_onlys" json:"alarm_onlys,omitempty"`
	Lines      map[string]int64 `form:"lines" json:"lines,omitempty"`
	Noview     *int64           `form:"noview" json:"noview,omitempty"`
	Platforms  map[string]int64 `form:"platforms" json:"platforms,omitempty"`
	PriAddrs   *int64           `form:"pri_addrs" json:"pri_addrs,omitempty"`
	PriPools   *int64           `form:"pri_pools" json:"pri_pools,omitempty"`
	Running    *int64           `form:"running" json:"running,omitempty"`
	SchedModes map[string]int64 `form:"sched_modes" json:"sched_modes,omitempty"`
	SecAddrs   *int64           `form:"sec_addrs" json:"sec_addrs,omitempty"`
	SecPools   *int64           `form:"sec_pools" json:"sec_pools,omitempty"`
	Total      *int64           `form:"total" json:"total,omitempty"`
	Views      *int64           `form:"views" json:"views,omitempty"`
}

type StopGTMRequest

type StopGTMRequest struct {
	Version     *string `form:"-" json:"-"`
	XTopRegion  *string `form:"-" json:"-"`
	XTopService *string `form:"-" json:"-"`
	ID          *string `form:"-" json:"-"`
}

type TOPError

type TOPError struct {
	Code      string `form:"Code" json:"Code"`
	CodeN     int64  `form:"CodeN" json:"CodeN"`
	Message   string `form:"Message" json:"Message"`
	RequestID string `form:"RequestId" json:"RequestId"`
}

func NewTOPError

func NewTOPError(respMeta *common.TopRespMeta) *TOPError

func (*TOPError) Error

func (err *TOPError) Error() string

func (*TOPError) GetCode

func (err *TOPError) GetCode() int64

type View

type View struct {
	Version     *string `form:"Version" json:"Version,omitempty"`
	XTopRegion  *string `form:"XTopRegion" json:"XTopRegion,omitempty"`
	XTopService *string `form:"XTopService" json:"XTopService,omitempty"`
	ActPool     *string `form:"act_pool" json:"act_pool,omitempty"`
	ID          *string `form:"id" json:"id,omitempty"`
	Line        *string `form:"line" json:"line,omitempty"`
	Name        *string `form:"name" json:"name,omitempty"`
	PriPool     *Pool   `form:"pri_pool" json:"pri_pool,omitempty"`
	SecPool     *Pool   `form:"sec_pool" json:"sec_pool,omitempty"`
	Vid         *string `form:"vid" json:"vid,omitempty"`
	ViewID      *string `form:"view_id" json:"view_id,omitempty"`
	Weight      *int64  `form:"weight" json:"weight,omitempty"`
}

type VolcCaller

type VolcCaller struct {
	Volc *base.Client
}

func NewVolcCaller

func NewVolcCaller() *VolcCaller

func (*VolcCaller) Do

func (c *VolcCaller) Do(r *http.Request) (*http.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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