cmd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlertTypeCdmxCustom    = "cdmx-custom"
	AlertTypeChisHasVistoA = "chis-hasvistoa"
	AlertTypeGroAlba       = "gro-alba"
	AlertTypeGroAmber      = "gro-amber"
	AlertTypeGroHasVistoA  = "gro-hasvistoa"
	AlertTypeMorAmber      = "mor-amber"
	AlertTypeMorCustom     = "mor-custom"
)

Variables

This section is empty.

Functions

func Execute

func Execute(args *Args)

func PrintVersion

func PrintVersion()

func Scrape added in v0.4.0

func Scrape(pageUrl string, scraper func(*doc.Doc) ([]mpp.MissingPersonPoster, map[int]error), skipVerify bool, ch chan []mpp.MissingPersonPoster)

func SelectScraperFuncs

func SelectScraperFuncs(alertType AlertType) (func(*doc.Doc) ([]mpp.MissingPersonPoster, map[int]error), func(uint64) string, error)

func Usage

func Usage()

Types

type AlertType added in v0.4.0

type AlertType string

func AlertTypesAvailable added in v0.4.0

func AlertTypesAvailable() []AlertType

type Args

type Args struct {
	AlertType    AlertType
	PageFrom     uint64
	PageUntil    uint64
	Out          string
	SkipVerify   bool
	PrintVersion bool
}

func ParseArgs

func ParseArgs() (*Args, error)

Jump to

Keyboard shortcuts

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