server

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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, error)

New returns a new server instance

func (*Server) ReverseProxy added in v0.9.0

func (s *Server) ReverseProxy() gin.HandlerFunc

func (*Server) Start

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

Start starts the server

type Writer added in v0.4.3

type Writer struct {
}

func (*Writer) Write added in v0.4.3

func (s *Writer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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