go-server-sdk.v4: gopkg.in/launchdarkly/go-server-sdk.v4/ldfilewatch Index | Files

package ldfilewatch

import "gopkg.in/launchdarkly/go-server-sdk.v4/ldfilewatch"

Package ldfilewatch allows the LaunchDarkly client to read feature flag data from a file, with automatic reloading. It should be used in conjunction with the ldfiledata package. The two packages are separate so as to avoid bringing additional dependencies for users who do not need automatic reloading.


Package Files


func WatchFiles Uses

func WatchFiles(paths []string, errorLogger ld.Logger, reload func(), closeCh <-chan struct{}) error

WatchFiles sets up a mechanism for the file data source to reload its source files whenever one of them has been modified. Use it as follows:

factory := ldfiledata.NewFileDataSourceFactory(

Package ldfilewatch imports 6 packages (graph). Updated 2020-03-31. Refresh now. Tools for package owners.