mirror of
https://github.com/openziti/zrok.git
synced 2025-07-27 19:28:25 +02:00
16 lines
451 B
Go
16 lines
451 B
Go
package limits
|
|
|
|
import "github.com/openziti/zrok/controller/store"
|
|
|
|
type AccountStrategy interface {
|
|
HandleAccount(a *store.Account, rxBytes, txBytes int64, limit *BandwidthPerPeriod) error
|
|
}
|
|
|
|
type EnvironmentStrategy interface {
|
|
HandleEnvironment(e *store.Environment, rxBytes, txBytes int64, limit *BandwidthPerPeriod) error
|
|
}
|
|
|
|
type ShareStrategy interface {
|
|
HandleShare(s *store.Share, rxBytes, txBytes int64, limit *BandwidthPerPeriod) error
|
|
}
|