mirror of
https://github.com/openziti/zrok.git
synced 2025-07-09 10:47:17 +02:00
strategy -> action (#276)
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user