Improve code doc
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user