Files
configcenter/internal/runtime/runtime.go

21 lines
417 B
Go

package runtime
import (
"context"
"github.com/longpeng/configcenter/internal/domain"
)
type WatchResult struct {
Event domain.ConfigEvent
Err error
}
type Store interface {
Close() error
Ping(context.Context) error
Put(context.Context, string, []byte, domain.Release) (int64, error)
Get(context.Context, string) (domain.RuntimeConfig, error)
Watch(context.Context, string, int64) <-chan WatchResult
}