Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalClientOptions []ClientOption
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options ...ClientOption) (*Client, error)
NewClient creates a new client.
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is an option for configuring a Client.
func WithHTTPClient ¶
func WithHTTPClient(c *http.Client) ClientOption
WithHTTPClient returns a ClientOption that uses the provided http.Client.
func WithLogger ¶
func WithLogger(logger *slog.Logger) ClientOption
WithLogger returns a ClientOption that uses the provided logger.
func WithTempDir ¶
func WithTempDir(tempDir string) ClientOption
WithTempDir returns a ClientOption that uses the provided temp dir.
Click to show internal directories.
Click to hide internal directories.