Documentation ¶
Index ¶
- Variables
- func AdminDoConfigBase(s *webServer, c *gin.Context)
- func AdminDoConfigHttp(s *webServer, c *gin.Context)
- func AdminDoConfigJson(s *webServer, c *gin.Context)
- func AdminDoConfigReverse(s *webServer, c *gin.Context)
- func AdminDoConfigWs(s *webServer, c *gin.Context)
- func AdminDoRestart(s *webServer, c *gin.Context)
- func AdminDoRestartDocker(s *webServer, c *gin.Context)
- func AdminDoWebWrite(s *webServer, c *gin.Context)
- func AdminGetConfigJson(s *webServer, c *gin.Context)
- func AdminProcessRestart(s *webServer, c *gin.Context)
- func AdminWebWrite(s *webServer, c *gin.Context)
- func AuthMiddleWare() gin.HandlerFunc
- func CanSendImage(s *httpServer, c *gin.Context)
- func CanSendRecord(s *httpServer, c *gin.Context)
- func DeleteMessage(s *httpServer, c *gin.Context)
- func Failed(code int, msg string) coolq.MSG
- func GetConf() *global.JsonConfig
- func GetForwardMessage(s *httpServer, c *gin.Context)
- func GetFriendList(s *httpServer, c *gin.Context)
- func GetGroupFileSystemInfo(s *httpServer, c *gin.Context)
- func GetGroupFileUrl(s *httpServer, c *gin.Context)
- func GetGroupFilesByFolderId(s *httpServer, c *gin.Context)
- func GetGroupHonorInfo(s *httpServer, c *gin.Context)
- func GetGroupInfo(s *httpServer, c *gin.Context)
- func GetGroupList(s *httpServer, c *gin.Context)
- func GetGroupMemberInfo(s *httpServer, c *gin.Context)
- func GetGroupMemberList(s *httpServer, c *gin.Context)
- func GetGroupRootFiles(s *httpServer, c *gin.Context)
- func GetGroupSystemMessage(s *httpServer, c *gin.Context)
- func GetImage(s *httpServer, c *gin.Context)
- func GetLoginInfo(s *httpServer, c *gin.Context)
- func GetMessage(s *httpServer, c *gin.Context)
- func GetStatus(s *httpServer, c *gin.Context)
- func GetStrangerInfo(s *httpServer, c *gin.Context)
- func GetVersionInfo(s *httpServer, c *gin.Context)
- func GetVipInfo(s *httpServer, c *gin.Context)
- func GetWordSlices(s *httpServer, c *gin.Context)
- func HandleQuickOperation(s *httpServer, c *gin.Context)
- func NewHttpClient() *httpClient
- func NewWebsocketClient(conf *global.GoCQReverseWebsocketConfig, authToken string, b *coolq.CQBot) *websocketClient
- func OcrImage(s *httpServer, c *gin.Context)
- func ProcessFriendRequest(s *httpServer, c *gin.Context)
- func ProcessGroupRequest(s *httpServer, c *gin.Context)
- func ReloadEventFilter(s *httpServer, c *gin.Context)
- func SendGroupForwardMessage(s *httpServer, c *gin.Context)
- func SendGroupMessage(s *httpServer, c *gin.Context)
- func SendGroupNotice(s *httpServer, c *gin.Context)
- func SendMessage(s *httpServer, c *gin.Context)
- func SendPrivateMessage(s *httpServer, c *gin.Context)
- func SetGroupAdmin(s *httpServer, c *gin.Context)
- func SetGroupBan(s *httpServer, c *gin.Context)
- func SetGroupCard(s *httpServer, c *gin.Context)
- func SetGroupKick(s *httpServer, c *gin.Context)
- func SetGroupLeave(s *httpServer, c *gin.Context)
- func SetGroupName(s *httpServer, c *gin.Context)
- func SetGroupPortrait(s *httpServer, c *gin.Context)
- func SetRestart(s *httpServer, c *gin.Context)
- func SetSpecialTitle(s *httpServer, c *gin.Context)
- func SetWholeBan(s *httpServer, c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var Console = make(chan os.Signal, 1)
View Source
var HttpServer = &httpServer{}
View Source
var HttpuriAdmin = map[string]func(s *webServer, c *gin.Context){ "do_restart": AdminDoRestart, "do_process_restart": AdminProcessRestart, "get_web_write": AdminWebWrite, "do_web_write": AdminDoWebWrite, "do_restart_docker": AdminDoRestartDocker, "do_config_base": AdminDoConfigBase, "do_config_http": AdminDoConfigHttp, "do_config_ws": AdminDoConfigWs, "do_config_reverse": AdminDoConfigReverse, "do_config_json": AdminDoConfigJson, "get_config_json": AdminGetConfigJson, }
admin 子站的 路由映射
View Source
var JsonConfig *global.JsonConfig
View Source
var Restart = make(chan struct{}, 1)
View Source
var WebInput = make(chan string, 1) //长度1,用于阻塞
View Source
var WebServer = &webServer{}
View Source
var WebsocketServer = &websocketServer{}
Functions ¶
func AdminDoConfigBase ¶ added in v0.9.27
普通配置修改
func AdminDoConfigHttp ¶ added in v0.9.27
http配置修改
func AdminDoConfigJson ¶ added in v0.9.27
config.json配置修改
func AdminDoConfigReverse ¶ added in v0.9.27
反向ws配置修改
func AdminDoRestartDocker ¶ added in v0.9.27
冷重启
func AdminGetConfigJson ¶ added in v0.9.27
拉取config.json配置
func AdminProcessRestart ¶ added in v0.9.32
进程重启
func AdminWebWrite ¶ added in v0.9.27
web输入 html 页面
func CanSendImage ¶ added in v0.9.31
func CanSendRecord ¶ added in v0.9.31
func DeleteMessage ¶ added in v0.9.31
func GetForwardMessage ¶ added in v0.9.31
func GetFriendList ¶ added in v0.9.31
func GetGroupFileSystemInfo ¶ added in v0.9.31
func GetGroupFileUrl ¶ added in v0.9.31
func GetGroupFilesByFolderId ¶ added in v0.9.31
func GetGroupHonorInfo ¶ added in v0.9.31
func GetGroupInfo ¶ added in v0.9.31
func GetGroupList ¶ added in v0.9.31
func GetGroupMemberInfo ¶ added in v0.9.31
func GetGroupMemberList ¶ added in v0.9.31
func GetGroupRootFiles ¶ added in v0.9.31
func GetGroupSystemMessage ¶ added in v0.9.31
func GetLoginInfo ¶ added in v0.9.31
func GetMessage ¶ added in v0.9.31
func GetStrangerInfo ¶ added in v0.9.31
func GetVersionInfo ¶ added in v0.9.31
func GetVipInfo ¶ added in v0.9.31
func GetWordSlices ¶ added in v0.9.31
func HandleQuickOperation ¶ added in v0.9.31
func NewHttpClient ¶ added in v0.9.2
func NewHttpClient() *httpClient
func NewWebsocketClient ¶ added in v0.9.2
func NewWebsocketClient(conf *global.GoCQReverseWebsocketConfig, authToken string, b *coolq.CQBot) *websocketClient
func ProcessFriendRequest ¶ added in v0.9.31
func ProcessGroupRequest ¶ added in v0.9.31
func ReloadEventFilter ¶ added in v0.9.31
func SendGroupForwardMessage ¶ added in v0.9.31
func SendGroupMessage ¶ added in v0.9.31
func SendGroupNotice ¶ added in v0.9.31
func SendMessage ¶ added in v0.9.31
func SendPrivateMessage ¶ added in v0.9.31
func SetGroupAdmin ¶ added in v0.9.31
func SetGroupBan ¶ added in v0.9.31
func SetGroupCard ¶ added in v0.9.31
func SetGroupKick ¶ added in v0.9.31
func SetGroupLeave ¶ added in v0.9.31
func SetGroupName ¶ added in v0.9.31
func SetGroupPortrait ¶ added in v0.9.31
func SetRestart ¶ added in v0.9.32
func SetSpecialTitle ¶ added in v0.9.31
func SetWholeBan ¶ added in v0.9.31
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.