Documentation ¶
Index ¶
- func DecodeEndpointHookFunc() mapstructure.DecodeHookFunc
- type AuthenticationStrategy
- type Endpoint
- func (e Endpoint) CreateClient(peerName string) *http.Client
- func (e Endpoint) CreateRequest(ctx context.Context, body io.Reader, rndr Renderer) (*http.Request, error)
- func (e Endpoint) Hash() []byte
- func (e Endpoint) SendRequest(ctx context.Context, body io.Reader, renderer Renderer, ...) ([]byte, error)
- type HTTPCache
- type RenderFunc
- type Renderer
- type ResponseReader
- type Retry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeEndpointHookFunc ¶
func DecodeEndpointHookFunc() mapstructure.DecodeHookFunc
Types ¶
type AuthenticationStrategy ¶
type Endpoint ¶
type Endpoint struct { URL string `mapstructure:"url" validate:"required,url"` Method string `mapstructure:"method"` Retry *Retry `mapstructure:"retry"` AuthStrategy AuthenticationStrategy `mapstructure:"auth"` Headers map[string]string `mapstructure:"headers"` HTTPCache *HTTPCache `mapstructure:"http_cache"` }
func (Endpoint) CreateRequest ¶
type RenderFunc ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.