Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveUsersRepo ¶ added in v0.3.0
type Chat ¶ added in v0.4.0
type Chat struct {
// contains filtered or unexported fields
}
func NewChat ¶ added in v0.4.0
func NewChat(h *Hub, a ActiveUsersRepo, t TokensRepo, m MessagesRepo) *Chat
func (*Chat) HandleChat ¶ added in v0.4.0
func (c *Chat) HandleChat(w http.ResponseWriter, r *http.Request, params server.WsRTMStartParams)
type Client ¶ added in v0.4.0
type Client struct {
// contains filtered or unexported fields
}
Client is a middleman between the websocket connection and the hub.
type Hub ¶ added in v0.4.0
type Hub struct {
// contains filtered or unexported fields
}
Hub maintains the set of active clients and broadcasts messages to the clients.
type MessagesRepo ¶ added in v0.4.0
type TokensRepo ¶ added in v0.3.0
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func NewUsers ¶
func NewUsers(u UsersRepo, a ActiveUsersRepo, t TokensRepo) *Users
func (*Users) HandleUserActive ¶ added in v0.3.0
func (u *Users) HandleUserActive(w http.ResponseWriter, r *http.Request)
func (*Users) HandleUserCreate ¶
func (u *Users) HandleUserCreate(w http.ResponseWriter, r *http.Request)
func (*Users) HandleUserLogin ¶
func (u *Users) HandleUserLogin(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.