Versions in this module Expand all Collapse all v0 v0.1.10 Oct 5, 2021 v0.1.9 Oct 5, 2021 Changes in this version + func RenderAndSanitize(raw string) string + func RenderMarkdown(raw string) string + type ActionEvent struct + func (e *ActionEvent) GetBroadcastPayload() EventPayload + func (e *ActionEvent) GetMessageType() EventType + type Event struct + ID string + Timestamp time.Time + Type EventType + func (e *Event) SetDefaults() + type EventPayload map[string]interface + type EventType = string + const ChatActionSent + const ChatDisabled + const ConnectedUserInfo + const ErrorMaxConnectionsExceeded + const ErrorNeedsRegistration + const ErrorUserDisabled + const MessageSent + const PING + const PONG + const StreamStarted + const StreamStopped + const SystemMessageSent + const UserJoined + const UserNameChanged + const VisibiltyToggled + type MessageEvent struct + Body string + RawBody string + func (m *MessageEvent) Empty() bool + func (m *MessageEvent) RenderAndSanitizeMessageBody() + func (m *MessageEvent) RenderBody() + type NameChangeBroadcast struct + Oldname string + func (e *NameChangeBroadcast) GetBroadcastPayload() EventPayload + type NameChangeEvent struct + NewName string + type OutboundEvent interface + GetBroadcastPayload func() EventPayload + GetMessageType func() EventType + type SystemActionEvent struct + type SystemMessageEvent struct + func (e *SystemMessageEvent) GetBroadcastPayload() EventPayload + func (e *SystemMessageEvent) GetMessageType() EventType + type UserDisabledEvent struct + func (e *UserDisabledEvent) GetBroadcastPayload() EventPayload + type UserEvent struct + ClientID uint + HiddenAt *time.Time + User *user.User + type UserJoinedEvent struct + func (e *UserJoinedEvent) GetBroadcastPayload() EventPayload + type UserMessageEvent struct + func (e *UserMessageEvent) GetBroadcastPayload() EventPayload + func (e *UserMessageEvent) GetMessageType() EventType + func (e *UserMessageEvent) SetDefaults()