http

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {

	// gin的路由
	Router *gin.Engine

	// not found handler
	NotFoundHandler func(ctx *gin.Context)
	// contains filtered or unexported fields
}

Server Web服务管理器

func NewServer

func NewServer() *Server

NewServer 实例化server

func (*Server) Start

func (server *Server) Start(args ...int) error

Start run http server args must be less than one, eg: Start()

Start(8080)

Directories

Path Synopsis
r 基于gin的Context,实现响应数据结构体 集成全局traceID
r 基于gin的Context,实现响应数据结构体 集成全局traceID

Jump to

Keyboard shortcuts

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