http

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: GPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrServerClosed = http.ErrServerClosed

Functions

func CorsMiddleware

func CorsMiddleware() gin.HandlerFunc

func LoggerMiddleware

func LoggerMiddleware(logger logger.Logger) gin.HandlerFunc

Types

type Server

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

func NewServer

func NewServer(log logger.Logger, config *config.AppConfig, notification domain.Sender) *Server

func (*Server) AuthMiddleware

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

func (*Server) Handler

func (s *Server) Handler() http.Handler

func (*Server) Open

func (s *Server) Open() error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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