postmortem

package
v0.0.0-...-e652847 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName name of the service
	ServiceName = "postmortem"

	// QueueName queue name for queuesubscribes
	QueueName = "xbus.services." + ServiceName
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	services.Options

	LogStorage     storage.LogStorage
	ProcessManager *process.Manager
}

Options is used to create a 'processstate' service

func (Options) NewService

func (o Options) NewService() *Service

NewService creates a Service

type Service

type Service struct {
	services.BaseService
	// contains filtered or unexported fields
}

Service is in charge of emitting process status events to various subjects

func (*Service) Startup

func (s *Service) Startup() error

Startup starts the service TODO check if any process is done with warning/error and has a default postmortem, and initialize them (the process most likely stopped when the service was off)

Jump to

Keyboard shortcuts

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