repository

package
v0.0.0-...-69dedca Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Images

type Images interface {
	Create(ctx context.Context, path string) (int, error)
	GetAll(ctx context.Context) ([]string, error)
	GetById(ctx context.Context, id int) (string, error)
}

type ImagesPostgres

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

func NewImagesPostgres

func NewImagesPostgres(db *pgxpool.Pool) *ImagesPostgres

func (*ImagesPostgres) Create

func (r *ImagesPostgres) Create(ctx context.Context, path string) (int, error)

func (*ImagesPostgres) GetAll

func (r *ImagesPostgres) GetAll(ctx context.Context) ([]string, error)

func (*ImagesPostgres) GetById

func (r *ImagesPostgres) GetById(ctx context.Context, id int) (string, error)

Jump to

Keyboard shortcuts

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