context

package
v0.0.0-...-2c4220d Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAtreugoCtx

func FromAtreugoCtx(ctx *atreugo.RequestCtx) types.Context

ToContext Convert atreugo RequestCtx to Context

func FromEchoContext

func FromEchoContext(ctx echo.Context) types.Context

ToContext Convert echo Context to Context

Types

type AtreugoContext

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

func (*AtreugoContext) JSON

func (ctx *AtreugoContext) JSON(object interface{})

func (*AtreugoContext) Request

func (ctx *AtreugoContext) Request() types.Request

func (*AtreugoContext) Response

func (ctx *AtreugoContext) Response() types.Response

func (*AtreugoContext) TEXT

func (ctx *AtreugoContext) TEXT(content string)

type EchoContext

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

func (*EchoContext) JSON

func (ctx *EchoContext) JSON(object interface{})

func (*EchoContext) Request

func (ctx *EchoContext) Request() types.Request

func (*EchoContext) Response

func (ctx *EchoContext) Response() types.Response

func (*EchoContext) TEXT

func (ctx *EchoContext) TEXT(content string)

Jump to

Keyboard shortcuts

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