This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package ports
|
||||
|
||||
// Package ports declares capability-owned external dependencies. Ports must be narrow and semantic.
|
||||
@@ -0,0 +1,13 @@
|
||||
package ports
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.cin.su/m/Assistant/contracts/capability"
|
||||
)
|
||||
|
||||
type Repository interface {
|
||||
SaveHealth(context.Context, capability.Health) error
|
||||
LoadHealth(context.Context, capability.CapabilityID) (capability.Health, error)
|
||||
RebuildHealthProjection(context.Context) (int64, error)
|
||||
}
|
||||
Reference in New Issue
Block a user