Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DisplayMessage ¶
type DisplayMessage interface {
Body() string
}
Any message meant to be displayed in UI
type FriendRequest ¶
type FriendRequest struct { InfoMessage Username, IP string }
Friend request received
func NewFriendRequestMessage ¶
func NewFriendRequestMessage(info, username, ip string) *FriendRequest
type InfoMessage ¶
type InfoMessage struct { DisplayMessage Message string }
Message of just text information
func NewInfoMessage ¶
func NewInfoMessage(info string) *InfoMessage
func (*InfoMessage) Body ¶
func (m *InfoMessage) Body() string
type ReceiveChat ¶
type ReceiveChat struct { InfoMessage Sender string Time time.Time }
Chat message
func NewReceiveChatMessage ¶
func NewReceiveChatMessage(info, sender string, time time.Time) *ReceiveChat
Click to show internal directories.
Click to hide internal directories.