filewatchlayer

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 9 Imported by: 0

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

func NewFileWatchLayer(path string, c onion.Cipher) (onion.Layer, error)

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.

Jump to

Keyboard shortcuts

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