web

package
v0.0.0-...-9d10c1b Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT-0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EMBED_FS embed.FS

Functions

func ProcessFilters

func ProcessFilters(filters []Filter, web *Web, watch *Watch, debug bool, scheduleID *FilterID)

ProcessFilters takes the filters of a watch, already 'connected' with buildFilterTree(), and processes the filters in the right order.

func TriggerSchedule

func TriggerSchedule(watchID WatchID, web *Web, scheduleID *FilterID)

TriggerSchedule gets called by the cronjob scheduler to start a watch execution

Types

type BrowserlessContext

type BrowserlessContext struct {
	Result string `json:"result"`
}

type Web

type Web struct {
	// contains filtered or unexported fields
}

func NewWeb

func NewWeb() *Web

NewWeb creates a new web instance and calls .init() before returning it

func (*Web) Run

func (web *Web) Run()

run simply calls router.Run

Jump to

Keyboard shortcuts

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