Documentation
¶
Index ¶
- type AuthController
- func (a *AuthController) Exit()
- func (a *AuthController) GetAuthedUser() models.User
- func (a *AuthController) LogOut() error
- func (a *AuthController) Login(email, password string) (*models.User, error)
- func (a *AuthController) Register(username, email, password string) (*map[string]interface{}, error)
- func (a *AuthController) Search(searchString string) ([]string, error)
- func (a *AuthController) SetContext(ctx context.Context)
- type ChatController
- type MessageController
- type SignalingController
- type UserController
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
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 ¶
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
Click to show internal directories.
Click to hide internal directories.