file

package
v0.0.0-...-0e90f96 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoader

func NewLoader(filename string, opts ...LoaderOption) easyconfmgr.Loader

Types

type Loader

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

func (*Loader) ContentType

func (loader *Loader) ContentType() string

func (*Loader) Load

func (loader *Loader) Load() error

func (*Loader) RawData

func (loader *Loader) RawData() []byte

type LoaderOption

type LoaderOption func(loader *Loader)

func ContentType

func ContentType(contentType string) LoaderOption

func Logger

func Logger(log easyconfmgr.Logger) LoaderOption

func WithLogger

func WithLogger(log easyconfmgr.Logger) LoaderOption

type Watcher

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

func NewWatcher

func NewWatcher(filename string, opts ...WatcherOption) *Watcher

func (*Watcher) Events

func (watcher *Watcher) Events() <-chan *easyconfmgr.Event

func (*Watcher) Stop

func (watcher *Watcher) Stop() error

func (*Watcher) Watch

func (watcher *Watcher) Watch() error

type WatcherOption

type WatcherOption func(watcher *Watcher)

Jump to

Keyboard shortcuts

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