monitor

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

Types

type Config

type Config struct {
	WebSites   []WebSite     `mapstructure:"web_sites"`
	Cron       string        `mapstructure:"cron"`
	BeforeTime time.Duration `mapstructure:"before_time"`
	Timeout    time.Duration `mapstructure:"timeout"`
}

func ExampleConfig

func ExampleConfig() Config

type WebSite

type WebSite struct {
	Name        string `mapstructure:"name"`
	Description string `mapstructure:"description"`
	Address     string `mapstructure:"address"`
}

type WebSiteError

type WebSiteError struct {
	Message string
}

func NewWebSiteError

func NewWebSiteError(msg string) *WebSiteError

func (*WebSiteError) Error

func (e *WebSiteError) Error() string

Jump to

Keyboard shortcuts

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