Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
Downloads the file at given url to the path specified, or fails if it can't.
Types ¶
type Client ¶
type Client interface { Post(uri string, body any) ([]byte, error) Get(uri string) ([]byte, error) }
func NewClient ¶
func NewClient(opts ...ClientOption) Client
type ClientOption ¶
type ClientOption func(*client)
func WithBaseUrl ¶
func WithBaseUrl(baseUrl string) ClientOption
func WithHttpClient ¶
func WithHttpClient(hc HttpClient) ClientOption
Click to show internal directories.
Click to hide internal directories.