core

package
v0.0.0-...-615e99e Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 8 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 {
	Port    int
	Address string
	// contains filtered or unexported fields
}

func NewWebServer

func NewWebServer(opt *WebServerOptions) (*WebServer, error)

func (*WebServer) Close

func (web *WebServer) Close()

func (*WebServer) Get

func (web *WebServer) Get() *gin.Engine

func (*WebServer) Run

func (web *WebServer) Run()

func (*WebServer) ServeHTTP

func (web *WebServer) ServeHTTP(w http.ResponseWriter, req *http.Request)

type WebServerOptions

type WebServerOptions struct {
	Mode    string
	Address string
	Port    int
}

Jump to

Keyboard shortcuts

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