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: 5 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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