Documentation
¶
Index ¶
Constants ¶
View Source
const ( // default number of message to cache at any given time DefaultNumOfMsgToCache int = 50 )
Variables ¶
View Source
var ( // ErrItemNotFound item not found ErrItemNotFound = errors.New("item not found") )
Functions ¶
func ReplaceIndexes ¶
Types ¶
type MessageCache ¶
type MessageCache struct {
// contains filtered or unexported fields
}
func NewMessageCache ¶
func NewMessageCache() *MessageCache
func (*MessageCache) Push ¶
func (mc *MessageCache) Push(msgId, text, userId, name, email string) error
Click to show internal directories.
Click to hide internal directories.