config

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

type Watcher struct {
	Reload chan string
	Drop   chan struct{}
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(opts *WatcherOpts) *Watcher

func (*Watcher) IsWatching

func (w *Watcher) IsWatching() bool

func (*Watcher) Start

func (w *Watcher) Start(ctx context.Context) error

func (*Watcher) Stop

func (w *Watcher) Stop() error

func (*Watcher) Watch

func (w *Watcher) Watch(configFilePath string)

type WatcherOpts

type WatcherOpts struct {
	ErrorWriter io.Writer
	Path        string
}

Jump to

Keyboard shortcuts

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