Documentation
¶
Index ¶
- type Auth
- type AuthService
- func (a *AuthService) Refresh(ctx context.Context, id int, token string) (string, string, error)
- func (a *AuthService) SignIn(ctx context.Context, dto models.UserSignInDTO) (int, string, string, error)
- func (a *AuthService) SignUp(ctx context.Context, dto models.UserSingUpDTO) (int, string, string, error)
- type Chat
- type ChatService
- func (c *ChatService) AddMembers(ctx context.Context, id int, dto models.ChatAddMemberDTO) error
- func (c *ChatService) CreateChat(ctx context.Context, id int, dto models.ChatCreateDTO) (int, error)
- func (c *ChatService) RemoveMembers(ctx context.Context, id int, dto models.ChatRemoveMemberDTO) error
- type Message
- type Service
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct { logger.Logger repository.Auth // contains filtered or unexported fields }
func NewAuthService ¶
func NewAuthService(logger logger.Logger, auth repository.Auth, accessConverter *fst.EncodedConverter, refreshConverter *fst.EncodedConverter) *AuthService
type ChatService ¶
type ChatService struct { logger.Logger repository.Chat // contains filtered or unexported fields }
func NewChatService ¶
func NewChatService(logger logger.Logger, chat repository.Chat, accessConverter *fst.EncodedConverter, refreshConverter *fst.EncodedConverter) *ChatService
func (*ChatService) AddMembers ¶
func (c *ChatService) AddMembers(ctx context.Context, id int, dto models.ChatAddMemberDTO) error
func (*ChatService) CreateChat ¶
func (c *ChatService) CreateChat(ctx context.Context, id int, dto models.ChatCreateDTO) (int, error)
func (*ChatService) RemoveMembers ¶
func (c *ChatService) RemoveMembers(ctx context.Context, id int, dto models.ChatRemoveMemberDTO) error
type Service ¶
func NewService ¶
func NewService(logger logger.Logger, repository *repository.Repository, accessConverter *fst.EncodedConverter, refreshConverter *fst.EncodedConverter) *Service
Click to show internal directories.
Click to hide internal directories.