ginserver

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GinHttp3Server

type GinHttp3Server struct {
	// contains filtered or unexported fields
}

func NewHttp3

func NewHttp3(opts ...Option) *GinHttp3Server

func (*GinHttp3Server) Do

func (h3 *GinHttp3Server) Do(key string, fn func() (any, error)) (v any, err error, shared bool)

func (*GinHttp3Server) Name

func (h3 *GinHttp3Server) Name() string

func (*GinHttp3Server) Start

func (h3 *GinHttp3Server) Start(ctx context.Context) error

func (*GinHttp3Server) Stop

func (h3 *GinHttp3Server) Stop(ctx context.Context) error

type Option

type Option func(opt *option)

func WithDELETE

func WithDELETE(path string, hs ...gin.HandlerFunc) Option

func WithGET

func WithGET(path string, hs ...gin.HandlerFunc) Option

func WithHandlers

func WithHandlers(handles ...httpserver.Handler) Option

func WithLoadHTMLFiles

func WithLoadHTMLFiles(files ...string) Option

func WithMiddleware

func WithMiddleware(handles ...gin.HandlerFunc) Option

func WithName

func WithName(name string) Option

func WithPOST

func WithPOST(path string, hs ...gin.HandlerFunc) Option

func WithPUT

func WithPUT(path string, hs ...gin.HandlerFunc) Option

func WithPort

func WithPort(port string) Option

func WithTLS

func WithTLS(cert, key string) Option

Jump to

Keyboard shortcuts

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