http

package
v0.0.0-...-b941d56 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

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

func Instance

func Instance() *HTTP

Instance 单例

func (*HTTP) GetHttpServer

func (h *HTTP) GetHttpServer() *ghttp.Server

GetHttpServer 获取server对象

func (*HTTP) GetSite

func (h *HTTP) GetSite() string

func (*HTTP) Init

func (h *HTTP) Init(site string)

Init 的服务

func (*HTTP) Run

func (h *HTTP) Run(routerCallback func(server *ghttp.Server), eventCallback func())

Run 运行

Jump to

Keyboard shortcuts

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