middleware

package
v0.0.0-...-3db1f35 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHtmlAttributeString

func GetHtmlAttributeString(htmlAttribute HtmlAttributeDefinition) string

func GrabImageUrl

func GrabImageUrl(db database.MongoDb, parentId interface{}) func(e *colly.HTMLElement)

func GrabImageUrlSelector

func GrabImageUrlSelector() string

func HtmlAttribute

func HtmlAttribute(db database.MongoDb, htmlAttribute HtmlAttributeDefinition) func(e *colly.HTMLElement)

func StoreRequest

func StoreRequest(db database.MongoDb, parentId interface{}) func(r *colly.Request)

func StoreResponse

func StoreResponse(db database.MongoDb, parentId interface{}) func(r *colly.Response)

Types

type HtmlAttributeDefinition

type HtmlAttributeDefinition struct {
	Collection  string `yaml:"collection"`
	Selector    string `yaml:"selector"`
	Tag         string `yaml:"tag"`
	Attr        string `yaml:"attr"`
	ContextAttr string `yaml:"context-attr"`
}

Jump to

Keyboard shortcuts

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