Documentation ¶
Index ¶
Constants ¶
View Source
const ErrNotFound = errors.Sentinel("not found in store")
ErrNotFound ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelStore ¶
type ChannelStore interface { Channel(id string) (*revolt.Channel, error) PutChannel(*revolt.Channel) error RemoveChannel(id string) error ResetChannels() error }
ChannelStore is a channel store interface.
type ServerStore ¶
type ServerStore interface { Server(id string) (*revolt.Server, error) PutServer(*revolt.Server) error RemoveServer(id string) error ResetServers() error }
ServerStore is a server store interface.
type Store ¶
type Store interface { ChannelStore UserStore ServerStore }
Store is a cache interface.
Click to show internal directories.
Click to hide internal directories.