console

package
v0.0.0-...-95af3ef Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleDispatch

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

func (*ConsoleDispatch) Init

func (this *ConsoleDispatch) Init(p int)

func (*ConsoleDispatch) RegisterHandle

func (this *ConsoleDispatch) RegisterHandle(url string, h ConsoleHandler)

func (*ConsoleDispatch) ServeHTTP

func (this *ConsoleDispatch) ServeHTTP(ctx *fasthttp.RequestCtx)

func (*ConsoleDispatch) Start

func (this *ConsoleDispatch) Start()

type ConsoleHandler

type ConsoleHandler func(request *ConsoleRequest) ConsoleResponse

处理的hanler

type ConsoleRequest

type ConsoleRequest struct {
	Token string          `json:"access_token"`
	Data  json.RawMessage `json:"data"`
}

控制请求

type ConsoleResponse

type ConsoleResponse struct {
	Status byte   `json:"status"`
	Code   string `json:"code"`
	Msg    string `json:"message"`
}

控制结果

type RegisterHandle

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

注册接口

func (*RegisterHandle) Init

type SystemHandle

type SystemHandle struct {
	App core.Application
}

func (*SystemHandle) Init

func (this *SystemHandle) Init(c *ConsoleDispatch)

Jump to

Keyboard shortcuts

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