file

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	Path        string
	EnableWatch bool
	Logger      baselogger.Logger
}

func NewOption

func NewOption() *Option

func SetEnableWatch

func SetEnableWatch(b bool) *Option

func SetLogger

func SetLogger(l baselogger.Logger) *Option

func SetPath

func SetPath(s string) *Option

func (*Option) MergeOption

func (c *Option) MergeOption(opts ...*Option) *Option

func (*Option) SetEnableWatch

func (c *Option) SetEnableWatch(b bool) *Option

func (*Option) SetLogger

func (c *Option) SetLogger(l baselogger.Logger) *Option

func (*Option) SetPath

func (c *Option) SetPath(s string) *Option

type Source

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

Source file provider.

func NewSource

func NewSource(opts ...*Option) (*Source, error)

NewSource returns new Source.

func (*Source) ConfigChanged

func (cs *Source) ConfigChanged() <-chan map[string]interface{}

IsConfigChanged ...

func (*Source) ReadConfig

func (cs *Source) ReadConfig() (content map[string]interface{}, err error)

ReadConfig ...

Jump to

Keyboard shortcuts

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