gogo

package
v0.0.0-...-30be18a Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerStatusAllow        = 0 //正常
	ServerStatusForbid       = 1 //禁止
	ServerStatusSystemForbid = 2 //系统禁止
)

Variables

View Source
var ServerStatus = ServerStatusAllow //阻止外网访问:0=正常,1=禁止,2=系统禁止(在执行关闭服务用到)

Functions

This section is empty.

Types

type Centre

type Centre struct {
	Middleware  []HandlerFunc `Testing:"中间件"`
	ServerClose chan int      `Testing:"关闭服务(传入数据执行关闭操作)"`
	Server      *http.Server  `Testing:"http服务"`
	// contains filtered or unexported fields
}

func ReadyGo

func ReadyGo() *Centre

func (*Centre) COPY

func (c *Centre) COPY(relativePath string, HandlerFunc ...HandlerFunc)

COPY 请求

func (*Centre) DELETE

func (c *Centre) DELETE(relativePath string, HandlerFunc ...HandlerFunc)

DELETE 请求

func (*Centre) GET

func (c *Centre) GET(relativePath string, handlerFunc ...HandlerFunc)

GET 请求

func (c *Centre) LINK(relativePath string, HandlerFunc ...HandlerFunc)

LINK 请求

func (*Centre) LOCK

func (c *Centre) LOCK(relativePath string, HandlerFunc ...HandlerFunc)

LOCK 请求

func (*Centre) OPTIONS

func (c *Centre) OPTIONS(relativePath string, HandlerFunc ...HandlerFunc)

OPTIONS 请求

func (*Centre) PATCH

func (c *Centre) PATCH(relativePath string, HandlerFunc ...HandlerFunc)

PATCH 请求

func (*Centre) POST

func (c *Centre) POST(relativePath string, HandlerFunc ...HandlerFunc)

POST 请求

func (*Centre) PROPFIND

func (c *Centre) PROPFIND(relativePath string, HandlerFunc ...HandlerFunc)

PROPFIND 请求

func (*Centre) PURGE

func (c *Centre) PURGE(relativePath string, HandlerFunc ...HandlerFunc)

PURGE 请求

func (*Centre) PUT

func (c *Centre) PUT(relativePath string, HandlerFunc ...HandlerFunc)

PUT 请求

func (*Centre) Run

func (c *Centre) Run(addr string, exitTime int)

Run 启动 (端口,关闭服务时长)

func (c *Centre) UNLINK(relativePath string, HandlerFunc ...HandlerFunc)

UNLINK 请求

func (*Centre) UNLOCK

func (c *Centre) UNLOCK(relativePath string, HandlerFunc ...HandlerFunc)

UNLOCK 请求

func (*Centre) VIEW

func (c *Centre) VIEW(relativePath string, HandlerFunc ...HandlerFunc)

VIEW 请求

type GroupFunc

type GroupFunc func()

type HandlerFunc

type HandlerFunc func(util *job.Job)

HandlerFunc 接口需要执行的程序方法

Jump to

Keyboard shortcuts

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