chat

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 4

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 added in v0.9.2

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