Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageBuffer ¶
MessageBuffer is the buffer to hold message for clients not online
func NewMessageBuffer ¶
func NewMessageBuffer() *MessageBuffer
NewMessageBuffer creates a MessageBuffer
func (*MessageBuffer) AddMessage ¶
func (messageBuffer *MessageBuffer) AddMessage(clientID []byte, msg *pb.Relay)
AddMessage adds a message to message buffer
func (*MessageBuffer) PopMessages ¶
func (messageBuffer *MessageBuffer) PopMessages(clientID []byte) []*pb.Relay
PopMessages reads and clears all messages of a client
Click to show internal directories.
Click to hide internal directories.