plugin

package
v0.1.8-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CqCallBack

func CqCallBack(callback callback.Full)

func CqEntry

func CqEntry(ctx *gin.Context)

func CqRegister

func CqRegister(plugin CqPlugin)

func CqWebSocketForward

func CqWebSocketForward()

func CqWebSocketReverse

func CqWebSocketReverse(ctx *gin.Context)

func DiscordEntry

func DiscordEntry(ctx *gin.Context)

func SlackEntry

func SlackEntry(ctx *gin.Context)

func TelegramEntry

func TelegramEntry(ctx *gin.Context)

Types

type CommonInfo

type CommonInfo interface {
	Info() InfoStruct
}

type CqPlugin

type CqPlugin interface {
	CommonInfo
	Message(callback callback.Full)
	Request(callback callback.Full)
	Notice(callback callback.Full)
	MetaEvent(callback callback.Full)
}

type InfoStruct

type InfoStruct struct {
	Name        string
	Version     string
	Author      string
	Description string
	License     string
	Homepage    string
	Repository  string
	Type        string
}

Jump to

Keyboard shortcuts

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