dynamic_conf

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2025 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithUseEnv added in v0.18.0

func WithUseEnv(useEnv bool) opts.Opt[FsNotifyOpts]

func WithUseKey added in v0.20.1

func WithUseKey(useKey string) opts.Opt[FsNotifyOpts]

Types

type FsNotify

type FsNotify struct {
	*fsnotify.Watcher
	// contains filtered or unexported fields
}

func NewFsNotify

func NewFsNotify(path string, op ...opts.Opt[FsNotifyOpts]) (*FsNotify, error)

func (*FsNotify) AddListener

func (f *FsNotify) AddListener(listener func()) error

func (*FsNotify) Value

func (f *FsNotify) Value() (string, error)

type FsNotifyOpts added in v0.18.0

type FsNotifyOpts struct {
	UseEnv bool

	UseKey string
}

func (FsNotifyOpts) DefaultOptions added in v0.18.0

func (opts FsNotifyOpts) DefaultOptions() FsNotifyOpts

Jump to

Keyboard shortcuts

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