Documentation ¶
Overview ¶
Package filewatchlayer is the file loader with watch for the file. so by changing the file contents it reload the config
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileWatchLayer ¶
NewFileWatchLayer create a file layer with automatic fswatch. it reloads if the file content has changed
func NewFileWatchLayerContext ¶
func NewFileWatchLayerContext(ctx context.Context, path string, c onion.Cipher) (onion.Layer, error)
NewFileWatchLayerContext create a file layer with automatic fswatch. it reloads if the file content has changed, also the watch finish with the context a non-nil cipher is used to load encrypted file, nil means plain file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.