Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatController ¶
type ChatController struct { ActiveUsersCache cache.ActiveUsersCacheInterface MessageModel models.MessageInterface TokenModel models.TokenInterface UserModel models.UserInterface // contains filtered or unexported fields }
func NewChatController ¶
func NewChatController( activeUsersCache cache.ActiveUsersCacheInterface, messageModel models.MessageInterface, tokenModel models.TokenInterface, userModel models.UserInterface, ) *ChatController
func (*ChatController) GetActiveUsersCount ¶
func (c *ChatController) GetActiveUsersCount(response http.ResponseWriter, request *http.Request)
func (*ChatController) StartChat ¶
func (c *ChatController) StartChat(response http.ResponseWriter, request *http.Request)
type UserController ¶
type UserController struct { TokenModel models.TokenInterface UserModel models.UserInterface }
func NewUserController ¶
func NewUserController(tokenModel models.TokenInterface, userModel models.UserInterface) *UserController
func (*UserController) Login ¶
func (c *UserController) Login(response http.ResponseWriter, request *http.Request)
func (*UserController) Register ¶
func (c *UserController) Register(response http.ResponseWriter, request *http.Request)
Click to show internal directories.
Click to hide internal directories.