events

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionInvocation

type ActionInvocation struct {
	WorkflowId       string                 `json:"workflow_id,omitempty"`
	WorkflowActionId string                 `json:"workflow_action_id,omitempty"`
	Status           ActionInvocationStatus `json:"status,omitempty"`
	Links            map[string]common.Link `json:"_links,omitempty"`
}

type ActionInvocationStatus

type ActionInvocationStatus string
const (
	Pending    ActionInvocationStatus = "pending"
	Successful ActionInvocationStatus = "successful"
	Failed     ActionInvocationStatus = "failed"
)

type Event

type Event struct {
	Id          string `json:"id,omitempty"`
	DisplayName string `json:"display_name,omitempty"`
	Description string `json:"description,omitempty"`
}

type EventResponse

type EventResponse struct {
	HttpMetadata      common.HttpMetadata
	Id                string                 `json:"id,omitempty"`
	Source            string                 `json:"source,omitempty"`
	Type              string                 `json:"type,omitempty"`
	Timestamp         string                 `json:"timestamp,omitempty"`
	Version           string                 `json:"version,omitempty"`
	Data              map[string]interface{} `json:"data,omitempty"`
	ActionInvocations []ActionInvocation     `json:"action_invocations,omitempty"`
	Links             map[string]common.Link `json:"_links,omitempty"`
}

type EventTypesResponse

type EventTypesResponse struct {
	HttpMetadata common.HttpMetadata
	EventTypes   []WorkflowEventTypes
}

func (*EventTypesResponse) UnmarshalJSON

func (e *EventTypesResponse) UnmarshalJSON(data []byte) error

type SubjectEvent

type SubjectEvent struct {
	Id        string                 `json:"id,omitempty"`
	Type      string                 `json:"type,omitempty"`
	Timestamp string                 `json:"timestamp,omitempty"`
	Links     map[string]common.Link `json:"_links,omitempty"`
}

type SubjectEventsResponse

type SubjectEventsResponse struct {
	HttpMetadata common.HttpMetadata
	Events       []SubjectEvent `json:"data,omitempty"`
}

type WorkflowEventTypes

type WorkflowEventTypes struct {
	Id          string  `json:"id,omitempty"`
	DisplayName string  `json:"display_name,omitempty"`
	Description string  `json:"description,omitempty"`
	Events      []Event `json:"events,omitempty"`
}

Jump to

Keyboard shortcuts

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