repo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharactersRepo

type CharactersRepo struct {
	*postgres.Postgres
}

func NewCharactersRepo

func NewCharactersRepo(pg *postgres.Postgres) *CharactersRepo

func (*CharactersRepo) GetCharacterById

func (r *CharactersRepo) GetCharacterById(ctx context.Context, id string) (model.Character, error)

func (*CharactersRepo) GetCharacters

func (r *CharactersRepo) GetCharacters(ctx context.Context, count int, cursor string) ([]model.Character, string, string, error)

type FiguresRepo

type FiguresRepo struct {
	*postgres.Postgres
	config.Storage
}

func NewFiguresRepo

func NewFiguresRepo(pg *postgres.Postgres, s config.Storage) *FiguresRepo

func (*FiguresRepo) GetFigureById

func (r *FiguresRepo) GetFigureById(ctx context.Context, id string) (model.Figure, error)

GetFigureById

func (*FiguresRepo) GetFigures

func (r *FiguresRepo) GetFigures(ctx context.Context, count int, cursor string) ([]model.Figure, string, string, error)

GetFigures -

type ImagesRepo

type ImagesRepo struct {
	*postgres.Postgres
	config.Storage
}

func NewImagesRepo

func NewImagesRepo(pg *postgres.Postgres, s config.Storage) *ImagesRepo

func (*ImagesRepo) GetImagesPathByEntityId

func (r *ImagesRepo) GetImagesPathByEntityId(ctx context.Context, id, entity, preview string) ([]model.Image, error)

GetImagesPathByEntityId -

Jump to

Keyboard shortcuts

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