engine

package
v0.0.0-...-219eb91 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func NewEngine

func NewEngine(config EngineConfig) *Engine

func (*Engine) Run

func (e *Engine) Run()

func (*Engine) RunOnce

func (e *Engine) RunOnce()

func (*Engine) ShouldRun

func (e *Engine) ShouldRun(now time.Time) bool

type EngineConfig

type EngineConfig struct {
	Channels  []channels.Channel
	Sources   []sources.Source
	Rules     []rules.NotifyRule
	RunAt     RunAt
	Location  *time.Location
	DebugMode bool
}

type RunAt

type RunAt struct {
	Hour   int
	Minute int
}

Jump to

Keyboard shortcuts

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