server

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorReportingMiddleware added in v0.4.0

func ErrorReportingMiddleware() gin.HandlerFunc

func MetricMiddleware added in v0.4.0

func MetricMiddleware(cfg *config.Config) 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

Index starts the server

Jump to

Keyboard shortcuts

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