Documentation ¶
Overview ¶
Package client GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- func ContextWithHttpClient(ctx context.Context, c *http.Client) context.Context
- func ContextWithRoundTripperCreator(ctx context.Context, newRoundTripper RoundTripperCreateFunc) context.Context
- func GetShortConnClientContext(ctx context.Context, httpTransports ...HttpTransport) *http.Client
- func HttpClientFromContext(ctx context.Context) *http.Client
- func RoundTripperCreatorFromContext(ctx context.Context) func() http.RoundTripper
- type Client
- type HttpTransport
- type RoundTrip
- type RoundTripperCreateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithHttpClient ¶
func ContextWithRoundTripperCreator ¶
func ContextWithRoundTripperCreator(ctx context.Context, newRoundTripper RoundTripperCreateFunc) context.Context
func GetShortConnClientContext ¶
func GetShortConnClientContext(ctx context.Context, httpTransports ...HttpTransport) *http.Client
func RoundTripperCreatorFromContext ¶
func RoundTripperCreatorFromContext(ctx context.Context) func() http.RoundTripper
Types ¶
type Client ¶
type Client struct { Endpoint string `flag:""` NewError func() error HttpTransports []HttpTransport }
type HttpTransport ¶
type HttpTransport = func(rt http.RoundTripper) http.RoundTripper
func HttpTransportFunc ¶
type RoundTripperCreateFunc ¶
type RoundTripperCreateFunc = func() http.RoundTripper
Click to show internal directories.
Click to hide internal directories.