gin

package
v0.13.12 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMaxRequestBodySize = 104857600 // 100MB

Variables

This section is empty.

Functions

func GetTraceContext added in v0.12.12

func GetTraceContext(ctx *gin.Context) context.Context

func InitTrans added in v0.6.21

func InitTrans(locale string, validate binding.StructValidator) (err error)

InitTrans 初始化翻译器

func NewServer

func NewServer(options server.Options, routerProvider func(engine *gin.Engine), middleware ...gin.HandlerFunc) server.Server

Types

type Server

type Server struct {
	Srv     *gin.Engine
	Options server.Options
}

func (*Server) GetServeServer added in v0.9.6

func (server *Server) GetServeServer() any

func (*Server) Run

func (server *Server) Run(graceful ...func())

func (*Server) Shutdown

func (server *Server) Shutdown()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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