repositories

package
v0.0.0-...-9296acd Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LGTMsRepository

type LGTMsRepository struct {
	S3API    s3.ClientAPI
	DynamoDB *dynamo.DB
	DBPrefix string
}

func NewLGTMsRepository

func NewLGTMsRepository(s3api s3.ClientAPI, db *dynamo.DB) *LGTMsRepository

func (*LGTMsRepository) Create

func (repo *LGTMsRepository) Create(img *entities.LGTMImage) (*entities.LGTM, error)

func (*LGTMsRepository) Delete

func (repo *LGTMsRepository) Delete(id string) error

func (*LGTMsRepository) Find

func (repo *LGTMsRepository) Find(id string) (*entities.LGTM, bool, error)

func (*LGTMsRepository) FindAll

func (repo *LGTMsRepository) FindAll() (entities.LGTMs, error)

func (*LGTMsRepository) FindAllAfter

func (repo *LGTMsRepository) FindAllAfter(lgtm *entities.LGTM) (entities.LGTMs, error)

func (*LGTMsRepository) FindRandomly

func (repo *LGTMsRepository) FindRandomly() (entities.LGTMs, error)

type ReportsRepository

type ReportsRepository struct {
	DynamoDB *dynamo.DB
	DBPrefix string
}

func NewReportsRepository

func NewReportsRepository(db *dynamo.DB, dbPrefix string) *ReportsRepository

func (*ReportsRepository) Create

func (repo *ReportsRepository) Create(lgtmid string, t entities.ReportType, text string) (*entities.Report, error)

Jump to

Keyboard shortcuts

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