file

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Registry confgroup.Registry
	Read     []string
	Watch    []string
}

type Discovery

type Discovery struct {
	*logger.Logger
	// contains filtered or unexported fields
}

func NewDiscovery

func NewDiscovery(cfg Config) (*Discovery, error)

func (*Discovery) Run

func (d *Discovery) Run(ctx context.Context, in chan<- []*confgroup.Group)

func (Discovery) String

func (d Discovery) String() string

type Reader

type Reader struct {
	*logger.Logger
	// contains filtered or unexported fields
}

func NewReader

func NewReader(reg confgroup.Registry, paths []string) *Reader

func (Reader) Run

func (r Reader) Run(ctx context.Context, in chan<- []*confgroup.Group)

func (Reader) String

func (r Reader) String() string

type Watcher

type Watcher struct {
	*logger.Logger
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(reg confgroup.Registry, paths []string) *Watcher

func (*Watcher) Run

func (w *Watcher) Run(ctx context.Context, in chan<- []*confgroup.Group)

func (Watcher) String

func (w Watcher) String() string

Jump to

Keyboard shortcuts

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