Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RestClient ¶
type RestClient interface { RestClientDelete RestClientGet RestClientPost RestClientPut WithAuthentication(tokenSource oauth2.TokenSource) RestClient WithHeader(key, value string) RestClient WithTransport(tr http.RoundTripper) RestClient WithTimeout(timeout time.Duration) RestClient }
func New ¶
func New() RestClient
func NewWithClient ¶
func NewWithClient(client *http.Client) RestClient
type RestClientDelete ¶ added in v2.4.2
type RestClientGet ¶ added in v2.4.2
type RestClientPost ¶ added in v2.4.2
type RestClientPost interface { Post(ctx context.Context, url string) (*http.Response, error) PostJson(ctx context.Context, url string, body interface{}) (*http.Response, error) PostMultipart(ctx context.Context, url string, multipartWriter func(writer *multipart.Writer) error) (*http.Response, error) PostMultipartChunked(ctx context.Context, url string, multipartWriter func(writer *multipart.Writer)) (*http.Response, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.