github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/monitor/registerer/interfaces.go (about) 1 package registerer 2 3 import ( 4 "go.aporeto.io/enforcerd/trireme-lib/common" 5 "go.aporeto.io/enforcerd/trireme-lib/monitor/processor" 6 ) 7 8 // Registerer inteface allows event processors to register themselves with the event server. 9 type Registerer interface { 10 11 // Register Processor registers event processors for a certain type of PU 12 RegisterProcessor(puType common.PUType, p processor.Processor) error 13 14 GetHandler(puType common.PUType, e common.Event) (common.EventHandler, error) 15 }