repo

package
v0.0.0-...-899c296 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresDB

func NewPostgresDB(str string) (*pgxpool.Pool, error)

Types

type Repo

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

func NewRepo

func NewRepo(db *pgxpool.Pool) *Repo

func (*Repo) AllRequests

func (r *Repo) AllRequests() ([]models.Request, error)

func (*Repo) GetRequest

func (r *Repo) GetRequest(requestId int) (models.Request, error)

func (*Repo) SaveRequest

func (r *Repo) SaveRequest(request models.Request) (int, error)

func (*Repo) SaveResponse

func (r *Repo) SaveResponse(reqId int, response models.Response) error

Jump to

Keyboard shortcuts

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