Documentation ¶
Index ¶
- Constants
- Variables
- type Centre
- func (c *Centre) COPY(relativePath string, HandlerFunc ...HandlerFunc)
- func (c *Centre) DELETE(relativePath string, HandlerFunc ...HandlerFunc)
- func (c *Centre) GET(relativePath string, handlerFunc ...HandlerFunc)
- func (c *Centre) LINK(relativePath string, HandlerFunc ...HandlerFunc)
- func (c *Centre) LOCK(relativePath string, HandlerFunc ...HandlerFunc)
- func (c *Centre) OPTIONS(relativePath string, HandlerFunc ...HandlerFunc)
- func (c *Centre) PATCH(relativePath string, HandlerFunc ...HandlerFunc)
- func (c *Centre) POST(relativePath string, HandlerFunc ...HandlerFunc)
- func (c *Centre) PROPFIND(relativePath string, HandlerFunc ...HandlerFunc)
- func (c *Centre) PURGE(relativePath string, HandlerFunc ...HandlerFunc)
- func (c *Centre) PUT(relativePath string, HandlerFunc ...HandlerFunc)
- func (c *Centre) Run(addr string, exitTime int)
- func (c *Centre) UNLINK(relativePath string, HandlerFunc ...HandlerFunc)
- func (c *Centre) UNLOCK(relativePath string, HandlerFunc ...HandlerFunc)
- func (c *Centre) VIEW(relativePath string, HandlerFunc ...HandlerFunc)
- type GroupFunc
- type HandlerFunc
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 (*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) LINK ¶
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) UNLINK ¶
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 请求
Click to show internal directories.
Click to hide internal directories.