hfwctx

package
v0.0.0-...-714bc2e Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextHook

func ContextHook(ctx context.Context) func(l *logger.Logger) *logger.Logger

ContextHook .

Types

type Context

type Context struct {
	*gin.Context
	// contains filtered or unexported fields
}

Context .

func Encode

func Encode(ctx *gin.Context) *Context

Encode .

func (*Context) Decode

func (c *Context) Decode() *gin.Context

Decode .

func (*Context) ID

func (c *Context) ID() ID

ID .

func (*Context) ReturnData

func (c *Context) ReturnData(v interface{})

ReturnData .

func (*Context) ReturnError

func (c *Context) ReturnError(code webserver.Code, v ...interface{})

ReturnError return weberror

func (*Context) ReturnStream

func (c *Context) ReturnStream(reader io.Reader, opts ...func(c *Context))

ReturnStream .

func (*Context) Successful

func (c *Context) Successful()

Successful .

type ID

type ID string

ID trace id

func NewID

func NewID() ID

NewID .

func (ID) String

func (id ID) String() string

String .

Jump to

Keyboard shortcuts

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