grpc/config/config.go

11 lines
146 B
Go

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