web

package
v0.0.0-...-9966579 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MulanPSL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceName string
	DisplayName string
	Description string
}

type WebEngine

type WebEngine struct {
	Engine *gin.Engine
	Config Config
}

func NewWebEngine

func NewWebEngine(config Config) *WebEngine

func (*WebEngine) Any

func (e *WebEngine) Any(relativePath string, handlers ...gin.HandlerFunc)

func (*WebEngine) DELETE

func (e *WebEngine) DELETE(relativePath string, handlers ...gin.HandlerFunc)

func (*WebEngine) GET

func (e *WebEngine) GET(relativePath string, handlers ...gin.HandlerFunc)

func (*WebEngine) LoadHTMLGlob

func (e *WebEngine) LoadHTMLGlob(pattern string)

func (*WebEngine) OPTIONS

func (e *WebEngine) OPTIONS(relativePath string, handlers ...gin.HandlerFunc)

func (*WebEngine) POST

func (e *WebEngine) POST(relativePath string, handlers ...gin.HandlerFunc)

func (*WebEngine) PUT

func (e *WebEngine) PUT(relativePath string, handlers ...gin.HandlerFunc)

func (*WebEngine) Run

func (e *WebEngine) Run()

func (*WebEngine) Run2

func (e *WebEngine) Run2()

func (*WebEngine) Use

func (e *WebEngine) Use(middleware ...gin.HandlerFunc)

Jump to

Keyboard shortcuts

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