plugin

package
v0.1.16-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 5 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)

func WhCallBack

func WhCallBack(callback webhook.Data)

func WhEntry

func WhEntry(ctx *gin.Context)

func WhRegister

func WhRegister(plugin WhPlugin)

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
}

type WhPlugin

type WhPlugin interface {
	CommonInfo
	Receive(callback webhook.Data)
}

Jump to

Keyboard shortcuts

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