engine

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Conf   *conf.Conf
	Pool   *pool.Pool
	Router *router.Router
}

func New

func New() *Engine

func (*Engine) Run

func (this *Engine) Run(addr string)

func (*Engine) ServeHTTP

func (this *Engine) ServeHTTP(w http.ResponseWriter, r *http.Request)

每当新的请求进来,就会出发以下方法。正常情况下,只需要从此处开始处理异常即可

Jump to

Keyboard shortcuts

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