Documentation ¶
Index ¶
- type App
- func (a App) Create(ctx context.Context, o model.Ketchup) (uint64, error)
- func (a App) Delete(ctx context.Context, o model.Ketchup) error
- func (a App) DoAtomic(ctx context.Context, action func(context.Context) error) error
- func (a App) GetByRepository(ctx context.Context, id uint64, pattern string, forUpdate bool) (model.Ketchup, error)
- func (a App) List(ctx context.Context, pageSize uint, last string) ([]model.Ketchup, uint64, error)
- func (a App) ListByRepositoriesID(ctx context.Context, ids []uint64, frequency model.KetchupFrequency) ([]model.Ketchup, error)
- func (a App) ListOutdatedByFrequency(ctx context.Context, frequency model.KetchupFrequency, userIds ...uint64) ([]model.Ketchup, error)
- func (a App) Update(ctx context.Context, o model.Ketchup, oldPattern string) error
- func (a App) UpdateAll(ctx context.Context) error
- func (a App) UpdateVersion(ctx context.Context, userID, repositoryID uint64, pattern, version string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App of package
func (App) GetByRepository ¶ added in v1.14.0
func (a App) GetByRepository(ctx context.Context, id uint64, pattern string, forUpdate bool) (model.Ketchup, error)
GetByRepository retrieves ketchup for a repository and patern
func (App) ListByRepositoriesID ¶
func (a App) ListByRepositoriesID(ctx context.Context, ids []uint64, frequency model.KetchupFrequency) ([]model.Ketchup, error)
ListByRepositoriesID lists ketchup by repositories id
func (App) ListOutdatedByFrequency ¶ added in v1.12.0
func (a App) ListOutdatedByFrequency(ctx context.Context, frequency model.KetchupFrequency, userIds ...uint64) ([]model.Ketchup, error)
ListOutdatedByFrequency lists outdated ketchup by frequency id
Click to show internal directories.
Click to hide internal directories.