Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct {
// contains filtered or unexported fields
}
Info defines the structure of a single process
type ServicesService ¶
type ServicesService struct { // Configuration is the configuration read from the yaml file Configuration config.Configuration // contains filtered or unexported fields }
ServicesService is holding all the information to manage an in-memory process register
func NewServicesService ¶
func NewServicesService(cfg config.Configuration) *ServicesService
NewServicesService returns a new services service
func (*ServicesService) FindProc ¶
func (svc *ServicesService) FindProc(name string) *Info
FindProc returns a single proc object from the in-memory object, selected by name
func (*ServicesService) Procs ¶
func (svc *ServicesService) Procs() []*Info
Procs returns all initialized procs
func (*ServicesService) ReadProcfile ¶
func (svc *ServicesService) ReadProcfile(cfg config.Configuration) error
ReadProcfile reads a configuration object and stores it in the global, in-memory object used to keep track of it.
func (*ServicesService) StartProcs ¶
func (svc *ServicesService) StartProcs(sc <-chan os.Signal, exitOnError bool, exitOnStop bool) error
StartProcs starts all procs in separate go routines
Click to show internal directories.
Click to hide internal directories.