Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages communication with Immich server.
func NewWithHTTPClient ¶
NewWithHTTPClient returns a new Immich http client.
func (*Client) Do ¶
Do sends an API request and returns the API response. If the HTTP response is in the 2xx range, unmarshal the response body into value.
func (*Client) NewRequest ¶
func (c *Client) NewRequest(ctx context.Context, method string, res *url.URL, body any) (*http.Request, error)
NewRequest creates an API requrest. A relative URL can be provided in res URL instance. If specified, the value pointed to by body JSON encoded and included in as the request body.
Click to show internal directories.
Click to hide internal directories.