message

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelMessage

func ChannelMessage(client *model.Client4, from *model.User, channel *model.Channel, message string)

func DirectMessage

func DirectMessage(client *model.Client4, from, to *model.User, message string)

func SendMessage

func SendMessage(client *model.Client4, to *model.Channel, message string)

Types

type ChannelMsg

type ChannelMsg struct {
	To      string `yaml:"to"`
	Team    string `yaml:"team"`
	Message string `yaml:"message"`
}

func (*ChannelMsg) Send

func (msg *ChannelMsg) Send(client *model.Client4, from *model.User)

type DirectMsg

type DirectMsg struct {
	To      string `yaml:"to"`
	Message string `yaml:"message"`
}

func (*DirectMsg) Send

func (msg *DirectMsg) Send(client *model.Client4, from *model.User)

type Message

type Message struct {
	DirectMsg  *DirectMsg  `yaml:"direct"`
	ChannelMsg *ChannelMsg `yaml:"channel"`
}

func (*Message) Send

func (msg *Message) Send(client *model.Client4, from *model.User)

Jump to

Keyboard shortcuts

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