file

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SchemeFile represents file URI scheme
	SchemeFile reader.Scheme = "file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReader

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

FileReader implements ConfReader for file-based configuration

func NewFileReader

func NewFileReader(uri string) (*FileReader, error)

NewFileReader creates a new file reader

func (*FileReader) Close

func (f *FileReader) Close() error

Close closes the reader and cleans up resources

func (*FileReader) Read

func (f *FileReader) Read(ctx context.Context) ([]byte, error)

Read reads configuration data from file

func (*FileReader) Subscribe

func (f *FileReader) Subscribe(ctx context.Context) (<-chan *reader.ReadEvent, error)

Subscribe subscribes to file changes and returns update channel

Jump to

Keyboard shortcuts

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