Documentation ¶
Overview ¶
Package updater handles background refreshes of GitHub data
Index ¶
- type Config
- type PFunc
- type Updater
- func (u *Updater) ForceRefresh(ctx context.Context, id string) *triage.CollectionResult
- func (u *Updater) Lookup(ctx context.Context, id string, blocking bool) *triage.CollectionResult
- func (u *Updater) Loop(ctx context.Context) error
- func (u *Updater) Persist() error
- func (u *Updater) RefreshCollection(ctx context.Context, id string, newerThan time.Time, force bool) (bool, error)
- func (u *Updater) RunOnce(ctx context.Context, force bool) (bool, error)
- func (u *Updater) Status() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
func (*Updater) ForceRefresh ¶
func (*Updater) RefreshCollection ¶
func (u *Updater) RefreshCollection(ctx context.Context, id string, newerThan time.Time, force bool) (bool, error)
Run a single collection, optionally forcing an update
Click to show internal directories.
Click to hide internal directories.