server

package
v0.0.0-...-5b0d633 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2019 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Engine

func Engine(r router, logger gin.HandlerFunc, runMode string) *gin.Engine

Engine returns gin.Engine

Types

type Server

type Server struct {
	Engine       *gin.Engine
	Addr         string
	ReadTimeout  int
	WriteTimeout int
}

Server contains config of http server

func (*Server) Serve

func (s *Server) Serve()

Serve starts http server

Jump to

Keyboard shortcuts

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