Documentation ¶
Overview ¶
Package sugar provides some helpers to reduce boilerplate around aws-sdk-go it is imported as `import . "github.com/sclasen/swfsm/sugar"` for most reduction of keystrokes
Index ¶
- Constants
- func EventFromPayload(eventId int, data interface{}) *swf.HistoryEvent
- func I(i int) *int64
- func L(l int64) *int64
- func LL(l *int64) string
- func LS(s *string) string
- func PrettyDecision(d swf.Decision) string
- func PrettyHistoryEvent(h *swf.HistoryEvent) string
- func S(s string) *string
- func SWFDecisionTypes() []string
- func SWFHistoryEventTypes() []string
Constants ¶
const ( ErrorTypeUnknownResourceFault = "UnknownResourceFault" ErrorTypeWorkflowExecutionAlreadyStartedFault = "WorkflowExecutionAlreadyStartedFault" ErrorTypeDomainAlreadyExistsFault = "DomainAlreadyExistsFault" ErrorTypeAlreadyExistsFault = "TypeAlreadyExistsFault" ErrorTypeStreamNotFound = "ResourceNotFoundException" ErrorTypeStreamAlreadyExists = "ResourceInUseException" )
error code constants
Variables ¶
This section is empty.
Functions ¶
func EventFromPayload ¶
func EventFromPayload(eventId int, data interface{}) *swf.HistoryEvent
EventFromPayload will construct swf.HistoryEvent with the correct id, event type and Attributes struct set, based on the type of the data passed to it, which should be one of the swf.*EventAttributes structs.
func PrettyDecision ¶
PrettyDecision pretty prints a swf.Decision in a readable form for logging.
func PrettyHistoryEvent ¶
func PrettyHistoryEvent(h *swf.HistoryEvent) string
PrettyHistoryEvent pretty prints a swf.HistoryEvent in a readable form for logging.
func SWFDecisionTypes ¶
func SWFDecisionTypes() []string
SWFDecisionTypes returns a slice containing the valid values of the Decision.DecisionType field.
func SWFHistoryEventTypes ¶
func SWFHistoryEventTypes() []string
SWFHistoryEventTypes returns a slice containing the valid values of the HistoryEvent.EventType field.
Types ¶
This section is empty.