Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(eh EventHandler) *handler
NewHandler returns an initialized handler
func Serve ¶
func Serve(bindAddress string, handler EventHandler, opt ...grpc.ServerOption) error
Serve registers the EventHandler and starts the GRPC server
Types ¶
type CloudEvent ¶
type CloudEvent proto.CloudEvent
type EventHandler ¶
type EventHandler interface {
Handle(*CloudEvent) (*Result, error)
}
EventHandler should be implemented by the plugins that are doing some actions based on alerts
Click to show internal directories.
Click to hide internal directories.