service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 2 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 interface {
	Run() error
}

Service is implemeted by services that are started with starting agent tcp server

type ServiceManager

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

func (*ServiceManager) AddService

func (s *ServiceManager) AddService(name string, service Service)

AddService adds new service to the manager

func (*ServiceManager) RunServices

func (s *ServiceManager) RunServices()

RunServices runs all registered services

Jump to

Keyboard shortcuts

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