infrastructure

package
v0.0.0-...-7b027cb Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTaskClientStoragePostgres

func NewTaskClientStoragePostgres(pool *pgxpool.Pool) client.TaskClientStorage

Types

type TaskClientStoragePostgres

type TaskClientStoragePostgres struct {
	PoolConn *pgxpool.Pool
}

func (TaskClientStoragePostgres) AddTask

func (t TaskClientStoragePostgres) AddTask(task client.Task) error

func (TaskClientStoragePostgres) CreateTaskType

func (t TaskClientStoragePostgres) CreateTaskType(taskType client.TaskType) error

func (TaskClientStoragePostgres) GetAllTaskNotStartedByType

func (t TaskClientStoragePostgres) GetAllTaskNotStartedByType(name string) ([]client.Task, error)

func (TaskClientStoragePostgres) GetTaskTypeByName

func (t TaskClientStoragePostgres) GetTaskTypeByName(name string) (client.TaskType, error)

func (TaskClientStoragePostgres) UpdateTask

func (t TaskClientStoragePostgres) UpdateTask(task client.Task) error

Jump to

Keyboard shortcuts

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