Documentation ¶
Index ¶
- type LGTMsRepository
- func (repo *LGTMsRepository) Create(img *entities.LGTMImage) (*entities.LGTM, error)
- func (repo *LGTMsRepository) Delete(id string) error
- func (repo *LGTMsRepository) Find(id string) (*entities.LGTM, bool, error)
- func (repo *LGTMsRepository) FindAll() (entities.LGTMs, error)
- func (repo *LGTMsRepository) FindAllAfter(lgtm *entities.LGTM) (entities.LGTMs, error)
- func (repo *LGTMsRepository) FindRandomly() (entities.LGTMs, error)
- type ReportsRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LGTMsRepository ¶
func NewLGTMsRepository ¶
func NewLGTMsRepository(s3api s3.ClientAPI, db *dynamo.DB) *LGTMsRepository
func (*LGTMsRepository) Delete ¶
func (repo *LGTMsRepository) Delete(id string) error
func (*LGTMsRepository) FindAllAfter ¶
func (*LGTMsRepository) FindRandomly ¶
func (repo *LGTMsRepository) FindRandomly() (entities.LGTMs, error)
type ReportsRepository ¶
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)
Click to show internal directories.
Click to hide internal directories.