mirror of
https://github.com/openziti/zrok.git
synced 2025-08-17 11:21:07 +02:00
wire in the new 'limits.Agent' infrastructure; extend the 'metrics.Agent' to support additional 'metrics.UsageSink' instances (#271)
This commit is contained in:
committed by
Kenneth Bingham
parent
e824c87d08
commit
29f38de546
27
controller/limits/agent.go
Normal file
27
controller/limits/agent.go
Normal file
@ -0,0 +1,27 @@
|
||||
package limits
|
||||
|
||||
import (
|
||||
"github.com/openziti/zrok/controller/metrics"
|
||||
"github.com/openziti/zrok/controller/store"
|
||||
"github.com/openziti/zrok/controller/zrokEdgeSdk"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
type Agent struct {
|
||||
}
|
||||
|
||||
func NewAgent(cfg *Config, ifxCfg *metrics.InfluxConfig, zCfg *zrokEdgeSdk.Config, str *store.Store) (*Agent, error) {
|
||||
return &Agent{}, nil
|
||||
}
|
||||
|
||||
func (a *Agent) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (a *Agent) Stop() {
|
||||
}
|
||||
|
||||
func (a *Agent) Handle(u *metrics.Usage) error {
|
||||
logrus.Infof("handling: %v", u)
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user