add minimal config interface and file implementation

This commit is contained in:
2021-11-23 12:00:58 +01:00
parent 1bad45b563
commit 8e6fde19b5
3 changed files with 207 additions and 0 deletions

10
config/config.go Normal file
View File

@ -0,0 +1,10 @@
package config
import (
"context"
)
type Config interface {
Read() ([]byte, error)
Watch(ctx context.Context, updates chan<- []byte) error
}