Documentation
¶
Overview ¶
Package config provides cached access to WeChat iLink bot config.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache provides per-user getConfig caching with TTL and exponential backoff.
func (*Cache) GetForUser ¶
GetForUser returns the cached config for a user, fetching if necessary.
type CachedConfig ¶
type CachedConfig struct {
TypingTicket string
}
CachedConfig is the subset of getconfig fields we cache.
Click to show internal directories.
Click to hide internal directories.