repopg

package
v0.0.0-...-d925d56 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

repopg реализует методы хранилища на postgresql

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoPg

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

func New

func New(cfg *config.Config) (*RepoPg, error)

CRUDL для фирм (postgres)

func (*RepoPg) CreateEntity

func (pg *RepoPg) CreateEntity(tkn string, frm object.Entity) (int, error)

CRUDL для фирм (postgres) TODO проверить токен

func (*RepoPg) CreateObligation

func (pg *RepoPg) CreateObligation(tkn string, o object.Obligation) (int, error)

TODO проверить токен

func (*RepoPg) CreateOrigin

func (pg *RepoPg) CreateOrigin(tkn string, orn object.Origin) (int, error)

TODO проверить токен

func (*RepoPg) ListEntity

func (pg *RepoPg) ListEntity(tkn string) ([]object.Entity, error)

TODO проверить токен

func (*RepoPg) ListObligation

func (pg *RepoPg) ListObligation(tkn string) ([]object.Obligation, error)

TODO проверить токен

func (*RepoPg) Stop

func (pg *RepoPg) Stop()

Jump to

Keyboard shortcuts

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