Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatService ¶
type ChatService struct {
// contains filtered or unexported fields
}
func NewChatService ¶
func NewChatService(repo repository.Chat, userRepo repository.User) *ChatService
func (*ChatService) GetAllForUser ¶
func (s *ChatService) GetAllForUser(userId string) ([]*model.Chat, error)
type MessageService ¶
type MessageService struct {
// contains filtered or unexported fields
}
func NewMessageService ¶
func NewMessageService(repo repository.Message, userRepo repository.User, chatRepo repository.Chat) *MessageService
func (*MessageService) Create ¶
func (s *MessageService) Create(message *model.Message) (string, error)
func (*MessageService) GetAllForChat ¶
func (s *MessageService) GetAllForChat(chatId string) ([]*model.Message, error)
type Service ¶
func NewService ¶
func NewService(repos *repository.Repository) *Service
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repo repository.User) *UserService
Click to show internal directories.
Click to hide internal directories.