Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerWithLogCtx ¶
HandlerWithLogCtx wraps handler with middleware adding request information to context for logging.
func HandlerWithTraceID ¶
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 ¶
func RunServer( ctx context.Context, log logrus.FieldLogger, srv bikerentalv1.BikeRentalServiceServer, addr string, ) error
RunServer starts http server with grpc gateway for ServiceServer. Server is gracefully shut down on context cancellation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.