rest

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpServer

func NewHttpServer() *httpServer

Types

type Context

type Context struct {
	Req    *http.Request
	Resp   http.ResponseWriter
	Params map[string]string
}

type HandleFunc

type HandleFunc func(ctx *Context)

type Server

type Server interface {
	http.Handler
	Start(addr string) error
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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