Documentation ¶
Index ¶
- type AfterErrorContext
- type AfterSuccessContext
- type BeforeRequestContext
- type FailEarly
- type HTTPClient
- type HookContext
- type Hooks
- func (h *Hooks) AfterError(hookCtx AfterErrorContext, res *http.Response, err error) (*http.Response, error)
- func (h *Hooks) AfterSuccess(hookCtx AfterSuccessContext, res *http.Response) (*http.Response, error)
- func (h *Hooks) BeforeRequest(hookCtx BeforeRequestContext, req *http.Request) (*http.Request, error)
- func (h *Hooks) SDKInit(baseURL string, client HTTPClient) (string, HTTPClient)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AfterErrorContext ¶
type AfterErrorContext struct {
HookContext
}
type AfterSuccessContext ¶
type AfterSuccessContext struct {
HookContext
}
type BeforeRequestContext ¶
type BeforeRequestContext struct {
HookContext
}
type HTTPClient ¶
HTTPClient provides an interface for supplying the SDK with a custom HTTP client
type HookContext ¶
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
func (*Hooks) AfterError ¶
func (*Hooks) AfterSuccess ¶
func (*Hooks) BeforeRequest ¶
func (*Hooks) SDKInit ¶ added in v3.3.7
func (h *Hooks) SDKInit(baseURL string, client HTTPClient) (string, HTTPClient)
Click to show internal directories.
Click to hide internal directories.