Versions in this module Expand all Collapse all v1 v1.5.9 Aug 18, 2025 v1.5.8 Mar 5, 2025 Changes in this version + type GinHttp2Server struct + func NewHttp2(opts ...Option) *GinHttp2Server + func (h2 *GinHttp2Server) Do(key string, fn func() (any, error)) (v any, err error, shared bool) + func (h2 *GinHttp2Server) Name() string + func (h2 *GinHttp2Server) Start(ctx context.Context) error + func (h2 *GinHttp2Server) Stop(ctx context.Context) error + type GinHttpServer struct + func NewHttp(opts ...Option) *GinHttpServer + func (h *GinHttpServer) Do(key string, fn func() (any, error)) (v any, err error, shared bool) + func (h *GinHttpServer) Name() string + func (h *GinHttpServer) Start(ctx context.Context) error + func (h *GinHttpServer) Stop(ctx context.Context) error + type Handler interface + Middlewares func() []gin.HandlerFunc + Prefix func() string + Routers func() []*Router + type Option func(opt *option) + func WithDELETE(path string, hs ...gin.HandlerFunc) Option + func WithGET(path string, hs ...gin.HandlerFunc) Option + func WithHandlers(handles ...Handler) Option + func WithLoadHTMLFiles(files ...string) Option + func WithMiddleware(handles ...gin.HandlerFunc) Option + func WithName(name string) Option + func WithPOST(path string, hs ...gin.HandlerFunc) Option + func WithPUT(path string, hs ...gin.HandlerFunc) Option + func WithPort(port string) Option + func WithTLS(cert, key string) Option + type Router struct + Handle []gin.HandlerFunc + Method string + Path string + func NewRouter(method, path string, handles ...gin.HandlerFunc) *Router