chat

package
v0.5.32 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatChannel

type ChatChannel struct {
	channel.NoSave
	channel.Limit
	channel.NoRunClose
	// contains filtered or unexported fields
}

func New

func New(log *log.Logger, hist *history.HistoryChannel) *ChatChannel

func (*ChatChannel) AddBot

func (c *ChatChannel) AddBot(cmd string, bot bot.Bot)

func (*ChatChannel) DecodeHistoryItem

func (c *ChatChannel) DecodeHistoryItem(r channel.BinaryReader) (channel.Msg, error)

func (*ChatChannel) FromHistory

func (c *ChatChannel) FromHistory(to channel.Client, l history.Log) ([]channel.Batch, error)

func (*ChatChannel) Handle

func (c *ChatChannel) Handle(cl channel.Client, m data.Message) error

func (*ChatChannel) HandleBIN

func (c *ChatChannel) HandleBIN(cl channel.Client, r channel.BinaryReader) error

func (*ChatChannel) HandleJSON

func (c *ChatChannel) HandleJSON(cl channel.Client, r io.Reader) (io.Reader, error)

func (*ChatChannel) Register

func (c *ChatChannel) Register(chnl string, s channel.Sender) error

func (*ChatChannel) UserUpdate

func (c *ChatChannel) UserUpdate(cl channel.Client, r channel.ConnectionReason) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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