ginx

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Start() error
	Use(...gin.HandlerFunc)
	Engine() *http.Server
	GinEngine() *gin.Engine
	Group(relativePath string, handlers ...gin.HandlerFunc) *gin.RouterGroup
	Shutdown() error
}

func New

func New(conf *ServerConfig) Server

type ServerConfig

type ServerConfig struct {
	Addr  string
	Mode  string
	Trace bool
}

type ServerEntity

type ServerEntity struct {
	*ServerConfig
	// contains filtered or unexported fields
}

func (*ServerEntity) Engine

func (s *ServerEntity) Engine() *http.Server

func (*ServerEntity) GinEngine

func (s *ServerEntity) GinEngine() *gin.Engine

func (*ServerEntity) Group

func (s *ServerEntity) Group(relativePath string, handlers ...gin.HandlerFunc) *gin.RouterGroup

func (*ServerEntity) Shutdown

func (s *ServerEntity) Shutdown() error

func (*ServerEntity) Start

func (s *ServerEntity) Start() (err error)

func (*ServerEntity) Use

func (s *ServerEntity) Use(middlewares ...gin.HandlerFunc)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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