Versions in this module Expand all Collapse all v0 v0.1.0 May 19, 2023 Changes in this version + type Empty struct + type Handler func(any) gin.HandlerFunc + type Option func(*option) + func WithAddr(addr string) Option + func WithDisableAccessLog() Option + func WithDumpRequest(o bool) Option + func WithGinEngine(e *gin.Engine) Option + func WithResponseRender(r Renderer) Option + type Renderer func(*gin.Context, any, error) + type Router interface + Delete func(path string, handler ...any) + Get func(path string, handler ...any) + Group func(path string, handler ...gin.HandlerFunc) Router + Handle func(method, path string, handler ...any) + Patch func(path string, handler ...any) + Post func(path string, handler ...any) + Put func(path string, handler ...any) + Use func(handler ...gin.HandlerFunc) Router + type Routes []*routeInfo + type Server struct + func New(opts ...Option) *Server + func (s *Server) Engine() *gin.Engine + func (s *Server) HandleFunc(v any) gin.HandlerFunc + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) Start() error