Documentation
¶
Index ¶
- func WithAuthValidator(next http.Handler, validator tokenValidator) http.Handler
- type Client
- type Hub
- func (h *Hub) ClientCount() int64
- func (h *Hub) HandleWS(w http.ResponseWriter, r *http.Request)
- func (h *Hub) IsOnline(userID user.ID) bool
- func (h *Hub) NotifyChannelDeleted(id channel.ID)
- func (h *Hub) NotifyChannelUpdated(ch channel.Channel)
- func (h *Hub) NotifyUserProfileUpdated(id user.ID)
- func (h *Hub) Run(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func NewHub ¶
func NewHub(broadcasts message.BroadcastRepository, devices device.Repository, channels channel.Repository) *Hub
func (*Hub) ClientCount ¶
func (*Hub) NotifyChannelDeleted ¶
func (*Hub) NotifyChannelUpdated ¶
func (*Hub) NotifyUserProfileUpdated ¶
Click to show internal directories.
Click to hide internal directories.