controller

package
v0.0.0-...-6b7787b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2019 License: MIT Imports: 5 Imported by: 0

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 New

func New(conf *config.Config) (*Controller, error)

New creates controller

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL