context

package
v0.0.0-...-82df24b Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contexter

func Contexter() flamego.Handler

Contexter initializes a classic context for a request.

Types

type Context

type Context struct {
	flamego.Context
}

Context represents context of a request.

func (*Context) Error

func (c *Context) Error(statusCode int, error error)

func (*Context) ServerError

func (c *Context) ServerError()

func (*Context) Success

func (c *Context) Success(data interface{})

Jump to

Keyboard shortcuts

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