files

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: 2 Imported by: 0

Documentation

Overview

Package files contains components for file 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 watches resolv.conf files and then probes the trusted https servers.

func NewWatch

func NewWatch(probes chan struct{}) *Watch

NewWatch returns a new Watch.

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()
}

Watcher is the file watcher interface.

Jump to

Keyboard shortcuts

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