transmitter

package
v0.0.0-...-b4f489e Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service implements the kvmtop communication service to transmit events to the message bus

func NewService

func NewService(name string) *Service

NewService instantiates a new communication service

func (*Service) Close

func (service *Service) Close()

Close terminates the transmitter service

func (*Service) Publish

func (service *Service) Publish(event *models.Event, interval int) error

Publish allows to transmit an event through the communication service

func (*Service) RegisterRequestCallback

func (service *Service) RegisterRequestCallback(callback func(request *models.Request) bool)

RegisterRequestCallback registers the callback used for handling requests

func (*Service) Start

func (service *Service) Start()

Start establishs the communication service

Jump to

Keyboard shortcuts

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