repository

package
v0.0.0-...-18809a6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresDB

func NewPostgresDB(cfg DBConfig) (*sqlx.DB, error)

Types

type DBConfig

type DBConfig struct {
	Host     string
	Port     string
	Username string
	Password string
	DBName   string
	SSLMode  string
}

type Poster

type Poster interface {
	Create(poster model.Poster) (err error)
}

type PosterPostgres

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

func NewPosterPostgres

func NewPosterPostgres(db *sqlx.DB) *PosterPostgres

func (*PosterPostgres) Create

func (r *PosterPostgres) Create(poster model.Poster) (err error)

type Repository

type Repository struct {
	Poster
	Tab
}

func NewRepository

func NewRepository(db *sqlx.DB) *Repository

type Tab

type Tab interface {
	CreateTabPath(tabs []string) (err error)
	AddPosterToQueues(posterId int, tabs []string) (err error)
}

type TabPostgres

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

func NewTabPostgres

func NewTabPostgres(db *sqlx.DB) *TabPostgres

func (*TabPostgres) AddPosterToQueues

func (r *TabPostgres) AddPosterToQueues(posterId int, tabs []string) (err error)

func (*TabPostgres) CreateTabPath

func (r *TabPostgres) CreateTabPath(tabs []string) (err error)

Jump to

Keyboard shortcuts

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