Improve code doc

This commit is contained in:
Benedikt Kulmann
2020-05-22 09:19:06 +02:00
parent ea49cedac4
commit 88b0ecc643
7 changed files with 26 additions and 14 deletions
+3 -2
View File
@@ -13,19 +13,20 @@ var (
// RegisterFunc stores store constructors
type RegisterFunc func(*config.Config) Manager
// Manager combines service interfaces for abstraction of storage implementations
type Manager interface {
BundleManager
ValueManager
}
// BundleManager
// BundleManager is a bundle service interface for abstraction of storage implementations
type BundleManager interface {
ReadBundle(identifier *proto.Identifier) (*proto.SettingsBundle, error)
WriteBundle(bundle *proto.SettingsBundle) (*proto.SettingsBundle, error)
ListBundles(identifier *proto.Identifier) ([]*proto.SettingsBundle, error)
}
// ValueManager
// ValueManager is a value service interface for abstraction of storage implementations
type ValueManager interface {
ReadValue(identifier *proto.Identifier) (*proto.SettingsValue, error)
WriteValue(value *proto.SettingsValue) (*proto.SettingsValue, error)