proc

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearName

func ClearName(name string, environment string) string

ClearName returns the clear service name of a proc

func NotifyCh

func NotifyCh() <-chan os.Signal

Types

type Info

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

Info defines the structure of a single process

func (*Info) ClearName

func (p *Info) ClearName() string

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

Jump to

Keyboard shortcuts

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