common

package
v0.4.28 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(baseUrl string, service string, optFns ...OptionsFunc) (*Client, error)

func (*Client) DoRequest

func (c *Client) DoRequest(req *resty.Request) (*resty.Response, error)

func (*Client) DoRequestWithResult

func (c *Client) DoRequestWithResult(req *resty.Request, res any) (*resty.Response, error)

func (*Client) NewRequest

func (c *Client) NewRequest(method string, path string, params any) (*resty.Request, error)

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration) *Client

type Options

type Options struct {
	AccessKeyId     string
	SecretAccessKey string
}

type OptionsFunc

type OptionsFunc func(*Options)

func WithAkSk

func WithAkSk(ak, sk string) OptionsFunc

Jump to

Keyboard shortcuts

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