Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
func NewHTTPClient(instance string, otTracer stdopentracing.Tracer, logger log.Logger) (service.Service, error)
NewHTTPClient returns an AccountService backed by an HTTP server living at the remote instance. We expect instance to come from a service discovery system, so likely of the form "host:port". We bake-in certain middlewares, implementing the client library pattern.
func NewHTTPHandler ¶
func NewHTTPHandler(endpoints accountEndpoint.Set, otTracer stdopentracing.Tracer, logger log.Logger) http.Handler
NewHTTPHandler returns an HTTP handler that makes a set of endpoints available on predefined paths.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.