Documentation ¶
Index ¶
- Constants
- Variables
- type Message
- func (msg *Message) Delete(text string) error
- func (msg *Message) EditText(text string) error
- func (msg *Message) GetNotAddressedText() string
- func (msg *Message) GetQuote() string
- func (msg *Message) KickUser()
- func (msg *Message) React(emoji string) error
- func (msg *Message) Reply(text string) (Message, error)
- func (msg *Message) SetIsTyping(typing bool) error
- type RocketCon
- func (rock *RocketCon) GetMessage() (Message, error)
- func (rock *RocketCon) GetNewMessage() (Message, error)
- func (rock *RocketCon) ListCustomEmojis() ([]string, error)
- func (rock *RocketCon) React(mid string, emoji string) error
- func (rock *RocketCon) RefreshChannelCache() error
- func (rock *RocketCon) RequestMessage(mid string) (Message, error)
- func (rock *RocketCon) RequestUserName(userid string) string
- func (rock *RocketCon) SendMessage(rid string, text string) (Message, error)
- func (rock *RocketCon) UserDefaultStatus(status string) error
- func (rock *RocketCon) UserTemporaryStatus(status string) error
Constants ¶
View Source
const STATUS_AWAY string = "away"
View Source
const STATUS_BUSY string = "busy"
View Source
const STATUS_OFFLINE string = "offline"
View Source
const STATUS_ONLINE string = "online"
Variables ¶
View Source
var BUILTIN_EMOJIS []string = []string{}/* 1682 elements not displayed */
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { IsNew bool `yaml:"IsNew"` IsAddressedToMe bool `yaml:"IsAddressedToMe"` IsDirect bool `yaml:"IsDirect"` IsMention bool `yaml:"IsMention"` IsEdited bool `yaml:"IsEdited"` IsMe bool `yaml:"IsMe"` Id string `yaml:"Id"` UserName string `yaml:"UserName"` UserId string `yaml:"UserId"` RoomName string `yaml:"RoomName"` RoomId string `yaml:"RoomId"` Text string `yaml:"Text"` Timestamp time.Time `yaml:"Timestamp"` UpdatedAt time.Time `yaml:"UpdatedAt"` Reactions map[string][]string `yaml:"Reactions"` Attachments []attachment `yaml:"Attachments"` QuotedMsgs []string `yaml:"QuotedMsgs"` // contains filtered or unexported fields }
func (*Message) GetNotAddressedText ¶
func (*Message) SetIsTyping ¶
type RocketCon ¶
type RocketCon struct { UserId string UserName string `yaml:"user"` Password string `yaml:"password"` AuthToken string `yaml:"authtoken"` HostName string `yaml:"domain"` HostSSL bool `yaml:"ssl"` HostPort uint16 `yaml:"port"` // contains filtered or unexported fields }
func NewConnection ¶
func NewConnectionAuthToken ¶
func NewConnectionConfig ¶
func (*RocketCon) GetMessage ¶
func (*RocketCon) GetNewMessage ¶
func (*RocketCon) ListCustomEmojis ¶
func (*RocketCon) RefreshChannelCache ¶
func (*RocketCon) RequestMessage ¶
func (*RocketCon) RequestUserName ¶
func (*RocketCon) SendMessage ¶
func (*RocketCon) UserDefaultStatus ¶
func (*RocketCon) UserTemporaryStatus ¶
Click to show internal directories.
Click to hide internal directories.