1
1
mirror of https://github.com/openziti/zrok.git synced 2025-07-09 10:47:17 +02:00

strategy -> action ()

This commit is contained in:
Michael Quigley
2023-03-23 17:07:48 -04:00
parent c91fc8ac9e
commit 14c299ee80

@ -2,14 +2,14 @@ package limits
import "github.com/openziti/zrok/controller/store" import "github.com/openziti/zrok/controller/store"
type AccountStrategy interface { type AccountAction interface {
HandleAccount(a *store.Account, rxBytes, txBytes int64, limit *BandwidthPerPeriod) error 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 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 HandleShare(s *store.Share, rxBytes, txBytes int64, limit *BandwidthPerPeriod) error
} }