server

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorReportingMiddleware

func ErrorReportingMiddleware() gin.HandlerFunc

func MetricsMiddleware added in v0.1.9

func MetricsMiddleware() gin.HandlerFunc

MetricsMiddleware is a middleware responsible for logging query execution time

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(listenAddr string) error

Start starts the server

Jump to

Keyboard shortcuts

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