easyserver

package module
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: MIT Imports: 8 Imported by: 0

README

easy_server

超轻量http server

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	GetReq() *http.Request
	GetResp() http.ResponseWriter
	GetParamParam() []router.UrlParam
	Next() bool
}

type Engine

type Engine interface {
	Register(method, path string, handle router.Handler)
	AppendMiddleware(handler func(c Context))
	RunByHttps(port int, certFile, keyFile string) error
}

func New

func New() Engine

Jump to

Keyboard shortcuts

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