Documentation ¶
Index ¶
Constants ¶
View Source
const ( DirectiveMaxAge = "max-age" DirectiveOnlyIfCached = "only-if-cached" )
Variables ¶
View Source
var (
ErrCacheMiss = errors.New("cache miss")
)
Functions ¶
Types ¶
type Getter ¶
type Getter interface { Get(url string) (http.Header, []byte, error) GetJson(url string, result interface{}) error GetJsonWith(headers map[string]string, url string, result interface{}) error GetXML(url string, result interface{}) error GetPLS(url string) (pls.Playlist, error) }
func NewCacheOnlyGetter ¶
Click to show internal directories.
Click to hide internal directories.