Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrChatsNotFound is returned when chats are not found. ErrChatsNotFound = errors.New("chats not found") // ErrChatsNotAllow is returned when chats are not allowed. ErrChatsNotAllow = errors.New("chats not allowed") // ErrCanNotSend is returned when a message cannot be sent. ErrCanNotSend = errors.New("can not send message") )
View Source
var ( // ErrCompanyNotFound is returned when a company is not found. ErrCompanyNotFound = errors.New("company not found") )
Functions ¶
func NewChatUsecases ¶
func NewChatUsecases(cs chatsStorage, coms companyStorage) *chatUsecases
NewChatUsecases returns a new instance of the chatUsecases struct, which provides use cases for managing chats. It takes in a chatsStorage interface and a companyStorage interface as parameters.
func NewCompanyUsecases ¶
func NewCompanyUsecases(cs companyStorage, chs chatStorage) *companyUsecases
NewCompanyUsecases creates a new instance of companyUsecases.
func NewSendMessageUsecases ¶
NewSendMessageUsecases creates a new instance of sendMessageUsacases with the provided dependencies.
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.