cache

package
v0.0.0-...-c0d81ed Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCachePath = "tmp"

DefaultCachePath ...

Functions

func Hash

func Hash(url string) string

Hash ...

Types

type NetCacher

type NetCacher interface {
	Cache() cacher.Cacher
	GetReader(url string, force bool) (io.Reader, error)
	GetBytes(url string, force bool) ([]byte, error)
	HasURL(url string) bool
	Save(url, to string) (e error)
}

func New

func New(client *http.Client) NetCacher

New ...

type Querier

type Querier interface {
	Cache() cacher.Cacher
	Query(url string, force bool) (*goquery.Document, error)
	GetQuery(url string, force bool) (*goquery.Document, error)
	ForceQuery(url string) (*goquery.Document, error)
}

Querier ... @Description:

func NewQueryCache

func NewQueryCache(client *http.Client) Querier

func NoCacheQuery

func NoCacheQuery(client *http.Client) Querier

Jump to

Keyboard shortcuts

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