api

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Region https://www.volcengine.com/docs/6369/67268
	Region = "cn-beijing"

	// Algorithm https://www.volcengine.com/docs/6369/67270
	Algorithm = "HMAC-SHA256"
)

Variables

This section is empty.

Functions

func Exec

func Exec[T any](r *resty.Request, method, addr, path, action, version, region, service string, args ...any) (t T, _ error)

Types

type Client

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

func NewClient

func NewClient(account config.Account) *Client

func (*Client) QueryBalanceAcct

func (c *Client) QueryBalanceAcct() (*QueryBalanceAcctData, error)

func (*Client) R

func (c *Client) R() *resty.Request

type QueryBalanceAcctData

type QueryBalanceAcctData struct {
	AccountID        int    `json:"AccountID"`
	ArrearsBalance   string `json:"ArrearsBalance"`
	AvailableBalance string `json:"AvailableBalance"`
	CashBalance      string `json:"CashBalance"`
	CreditLimit      string `json:"CreditLimit"`
	FreezeAmount     string `json:"FreezeAmount"`
}

Jump to

Keyboard shortcuts

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