mirror of
https://github.com/openziti/zrok.git
synced 2025-08-19 12:24:37 +02:00
environment action skeletons (#276)
This commit is contained in:
21
controller/limits/environmentWarningAction.go
Normal file
21
controller/limits/environmentWarningAction.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package limits
|
||||
|
||||
import (
|
||||
"github.com/openziti/edge/rest_management_api_client"
|
||||
"github.com/openziti/zrok/controller/store"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
type environmentWarningAction struct {
|
||||
str *store.Store
|
||||
edge *rest_management_api_client.ZitiEdgeManagement
|
||||
}
|
||||
|
||||
func newEnvironmentWarningAction(str *store.Store, edge *rest_management_api_client.ZitiEdgeManagement) *environmentWarningAction {
|
||||
return &environmentWarningAction{str, edge}
|
||||
}
|
||||
|
||||
func (a *environmentWarningAction) HandleEnvironment(e *store.Environment, rxBytes, txBytes int64, limit *BandwidthPerPeriod) error {
|
||||
logrus.Infof("warning '%v'", e.ZId)
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user