Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRoomNotFound = errors.New("room not found")
ErrRoomNotFound indicates that the requested room was not found.
Functions ¶
This section is empty.
Types ¶
type Room ¶
type Room struct { ID string `json:"id"` Name string `json:"name"` Password []byte `json:"password"` CreatedAt time.Time `json:"created_at"` }
Room represents the properties of a room in the store.
type Store ¶
type Store interface { AddRoom(r Room, ttl time.Duration) error GetRoom(id string) (Room, error) ExtendRoomTTL(id string, ttl time.Duration) error RoomExists(id string) (bool, error) RemoveRoom(id string) error AddSession(sessID, handle, roomID string, ttl time.Duration) error GetSession(sessID, roomID string) (Sess, error) RemoveSession(sessID, roomID string) error ClearSessions(roomID string) error Get(key string) ([]byte, error) Set(key string, value []byte) error }
Store represents a backend store.
Click to show internal directories.
Click to hide internal directories.