monitor

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_SLEEP = time.Second * 100 // free plan limitation

Variables

View Source
var DefaultQuery = api.Query{
	IncludeSubdomains: true,
	MatchWildcards:    true,
	After:             "",
}

Functions

This section is empty.

Types

type Callback

type Callback func([]x509.Certificate, *api.Index, error)

type Monitor

type Monitor struct {
	Api   *api.SSLMateSearchAPI
	Query *api.Query
	Sleep time.Duration
}

func DefaultMonitor added in v0.0.7

func DefaultMonitor(domain string) *Monitor

func (*Monitor) Loop added in v0.0.14

func (monitor *Monitor) Loop(callback Callback)

func (*Monitor) Next

func (monitor *Monitor) Next() ([]x509.Certificate, *api.Index, error)

type Monitors

type Monitors struct {
	Monitors []Monitor
}

func (*Monitors) Loop added in v0.0.14

func (monitors *Monitors) Loop(callback Callback)

func (*Monitors) Next added in v0.0.14

func (monitors *Monitors) Next(callback Callback)

Jump to

Keyboard shortcuts

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