chat

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginName contains the human-readable name of the plugin.
	PluginName = "Chat"
)

Variables

View Source
var (
	// Plugin is the "plugin" instance of the chat application.
	Plugin *node.Plugin
)

Functions

func SendChatBlock

func SendChatBlock(c echo.Context) error

SendChatBlock sends a chat block.

Types

type Request

type Request struct {
	From  string `json:"from"`
	To    string `json:"to"`
	Block string `json:"block"`
}

Request defines the chat block to send.

type Response

type Response struct {
	BlockID string `json:"blockID,omitempty"`
	Error   string `json:"error,omitempty"`
}

Response contains the ID of the block sent.

Jump to

Keyboard shortcuts

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