Documentation
¶
Index ¶
- type Store
- func (s *Store) Add(client *realtime.Client) error
- func (s *Store) Clients(ctx context.Context, roomID string) ([]string, error)
- func (s *Store) Get(clientID string) (*realtime.Client, bool)
- func (s *Store) GetRoomClients(roomID string) []*realtime.Client
- func (s *Store) GetUserClients(userID string) []*realtime.Client
- func (s *Store) Heartbeat(ctx context.Context, clientID string) error
- func (s *Store) IsOnline(ctx context.Context, clientID string) (bool, error)
- func (s *Store) Join(ctx context.Context, roomID string, clientID string) error
- func (s *Store) Leave(ctx context.Context, roomID string, clientID string) error
- func (s *Store) Offline(ctx context.Context, clientID string) error
- func (s *Store) Online(ctx context.Context, clientID string, identity *realtime.Identity) error
- func (s *Store) Remove(clientID string) error
- func (s *Store) Rooms(ctx context.Context, clientID string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.