mirror of
https://github.com/openziti/zrok.git
synced 2025-02-18 03:01:02 +01:00
22 lines
588 B
Go
22 lines
588 B
Go
|
package limits
|
||
|
|
||
|
import (
|
||
|
"github.com/openziti/edge/rest_management_api_client"
|
||
|
"github.com/openziti/zrok/controller/store"
|
||
|
"github.com/sirupsen/logrus"
|
||
|
)
|
||
|
|
||
|
type shareRelaxAction struct {
|
||
|
str *store.Store
|
||
|
edge *rest_management_api_client.ZitiEdgeManagement
|
||
|
}
|
||
|
|
||
|
func newShareRelaxAction(str *store.Store, edge *rest_management_api_client.ZitiEdgeManagement) *shareRelaxAction {
|
||
|
return &shareRelaxAction{str, edge}
|
||
|
}
|
||
|
|
||
|
func (a *shareRelaxAction) HandleShare(s *store.Share, rxBytes, txBytes int64, limit *BandwidthPerPeriod) error {
|
||
|
logrus.Infof("relaxing '%v'", s.Token)
|
||
|
return nil
|
||
|
}
|