Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigCache ¶
type ConfigCache struct {
// contains filtered or unexported fields
}
ConfigCache caches per-user typing tickets obtained from GetConfig.
func NewConfigCache ¶
func NewConfigCache(c *client.Client) *ConfigCache
NewConfigCache creates a new ConfigCache.
func (*ConfigCache) GetTicket ¶
GetTicket returns a cached typing ticket for the user, or fetches a new one.
func (*ConfigCache) Invalidate ¶
func (cc *ConfigCache) Invalidate(userID string)
Invalidate removes the cached ticket for a user.
type KeepAlive ¶
type KeepAlive struct {
// contains filtered or unexported fields
}
KeepAlive manages periodic typing indicator sending for a user session.
func NewKeepAlive ¶
func NewKeepAlive(c *client.Client, cache *ConfigCache) *KeepAlive
NewKeepAlive creates a new KeepAlive with the given client and config cache.
Click to show internal directories.
Click to hide internal directories.