storage

package
v0.0.0-...-46c5f80 Latest Latest
Warning

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

Go to latest
Published: May 11, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package storage contains handling with db(Postgesql)

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) CreateTask

func (s *Storage) CreateTask(t *pb.Task) (int64, error)

CreateTask provides inserting of the task

func (*Storage) GetTask

func (s *Storage) GetTask(id uint) (*models.Task, error)

GetTask provides provides getting of the task

Jump to

Keyboard shortcuts

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