Documentation ¶
Overview ¶
repopg реализует методы хранилища на postgresql
Index ¶
- type RepoPg
- func (pg *RepoPg) CreateEntity(tkn string, frm object.Entity) (int, error)
- func (pg *RepoPg) CreateObligation(tkn string, o object.Obligation) (int, error)
- func (pg *RepoPg) CreateOrigin(tkn string, orn object.Origin) (int, error)
- func (pg *RepoPg) ListEntity(tkn string) ([]object.Entity, error)
- func (pg *RepoPg) ListObligation(tkn string) ([]object.Obligation, error)
- func (pg *RepoPg) Stop()
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 (*RepoPg) CreateEntity ¶
CRUDL для фирм (postgres) TODO проверить токен
func (*RepoPg) CreateObligation ¶
TODO проверить токен
func (*RepoPg) CreateOrigin ¶
TODO проверить токен
func (*RepoPg) ListEntity ¶
TODO проверить токен
func (*RepoPg) ListObligation ¶
func (pg *RepoPg) ListObligation(tkn string) ([]object.Obligation, error)
TODO проверить токен
Click to show internal directories.
Click to hide internal directories.