Documentation ¶
Index ¶
- Variables
- func NewClient(opts ...ClientOption) (*http.Client, error)
- func NewRoundTripper(opts ...ClientOption) (http.RoundTripper, error)
- func ServerHandlers() []negroni.Handler
- func Transport() *http.Transport
- type ClientOption
- func WithClientBreaker() ClientOption
- func WithClientLogger(logger *zap.Logger) ClientOption
- func WithClientMetrics(meter metric.Meter) ClientOption
- func WithClientRetry(cfg *r.Config) ClientOption
- func WithClientRoundTripper(rt http.RoundTripper) ClientOption
- func WithClientTracer(tracer htracer.Tracer) ClientOption
- func WithClientUserAgent(userAgent string) ClientOption
- type Config
- type Server
- type ServerParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPort = errors.New("invalid port")
ErrInvalidPort for HTTP.
Functions ¶
func NewRoundTripper ¶ added in v1.105.0
func NewRoundTripper(opts ...ClientOption) (http.RoundTripper, error)
NewRoundTripper for HTTP.
func ServerHandlers ¶ added in v1.120.0
func ServerHandlers() []negroni.Handler
ServerHandlers for HTTP.
Types ¶
type ClientOption ¶ added in v1.50.0
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption for HTTP.
func WithClientBreaker ¶ added in v1.50.0
func WithClientBreaker() ClientOption
WithClientBreaker for HTTP.
func WithClientLogger ¶ added in v1.52.0
func WithClientLogger(logger *zap.Logger) ClientOption
WithClientLogger for HTTP.
func WithClientMetrics ¶ added in v1.65.0
func WithClientMetrics(meter metric.Meter) ClientOption
WithClientMetrics for HTTP.
func WithClientRetry ¶ added in v1.50.0
func WithClientRetry(cfg *r.Config) ClientOption
WithClientRetry for HTTP.
func WithClientRoundTripper ¶ added in v1.50.0
func WithClientRoundTripper(rt http.RoundTripper) ClientOption
WithClientRoundTripper for HTTP.
func WithClientTracer ¶ added in v1.52.0
func WithClientTracer(tracer htracer.Tracer) ClientOption
WithClientTracer for HTTP.
func WithClientUserAgent ¶ added in v1.121.0
func WithClientUserAgent(userAgent string) ClientOption
WithUserAgent for HTTP.
Click to show internal directories.
Click to hide internal directories.