status

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SagaEvent

type SagaEvent struct {
	saga.HistoryEvent
}

type StatusHandler

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

func NewStatusHandler

func NewStatusHandler(logger log.Logger, service StatusService) *StatusHandler

func (*StatusHandler) GetFilteredBy

func (h *StatusHandler) GetFilteredBy(resp http.ResponseWriter, r *http.Request)

func (*StatusHandler) GetStatus

func (h *StatusHandler) GetStatus(resp http.ResponseWriter, r *http.Request)

type StatusResponse

type StatusResponse struct {
	SagaUID string      `json:"saga_uid"`
	Status  string      `json:"status"`
	Payload interface{} `json:"payload"`
	Events  []SagaEvent `json:"events"`
}

type StatusService

type StatusService interface {
	GetStatus(ctx context.Context, sagaId string) (*StatusResponse, error)
	GetFilteredBy(ctx context.Context, sagaId, status, sagaType string) ([]*StatusResponse, error)
}

func NewStatusService

func NewStatusService(store saga.Store) StatusService

Jump to

Keyboard shortcuts

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