Documentation ¶
Overview ¶
Package controller defines the layer for communication between handler and storage
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller defines controller for user and storage
func (*Controller) SearchMessages ¶
func (c *Controller) SearchMessages(req *chat.SearchMessagesRequest) ([]*models.Message, error)
SearchMessages provides searching of the messages
func (*Controller) SendMessage ¶
func (c *Controller) SendMessage(req *chat.Message) error
SendMessage provides inserting of the new message
Click to show internal directories.
Click to hide internal directories.