Versions in this module Expand all Collapse all v0 v0.0.6 Jul 12, 2024 v0.0.5 Feb 27, 2024 v0.0.4 Jan 8, 2024 v0.0.3 Jan 8, 2024 v0.0.2 Jan 7, 2024 v0.0.1 Jan 6, 2024 Changes in this version + type BaseResponse struct + Code int + Data T + Error bool + Key string + Message string + func (r *BaseResponse[T]) FromJsonReader(reader io.Reader) error + func (r *BaseResponse[T]) FromJsonString(s string) error + func (r *BaseResponse[T]) ToJsonString() string + type Client struct + Domain string + Path string + Scheme string + func NewDefaultClient(domain string) *Client + func (c *Client) GetCredential() CredentialIface + func (c *Client) Init() *Client + func (c *Client) Send(service, method string, params interface{}, resp Response) error + func (c *Client) WithCredential(cred CredentialIface) *Client + func (c *Client) WithPath(path string) *Client + func (c *Client) WithScheme(scheme string) *Client + func (c *Client) WithSecretId(secretId, secretKey string) *Client + type Config struct + type Credential struct + SecretId string + SecretKey string + Token string + func NewCredential(secretId, secretKey string) *Credential + func NewTokenCredential(secretId, secretKey, token string) *Credential + func (c *Credential) GetCredential() (string, string, string) + func (c *Credential) GetSecretId() string + func (c *Credential) GetSecretKey() string + func (c *Credential) GetToken() string + type CredentialIface interface + GetCredential func() (string, string, string) + GetSecretId func() string + GetSecretKey func() string + GetToken func() string + type Response interface + FromJsonReader func(reader io.Reader) error + FromJsonString func(s string) error + ToJsonString func() string