Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Do ¶
func Do( rc *butlerd.RequestContext, ft models.FetchTarget, params LazyFetchParams, res LazyFetchResponse, task Task)
func EnsureFresh ¶
func EnsureFresh(target interface{}, f EnsureFreshFunc) error
Types ¶
type EnsureFreshFunc ¶
type EnsureFreshFunc func(fresh bool) (LazyFetchResponse, error)
type LazyFetchParams ¶
type LazyFetchParams interface {
IsFresh() bool
}
type LazyFetchResponse ¶
type LazyFetchResponse interface {
SetStale(stale bool)
}
type Targets ¶
type Targets interface {
Add(ft models.FetchTarget)
}
Click to show internal directories.
Click to hide internal directories.