uctx

package
v0.0.0-...-feeaf7e Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextMiddleware

func ContextMiddleware(next echo.HandlerFunc) echo.HandlerFunc

Types

type Context

type Context struct {
	echo.Context
}

func FromContext

func FromContext(c echo.Context) *Context

func (*Context) Data

func (c *Context) Data(data any) error

func (*Context) ParamInt

func (c *Context) ParamInt(name string) (int, error)

func (*Context) ParamUint32

func (c *Context) ParamUint32(name string) (uint32, error)

func (*Context) Success

func (c *Context) Success() error

type Result

type Result struct {
	Code      string      `json:"code"`
	Message   string      `json:"message"`
	Data      interface{} `json:"data,omitempty"`
	RequestId string      `json:"ackId,omitempty"`
}

func NewResult

func NewResult(code string, message string, data interface{}, requestId string) *Result

Jump to

Keyboard shortcuts

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