watch

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

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

Go to latest
Published: Oct 10, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package watch listens for the live update of the data.

Todo improve the function call cycle (fileCreated -> fileChange -> fileDelete)

Todo since we removed reading from Viper the yaml file, let's load the file from app

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(config *engine.Dev, watchHandle func(interface{}, error)) error

Watch tracks the config change in the file.

Watch could be called only once. If it's already called, then it will skip it without an error.

For production, we could call config.viper.WatchRemoteConfig() for example in etcd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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