share action skeletons (#276)

This commit is contained in:
Michael Quigley
2023-03-27 11:34:29 -04:00
parent fdc5154873
commit 662693c2c9
4 changed files with 80 additions and 9 deletions

View 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 shareWarningAction struct {
str *store.Store
edge *rest_management_api_client.ZitiEdgeManagement
}
func newShareWarningAction(str *store.Store, edge *rest_management_api_client.ZitiEdgeManagement) *shareWarningAction {
return &shareWarningAction{str, edge}
}
func (a *shareWarningAction) HandleShare(s *store.Share, rxBytes, txBytes int64, limit *BandwidthPerPeriod) error {
logrus.Infof("warning '%v'", s.Token)
return nil
}