rule

package
v0.0.0-...-ee3a955 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JandanRule

type JandanRule struct{}

func (*JandanRule) ImageRule

func (p *JandanRule) ImageRule(doc *goquery.Document, f func(image string))

func (*JandanRule) PageRule

func (p *JandanRule) PageRule(currentPage int) (page string)

func (*JandanRule) UrlRule

func (p *JandanRule) UrlRule() (url string)

type MeiRule

type MeiRule struct{}

func (*MeiRule) ImageRule

func (p *MeiRule) ImageRule(doc *goquery.Document, f func(image string))

func (*MeiRule) PageRule

func (p *MeiRule) PageRule(currentPage int) (page string)

func (*MeiRule) UrlRule

func (p *MeiRule) UrlRule() string

type Rule

type Rule interface {
	UrlRule() (url string)
	PageRule(currentPage int) (page string)
	ImageRule(doc *goquery.Document, f func(image string))
}

func RuleProvider

func RuleProvider() Rule

Jump to

Keyboard shortcuts

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