controllers

package
v0.0.0-...-c545503 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
	// contains filtered or unexported fields
}

func NewAuthController

func NewAuthController(authService *services.AuthService) *AuthController

func (*AuthController) Exit

func (a *AuthController) Exit()

func (*AuthController) GetAuthedUser

func (a *AuthController) GetAuthedUser() models.User

func (*AuthController) LogOut

func (a *AuthController) LogOut() error

func (*AuthController) Login

func (a *AuthController) Login(email, password string) (*models.User, error)

func (*AuthController) Register

func (a *AuthController) Register(username, email, password string) (*map[string]interface{}, error)

func (*AuthController) Search

func (a *AuthController) Search(searchString string) ([]string, error)

func (*AuthController) SetContext

func (a *AuthController) SetContext(ctx context.Context)

type ChatController

type ChatController struct {
	// contains filtered or unexported fields
}

func NewChatController

func NewChatController(chatRepo *repos.ChatRepo) *ChatController

func (*ChatController) GetChats

func (cc *ChatController) GetChats() ([]models.Chat, error)

type MessageController

type MessageController struct {
	// contains filtered or unexported fields
}

func NewMessageController

func NewMessageController(messageRepo *repos.MessageRepo) *MessageController

func (*MessageController) GetMessagesByChatID

func (mc *MessageController) GetMessagesByChatID(chat_id string) ([]models.Message, error)

func (*MessageController) SendMessage

func (mc *MessageController) SendMessage(content string, chat_id string) ([]models.Message, error)

type SignalingController

type SignalingController struct {
	// contains filtered or unexported fields
}

func NewSignalingController

func NewSignalingController(sn_con_handler *services.SnConnection) *SignalingController

func (*SignalingController) SearchDht

func (sc *SignalingController) SearchDht(username string) (models.User, error)

func (*SignalingController) SendOffer

func (sc *SignalingController) SendOffer(destIp string)

func (*SignalingController) SendUserAddRequest

func (sc *SignalingController) SendUserAddRequest(destIp string)

func (*SignalingController) SendUserAddResponse

func (sc *SignalingController) SendUserAddResponse(destIp string)

type UserController

type UserController struct {
	// contains filtered or unexported fields
}

func NewUserController

func NewUserController(userRepo *repos.UserRepo) *UserController

func (*UserController) GetUser

func (uc *UserController) GetUser(user_id string) (models.User, error)

func (*UserController) GetUsers

func (uc *UserController) GetUsers() ([]models.User, error)

Jump to

Keyboard shortcuts

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