file

package
v0.58.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: GPL-3.0 Imports: 13 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) Name

func (d *Discovery) Name() string

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) Name

func (r *Reader) Name() string

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) Name

func (w *Watcher) Name() string

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