purge

package
v0.0.0-...-5a03b40 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(ctx context.Context, logger *zap.Logger, varnishAddr string) bool

Func is the set of functions capable of purging the cache.

func New

func New(addr string) Func

New initializes and returns a Func which purges against the given Varnish address.

func (Func) Run

func (fn Func) Run(ctx context.Context, logger *zap.Logger, cache *cache.Cache)

Run runs the Func until the given Context is cancelled.

Jump to

Keyboard shortcuts

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