Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClientInterface ¶
type HTTPClientInterface interface {
R() RequestInterface
}
HTTPClientInterface represents the HTTP client interface
type PaginatedResponse ¶
PaginatedResponse represents a response that supports pagination
type RequestInterface ¶
type RequestInterface interface {
SetContext(ctx context.Context) RequestInterface
SetResult(result any) RequestInterface
SetError(err any) RequestInterface
SetBody(body any) RequestInterface
SetQueryParam(param, value string) RequestInterface
Get(url string) (ResponseInterface, error)
Post(url string) (ResponseInterface, error)
}
RequestInterface represents a request interface
type ResponseInterface ¶
ResponseInterface represents a response interface
Click to show internal directories.
Click to hide internal directories.