service

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: GPL-3.0 Imports: 1 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddDependingService

type AddDependingService interface {
	DependingService
	SetAdditionalDependencies(map[string]Service)
	UnsetAdditionalDependencies([]string)
}

type DependingService

type DependingService interface {
	Service
	Dependencies() ServiceDependencies
}

type EmergencyStoppableService

type EmergencyStoppableService interface {
	Service
	EmergencyStop()
}

type ErrorFunc

type ErrorFunc func(...interface{})

type LoggerFunc

type LoggerFunc func(...interface{})

type ManagingService

type ManagingService interface {
	SetServiceManager(ServiceManager)
}

type Service

type Service interface {
	Init(map[string]Service, LoggerFunc, ErrorFunc)
	Name() string
	Stop()
}

type ServiceDependencies

type ServiceDependencies struct {
	Deps, ADeps []string
}

type ServiceManager

type ServiceManager interface {
	GetServiceList() []string
	GetServiceInfo(string) (exposedstructs.ServiceInfo, error)
	GetServicesInfo() map[string]exposedstructs.ServiceInfo
}

Jump to

Keyboard shortcuts

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