strategy -> action (#276)

This commit is contained in:
Michael Quigley 2023-03-23 17:07:48 -04:00
parent c91fc8ac9e
commit 14c299ee80
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -2,14 +2,14 @@ package limits
import "github.com/openziti/zrok/controller/store"
type AccountStrategy interface {
type AccountAction interface {
HandleAccount(a *store.Account, rxBytes, txBytes int64, limit *BandwidthPerPeriod) error
}
type EnvironmentStrategy interface {
type EnvironmentAction interface {
HandleEnvironment(e *store.Environment, rxBytes, txBytes int64, limit *BandwidthPerPeriod) error
}
type ShareStrategy interface {
type ShareAction interface {
HandleShare(s *store.Share, rxBytes, txBytes int64, limit *BandwidthPerPeriod) error
}