picture

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Picture

type Picture struct {
	Saver       saver.Saver
	Loader      loader.Loader
	Filters     []filter.Filter
	Encoder     encoder.Encoder
	HostPattern *regexp.Regexp
	PathPattern *regexp.Regexp
}

func New

func New(saver saver.Saver, loader loader.Loader, filters []filter.Filter, encoder encoder.Encoder, hostPattern *regexp.Regexp, pathPattern *regexp.Regexp) *Picture

func NewPictureFromConfig

func NewPictureFromConfig(c interface{}) (*Picture, error)

func (Picture) Match

func (p Picture) Match(host, path string) bool

type Pictures

type Pictures []*Picture

func NewPicturesFromConfig

func NewPicturesFromConfig(c []interface{}) (Pictures, error)

func (Pictures) Match

func (p Pictures) Match(host, path string) (*Picture, error)

Jump to

Keyboard shortcuts

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