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: 8 Imported by: 1

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) EventChannel

func (service *Service) EventChannel() <-chan *models.Event

EventChannel returns a channel providing incoming events

func (*Service) RegisterData

func (service *Service) RegisterData(source string, transmitter string, interval int) error

RegisterData specifies the type of data to register for. Has to be called BEFORE Start()

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