Documentation
¶
Index ¶
- func Create[T any](ctx context.Context, c *Client, path string, body any) (*T, error)
- func Delete(ctx context.Context, c *Client, path string) error
- func Get[T any](ctx context.Context, c *Client, path string) (*T, error)
- func IsNotFound(err error) bool
- func List[T any](ctx context.Context, c *Client, basePath string) ([]T, error)
- func Patch[T any](ctx context.Context, c *Client, path string, body any) (*T, error)
- func PathEscape(s string) string
- func Update[T any](ctx context.Context, c *Client, path string, body any) (*T, error)
- type APIError
- type Client
- type SingleValueResponse
- type TableResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
func PathEscape ¶
Types ¶
type Client ¶
type SingleValueResponse ¶
type SingleValueResponse[T any] struct { Data T `json:"data"` }
Single-value response wrapper used by most endpoints.
type TableResponse ¶
Table response wrapper used by list endpoints.
Click to show internal directories.
Click to hide internal directories.