webserver

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebServer

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

WebServer Provide the web http server with different port Use the gin framework

func NewWebServer

func NewWebServer(config *config.Config) *WebServer

func (*WebServer) RegisterWebHandler

func (app *WebServer) RegisterWebHandler(port int, f func(gin *gin.Engine))

RegisterWebHandler register web handler, use the custom port and callback the gin engine for user

func (*WebServer) Start

func (app *WebServer) Start()

Jump to

Keyboard shortcuts

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