httpgateway

package
v0.0.0-...-a53416d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerWithLogCtx

func HandlerWithLogCtx(h http.Handler) http.Handler

HandlerWithLogCtx wraps handler with middleware adding request information to context for logging.

func HandlerWithTraceID

func HandlerWithTraceID(h http.Handler) http.Handler

HandlerWithTraceID wraps handler with middleware generating trace id for each request. If trace id is present in headers, it will be preserved. We try to discover incoming trace ids based on w3 standard: https://www.w3.org/TR/trace-context/#trace-context-http-headers-format

func RunServer

RunServer starts http server with grpc gateway for ServiceServer. Server is gracefully shut down on context cancellation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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