package
1.0.1
Repository: https://github.com/apus-run/van.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AfterStart run funcs after app starts.
AfterStop run funcs after app stops.
No description provided by the author
No description provided by the author
No description provided by the author
BeforeStart run funcs before app starts.
DefaultOptions .
FromGinContext returns the gin.Context value stored in ctx, if any.
Handle convert HandlerFunc to gin.HandlerFunc.
NewGinContext returns a new Context that carries gin.Context value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithAddr .
WithMaxPingCount .
WithMode .
WithPort .
WrapContext returns a context wrapped by this file.

# Constants

AcceptLanguageHeaderName represents the header name of accept language.
ClientTimezoneOffsetHeaderName represents the header name of client timezone offset.
CodeErr means a failure response.
CodeOK means a successful response.

# Variables

ErrNoResponse 是一个 sentinel 错误。 也就是说,你可以通过返回这个 ErrNoResponse 来告诉 ginx 不需要继续写响应。 大多数情况下,这意味着你已经写回了响应。.
No description provided by the author

# Structs

Context a wrapper of gin.Context.
No description provided by the author
Result defines HTTP JSON response.

# Interfaces

No description provided by the author

# Type aliases

HandlerFunc defines the handler to wrap gin.Context.
Option is config option.
ProxyHandlerFunc represents the reverse proxy handler function.