context

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseContext

type BaseContext struct {
	TraceID      string
	Tech4GoodLog xlog.ILogger
	HttpCtx      *gin.Context
}

BaseContext BaseContext

func (*BaseContext) InitContext

func (ctx *BaseContext) InitContext(context *gin.Context) error

InitContext 初始化上下文

func (*BaseContext) InitRequest

func (ctx *BaseContext) InitRequest() *xhttp.HTTPAgent

InitRequest 初始化请求

func (*BaseContext) WithLogCatalog

func (ctx *BaseContext) WithLogCatalog(catalog string) xlog.ILogger

WithLogCatalog WithLogCatalog

Jump to

Keyboard shortcuts

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