lazyfetch

package
v14.14.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

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)
}

type Task

type Task func(t Targets)

Jump to

Keyboard shortcuts

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