Documentation ¶
Index ¶
- func CheckAccessToken(token string, authRepo repositories.IAuthRepository, ...) (user models.User, err error)
- func CreateAccessToken(login models.Login, authRepo repositories.IAuthRepository) (token models.Accesstoken, err error)
- func CreateMessage(fromUser models.User, toUser string, message models.MessageCreate, ...) (createdMessage models.Message, err error)
- func CreateUser(signup models.Signup, authRepo repositories.IAuthRepository) (user models.User)
- func GetUserMessages(fromUser models.User, toUser string, userRepo repositories.IUserRepository, ...) (messages repositories.Messages, err error)
- func GetUsers(userRepo repositories.IUserRepository) repositories.Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAccessToken ¶
func CheckAccessToken( token string, authRepo repositories.IAuthRepository, userRepo repositories.IUserRepository, ) (user models.User, err error)
CheckAccessToken usecases checks access token
func CreateAccessToken ¶
func CreateAccessToken( login models.Login, authRepo repositories.IAuthRepository, ) (token models.Accesstoken, err error)
CreateAccessToken usecase returns access token
func CreateMessage ¶
func CreateMessage( fromUser models.User, toUser string, message models.MessageCreate, userRepo repositories.IUserRepository, messageRepo repositories.IMessageRepository, ) (createdMessage models.Message, err error)
CreateMessage inserts message to Database
func CreateUser ¶
func CreateUser( signup models.Signup, authRepo repositories.IAuthRepository, ) (user models.User)
CreateUser Creates User
func GetUserMessages ¶
func GetUserMessages( fromUser models.User, toUser string, userRepo repositories.IUserRepository, messageRepo repositories.IMessageRepository, ) (messages repositories.Messages, err error)
GetUserMessages returns users messages
func GetUsers ¶
func GetUsers(userRepo repositories.IUserRepository) repositories.Users
GetUsers usecase returns user list
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.