ginx

package
v0.0.0-...-b556d9d Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

README

gin框架学习

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine() *Engine

func (*Engine) ServeHTTP

func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Request)

type HandlerFunc

type HandlerFunc func(ctx *XContext)

type HandlersChain

type HandlersChain []HandlerFunc

type XContext

type XContext struct {
	Request        *http.Request
	ResponseWriter http.ResponseWriter
	// contains filtered or unexported fields
}

func (*XContext) Deadline

func (c *XContext) Deadline() (deadline time.Time, ok bool)

func (*XContext) Done

func (c *XContext) Done() <-chan struct{}

func (*XContext) Err

func (c *XContext) Err() error

func (*XContext) Render

func (c *XContext) Render(code int, r render.Render)

func (*XContext) Value

func (c *XContext) Value(key interface{}) interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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