context

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoContext

type EchoContext struct {
	Context echo.Context
}

func (EchoContext) GetHeader

func (e EchoContext) GetHeader(key string) string

func (EchoContext) JSON

func (e EchoContext) JSON(statusCode int, v interface{}) error

type FiberContext

type FiberContext struct {
	Context fiber.Ctx
}

func (FiberContext) GetHeader

func (f FiberContext) GetHeader(key string) string

func (FiberContext) JSON

func (f FiberContext) JSON(statusCode int, v interface{}) error

type GinContext

type GinContext struct {
	Context *gin.Context
}

func (GinContext) GetHeader

func (g GinContext) GetHeader(key string) string

func (GinContext) JSON

func (g GinContext) JSON(statusCode int, v interface{})

type MuxContext

type MuxContext struct {
	Writer  http.ResponseWriter
	Request *http.Request
}

func (MuxContext) GetHeader

func (m MuxContext) GetHeader(key string) string

func (MuxContext) JSON

func (m MuxContext) JSON(statusCode int, v interface{}) error

Jump to

Keyboard shortcuts

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