mirror of
https://github.com/openziti/zrok.git
synced 2025-08-17 11:21:07 +02:00
metrics2 -> metrics (#270)
This commit is contained in:
committed by
Kenneth Bingham
parent
e1c79e687e
commit
e824c87d08
@ -35,11 +35,17 @@ func (u Usage) String() string {
|
||||
return out
|
||||
}
|
||||
|
||||
type Source interface {
|
||||
Start(chan map[string]interface{}) (chan struct{}, error)
|
||||
type UsageSink interface {
|
||||
Handle(u *Usage) error
|
||||
}
|
||||
|
||||
type ZitiEventJson string
|
||||
|
||||
type ZitiEventJsonSource interface {
|
||||
Start(chan ZitiEventJson) (join chan struct{}, err error)
|
||||
Stop()
|
||||
}
|
||||
|
||||
type Ingester interface {
|
||||
Ingest(msg map[string]interface{}) error
|
||||
type ZitiEventJsonSink interface {
|
||||
Handle(event ZitiEventJson) error
|
||||
}
|
||||
|
Reference in New Issue
Block a user