mirror of
https://github.com/openziti/zrok.git
synced 2025-02-02 03:20:26 +01:00
strategy -> action (#276)
This commit is contained in:
parent
c91fc8ac9e
commit
14c299ee80
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user