Merge branch 'auth-interface-update' of https://github.com/micro/go-micro into auth-interface-update

This commit is contained in:
Ben Toogood
2020-04-01 14:25:07 +01:00
9 changed files with 116 additions and 20 deletions

View File

@@ -16,6 +16,8 @@ type Config interface {
reader.Values
// Init the config
Init(opts ...Option) error
// Options in the config
Options() Options
// Stop the config loader/watcher
Close() error
// Load config sources

View File

@@ -67,6 +67,10 @@ func (c *config) Init(opts ...Option) error {
return nil
}
func (c *config) Options() Options {
return c.opts
}
func (c *config) run() {
watch := func(w loader.Watcher) error {
for {