processstate

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: 6 Imported by: 0

Documentation

Index

Constants

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

	// 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
	EnvelopeStorage storage.EnvelopeStorage
	ActorStorage    storage.ActorStorage
}

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) AckResult

func (s *Service) AckResult(
	ctx context.Context, emitterID string, req api.AckResultRequest,
) error

AckResult mark a process result as acked

func (*Service) GetEnvelopeState

func (s *Service) GetEnvelopeState(
	ctx context.Context, emitterID string, req api.GetEnvelopeStateRequest,
) (
	api.EmitterEnvelopeState, error,
)

GetEnvelopeState implements ProcessState.GetEnvelopeState

func (*Service) List

func (s *Service) List(
	ctx context.Context, emitterID string, req api.ProcessFilter,
	send func(api.EmitterEnvelopeStateList),
) error

List the process of this emitter

func (*Service) Startup

func (s *Service) Startup() error

Startup starts the service

Jump to

Keyboard shortcuts

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