eventserver

package
v7.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2018 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventProcessorHandleEvent = "EventServer.HandleEvent"
)

String constants that can be used while making an RPC call.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor interface {

	// HandleEvent Gets called when clients generate events.
	HandleEvent(eventInfo *events.EventInfo, result *events.EventResponse) error
}

Processor is an interface that can be invoked over RPC.

func New

func New(root bool) (Processor, registerer.Registerer)

New provides a new event server. This server will be responsible for listening events over the incoming RPC channel

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents the Monitor RPC Server implementation

func (*Server) HandleEvent

func (s *Server) HandleEvent(eventInfo *events.EventInfo, result *events.EventResponse) (err error)

HandleEvent Gets called when clients generate events.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL