server

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorReportingMiddleware

func ErrorReportingMiddleware() gin.HandlerFunc

func MetricMiddleware

func MetricMiddleware() gin.HandlerFunc

MetricMiddleware is a middleware responsible for logging query execution time metric

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server handles HTTP requests

func New

func New(cfg *config.Config, handlers *usecase.HttpHandlers) *Server

New returns a new server instance

func (*Server) Start

func (s *Server) Start(listenAdd string) error

Start starts the server

Jump to

Keyboard shortcuts

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