mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 09:12:28 +00:00
add minimal config interface and file implementation
This commit is contained in:
10
config/config.go
Normal file
10
config/config.go
Normal file
@ -0,0 +1,10 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
type Config interface {
|
||||
Read() ([]byte, error)
|
||||
Watch(ctx context.Context, updates chan<- []byte) error
|
||||
}
|
Reference in New Issue
Block a user