Documentation ¶
Index ¶
- func Delete[T any](url string, opts ...*RequestOptions) (data T, err error)
- func Get[T any](url string, opts ...*RequestOptions) (data T, err error)
- func Patch[T any](url string, opts ...*RequestOptions) (data T, err error)
- func Post[T any](url string, opts ...*RequestOptions) (data T, err error)
- func Put[T any](url string, opts ...*RequestOptions) (data T, err error)
- func Request[T any](method, url string, opts ...*RequestOptions) (data T, err error)
- type Client
- type Options
- type RequestOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client[T any] interface { Get(uri string, opts ...*RequestOptions) (data T, err error) Post(uri string, opts ...*RequestOptions) (data T, err error) Patch(uri string, opts ...*RequestOptions) (data T, err error) Put(uri string, opts ...*RequestOptions) (data T, err error) Delete(uri string, opts ...*RequestOptions) (data T, err error) Request(method, uri string, opts ...*RequestOptions) (data T, err error) }
Click to show internal directories.
Click to hide internal directories.