routes

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package routes contains components for route watching.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watch

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

Watch waits for routing update events and then probes the trusted https servers.

func NewWatch

func NewWatch(probes chan struct{}) *Watch

NewWatch returns a new Watch.

func (*Watch) Probes

func (w *Watch) Probes() chan struct{}

Probes returns the probe channel.

func (*Watch) Start

func (w *Watch) Start() error

Start starts the Watch.

func (*Watch) Stop

func (w *Watch) Stop()

Stop stops the Watch.

type Watcher added in v0.3.0

type Watcher interface {
	Start() error
	Stop()
	Probes() chan struct{}
}

Watcher is the watcher interface.

Jump to

Keyboard shortcuts

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