2020-12-11 02:11:49 +03:00
|
|
|
package file
|
|
|
|
|
|
|
|
import (
|
2021-10-26 23:23:49 +03:00
|
|
|
"go.unistack.org/micro/v3/config"
|
2020-12-11 02:11:49 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
type pathKey struct{}
|
|
|
|
|
|
|
|
func Path(path string) config.Option {
|
|
|
|
return config.SetOption(pathKey{}, path)
|
|
|
|
}
|
2021-11-18 16:12:12 +03:00
|
|
|
|
|
|
|
func LoadPath(path string) config.LoadOption {
|
|
|
|
return config.SetLoadOption(pathKey{}, path)
|
|
|
|
}
|
|
|
|
|
|
|
|
func SavePath(path string) config.SaveOption {
|
|
|
|
return config.SetSaveOption(pathKey{}, path)
|
|
|
|
}
|
|
|
|
|
|
|
|
func WatchPath(path string) config.WatchOption {
|
|
|
|
return config.SetWatchOption(pathKey{}, path)
|
|
|
|
}
|