backend

package
v0.0.0-...-c21574f Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKey

func AddKey(conn *gosocketio.Channel, data json.RawMessage)

AddKey save to redis

func AddRow

func AddRow(conn *gosocketio.Channel, data json.RawMessage)

AddRow add one row 2 redis

func AddServer

func AddServer(conn *gosocketio.Channel, data json.RawMessage)

AddServer 增加redis server

func DelDeleteTask

func DelDeleteTask(conn *gosocketio.Channel, id int)

DelDeleteTask get process of all tasks

func DelExportTask

func DelExportTask(conn *gosocketio.Channel, id int)

DelExportTask del process task

func DelKey

func DelKey(conn *gosocketio.Channel, data json.RawMessage)

DelKey del one key

func DelKeysBg

func DelKeysBg(conn *gosocketio.Channel, data json.RawMessage)

DelKeysBg del mutil key in background

func DelRow

func DelRow(conn *gosocketio.Channel, data json.RawMessage)

DelRow del one row

func DelServer

func DelServer(conn *gosocketio.Channel, serverid int)

DelServer del redis server

func Export2mongodb

func Export2mongodb(conn *gosocketio.Channel, data json.RawMessage)

Export2mongodb export keys to mongodb

func GetDelTasksProcess

func GetDelTasksProcess(conn *gosocketio.Channel, data interface{})

GetDelTasksProcess get process of all tasks

func GetExportTasksProcess

func GetExportTasksProcess(conn *gosocketio.Channel, data interface{})

GetExportTasksProcess get process of all tasks

func GetKey

func GetKey(conn *gosocketio.Channel, data json.RawMessage)

GetKey get value of the key

func GetTotalKeysNums

func GetTotalKeysNums(conn *gosocketio.Channel, data json.RawMessage)

GetTotalKeysNums get total keys nums

func KeyType

func KeyType(conn *gosocketio.Channel, data json.RawMessage)

KeyType type of the key

func ModifyKey

func ModifyKey(conn *gosocketio.Channel, data json.RawMessage)

ModifyKey modify one key

func QueryServer

func QueryServer(conn *gosocketio.Channel, serverID int)

QueryServer 获取列表

func QueryServers

func QueryServers(conn *gosocketio.Channel)

QueryServers 获取列表

func QuerySystemConfigs

func QuerySystemConfigs(conn *gosocketio.Channel)

QuerySystemConfigs 获取系统配置信息

func Rename

func Rename(conn *gosocketio.Channel, data json.RawMessage)

Rename rename a key

func ScanKeys

func ScanKeys(conn *gosocketio.Channel, data json.RawMessage)

ScanKeys scan redis key

func ScanRemote

func ScanRemote(conn *gosocketio.Channel, data json.RawMessage)

ScanRemote scan remote

func ServerInfo

func ServerInfo(conn *gosocketio.Channel, serverID int)

ServerInfo query server info

func SetSocketIOServer

func SetSocketIOServer(server *gosocketio.Server)

SetSocketIOServer set socketio server

func SetTTL

func SetTTL(conn *gosocketio.Channel, data json.RawMessage)

SetTTL set ttl

func UpdateServer

func UpdateServer(conn *gosocketio.Channel, data json.RawMessage)

UpdateServer 更新redisServer

func UpdateSystemConfigs

func UpdateSystemConfigs(conn *gosocketio.Channel, data json.RawMessage)

UpdateSystemConfigs 更新系统信息

Types

type Message

type Message struct {
	Operation string      `json:"operation"`
	Data      interface{} `json:"data"`
	Error     string      `json:"error"`
}

Message 协议

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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