storage

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: 6 Imported by: 0

Documentation

Overview

Package storage provides implementation of Postgesql storage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage implements db handling with Postgesql

func New

func New(s *config.Config) (*Storage, error)

New provides init for postgesql storage

func (*Storage) Close

func (s *Storage) Close() error

Close provides closing of db

func (*Storage) Insert

func (s *Storage) Insert(m *models.Message) error

Insert provides inserting of data

func (*Storage) Search

func (s *Storage) Search(sr *models.SearchMessages) ([]*models.Message, error)

Search provides finding data

Jump to

Keyboard shortcuts

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