Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCClientConnectionBuilder ¶
type GRPCClientConnectionBuilder interface { AddOptions(opts ...grpc.DialOption) GRPCClientConnectionBuilder Build() GRPCClientConnectionWrapper }
GRPCClientConnectionBuilder is a convenience builder to gather []grpc.DialOption
type GRPCClientConnectionWrapper ¶
type GRPCClientConnectionWrapper interface { // Context can be nil Dial(ctx context.Context, target string, extraOptions ...grpc.DialOption) (grpc.ClientConnInterface, error) }
GRPCClientConnectionWrapper is a convenience wrapper to support predefined dial Options provided by GRPCClientConnectionBuilder
type HTTPClientBuilder ¶
type HTTPClientBuilder interface { AddInterceptors(...HTTPClientInterceptor) HTTPClientBuilder WithPreconfiguredClient(*http.Client) HTTPClientBuilder Build() *http.Client }
HTTPClientBuilder is a builder interface to build http.Client with interceptors
type HTTPClientInterceptor ¶
HTTPClientInterceptor is a user defined function that can alter a request before it's sent and/or alter a response before it's returned to the caller
type HTTPHandler ¶ added in v0.1.5
HTTPHandler is just an alias to http.RoundTriper.RoundTrip function
type NewHTTPClientBuilder ¶
type NewHTTPClientBuilder func() HTTPClientBuilder
NewHTTPClientBuilder REST HTTP builder
Useful when you want to create several *http.Client with different options
Click to show internal directories.
Click to hide internal directories.