server

package
v0.0.0-...-8073f2a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleInternalServerError

func HandleInternalServerError(c *gin.Context, message string)

Types

type Server

type Server struct {
	Engine    *gin.Engine
	Container container.Container
}

func New

func New(c container.Container) Server

func (*Server) MountGET

func (s *Server) MountGET(path string, handler func(container.Container) func(*gin.Context))

func (*Server) MountPOST

func (s *Server) MountPOST(path string, handler func(container.Container) func(*gin.Context))

func (*Server) Run

func (s *Server) Run()

Jump to

Keyboard shortcuts

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