Documentation
¶
Index ¶
- type ApiClient
- func (client *ApiClient) GenerateToken() (string, error)
- func (client *ApiClient) Get(path string, params *url.Values) (*http.Response, error)
- func (client *ApiClient) IterGet(path string, params *url.Values) iter.Seq2[*IterResult, error]
- func (client *ApiClient) Post(path string, params *url.Values, contentType string, body io.Reader) (*http.Response, error)
- type ApiClientOption
- type IterResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type ApiClient struct {
// contains filtered or unexported fields
}
func NewApiClient ¶
func NewApiClient( apiKey string, optionFns ...ApiClientOption, ) *ApiClient
func (*ApiClient) GenerateToken ¶
type ApiClientOption ¶
type ApiClientOption func(*ApiClient)
func WithTenantId ¶
func WithTenantId(tenantId int) ApiClientOption
WithTenantId allows configuring the tenant id.
type IterResult ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.