Documentation ¶
Index ¶
- type Client
- func (s *Client) AppendMessage(id string, m *goch.Message) error
- func (s *Client) Get(id string) (*goch.Chat, error)
- func (s *Client) GetRecent(id string, n int64) ([]goch.Message, uint64, error)
- func (s *Client) GetUnreadCount(uid string, id string) uint64
- func (s *Client) ListChannels() ([]string, error)
- func (s *Client) Save(ct *goch.Chat) error
- func (s *Client) UpdateLastClientSeq(uid string, id string, seq uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents Redis client
func (*Client) AppendMessage ¶
AppendMessage adds new message
func (*Client) GetRecent ¶
GetRecent returns list of recent messages, and sequence until last message
func (*Client) GetUnreadCount ¶
GetUnreadCount returns number of unread messages
func (*Client) ListChannels ¶
ListChannels returns list of all channels
Click to show internal directories.
Click to hide internal directories.