models

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

func (*Context) GetParameter

func (c *Context) GetParameter(key string) string

func (*Context) GetRequest

func (c *Context) GetRequest() *http.Request

func (*Context) GetResponseWriter

func (c *Context) GetResponseWriter() http.ResponseWriter

func (*Context) RespondJson

func (c *Context) RespondJson(statusCode int, data any)

func (*Context) RespondString

func (c *Context) RespondString(s string)

func (*Context) SetParameters

func (c *Context) SetParameters(p map[string]string)

func (*Context) SetRequest

func (c *Context) SetRequest(r *http.Request)

func (*Context) SetResponseWriter

func (c *Context) SetResponseWriter(w http.ResponseWriter)

type Group

type Group struct {
	Path  string
	Route *Route
}

func (*Group) Get

func (g *Group) Get(path string, handler Handler)

func (*Group) Group

func (g *Group) Group(path string) *Group

func (*Group) Post

func (g *Group) Post(path string, handler Handler)

type Handler

type Handler func(ctx Context)

type Route

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

func (*Route) Insert

func (n *Route) Insert(method, path string, handler Handler)

func (*Route) Search

func (n *Route) Search(method, path string) (bool, Handler, map[string]string)

Jump to

Keyboard shortcuts

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