transporthttp

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Please, do not change functions names!

Index

Constants

This section is empty.

Variables

View Source
var NewHTTPClientSD = sdClientFactory(httpClientFactoryMaker)

NewHTTPClientSD is a http client for StringService and uses service discovery inside.

Functions

func CommonHTTPRequestEncoder

func CommonHTTPRequestEncoder(_ context.Context, r *http.Request, request interface{}) error

func CommonHTTPResponseEncoder

func CommonHTTPResponseEncoder(_ context.Context, w http.ResponseWriter, response interface{}) error

func NewHTTPClient

func NewHTTPClient(u *url.URL, opts ...httpkit.ClientOption) transport.EndpointsSet

func NewHTTPHandler

func NewHTTPHandler(endpoints *transport.EndpointsSet, logger log.Logger, tracer opentracinggo.Tracer, opts ...http.ServerOption) http1.Handler

func TracingHTTPClientOptions

func TracingHTTPClientOptions(tracer opentracinggo.Tracer, logger log.Logger) func([]httpkit.ClientOption) []httpkit.ClientOption

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL