api

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseController

type BaseController struct {
	beego.Controller
	// contains filtered or unexported fields
}

BaseController API基础控制器

func (*BaseController) CheckToken added in v0.4.0

func (c *BaseController) CheckToken()

CheckToken 检查token

func (*BaseController) Finish

func (c *BaseController) Finish()

Finish beego Controller Finish事件

func (*BaseController) Prepare

func (c *BaseController) Prepare()

Prepare beego Controller Prepare事件

func (*BaseController) SetData

func (c *BaseController) SetData(key string, val interface{})

SetData 设置响应的数据

func (*BaseController) SetError

func (c *BaseController) SetError(options ...interface{})

SetError 设置错误响应信息

type LogController

type LogController struct {
	BaseController
}

LogController 日志功能控制器

func (*LogController) Delete added in v0.4.0

func (c *LogController) Delete()

Delete 删除白名单记录

func (*LogController) List

func (c *LogController) List()

List 获取白名单列表

type PortMapController

type PortMapController struct {
	BaseController
}

PortMapController 端口映射功能控制器

func (*PortMapController) Delete

func (c *PortMapController) Delete()

Delete 删除端口映射记录

func (*PortMapController) Get

func (c *PortMapController) Get()

Get 获取端口映射详情

func (*PortMapController) List

func (c *PortMapController) List()

List 获取端口映射列表

func (*PortMapController) Put

func (c *PortMapController) Put()

Put 创建或修改 端口映射

type ProxyController

type ProxyController struct {
	BaseController
}

ProxyController 代理请求功能控制器

func (*ProxyController) Start

func (c *ProxyController) Start()

Start 启动代理请求

func (*ProxyController) Stop

func (c *ProxyController) Stop()

Stop 停止代理请求

type ResponseCodeType

type ResponseCodeType int

ResponseCodeType 响应代码类型

const (
	// ResponseOK 正常响应
	ResponseOK ResponseCodeType = 10000
	// ResponseError 错误响应
	ResponseError ResponseCodeType = 90000
	// ResponseUnauthorized 没有权限
	ResponseUnauthorized ResponseCodeType = 90100
)

type WhiteListController

type WhiteListController struct {
	BaseController
}

WhiteListController 白名单功能控制器

func (*WhiteListController) Delete

func (c *WhiteListController) Delete()

Delete 删除白名单记录

func (*WhiteListController) Get

func (c *WhiteListController) Get()

Get 获取白名单详情

func (*WhiteListController) GetIP

func (c *WhiteListController) GetIP()

GetIP 获取请求者IP

func (*WhiteListController) List

func (c *WhiteListController) List()

List 获取白名单列表

func (*WhiteListController) Put

func (c *WhiteListController) Put()

Put 创建或修改 白名单

Jump to

Keyboard shortcuts

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