controllers

package
v0.0.0-...-6c5ee20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 10 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL