Documentation ¶
Index ¶
- Variables
- func CompleteAction(w http.ResponseWriter, r *http.Request)
- func PostEvent(w http.ResponseWriter, r *http.Request)
- func TakeAction(w http.ResponseWriter, r *http.Request)
- type Action
- type ActionRepository
- type AuditRepository
- type Command
- type Event
- type EventDef
- type Flow
- type FlowRepository
- type FlowService
- type Pack
- type PackRepository
- type State
- type Step
Constants ¶
This section is empty.
Variables ¶
View Source
var ActionNotFoundErr = errors.New("action not found")
View Source
var PackNotFoundErr = errors.New("pack not found")
Functions ¶
func CompleteAction ¶
func CompleteAction(w http.ResponseWriter, r *http.Request)
func TakeAction ¶
func TakeAction(w http.ResponseWriter, r *http.Request)
Types ¶
type Action ¶
type Action struct { Id string `bson:"_id"` Name string `bson:"name"` PackName string `bson:"packName"` PackLabels map[string]string `bson:"packLabels,omitempty"` Input json.Json `bson:"input,omitempty"` State State `bson:"state"` States []State `bson:"states"` CorrelationId string `bson:"correlationId"` FlowName string `bson:"flowName"` FlowUUID string `bson:"flowUUID"` StepId string `bson:"stepId"` Context map[string]string `bson:"context,omitempty"` Trigger Event `bson:"trigger"` Result Event `bson:"result,omitempty"` // contains filtered or unexported fields }
type ActionRepository ¶
type AuditRepository ¶
type Event ¶
type Event struct { Name string `json:"event" bson:"name"` Pack Pack `json:"pack" bson:"pack"` Payload json.Json `json:"payload" bson:"payload,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty" bson:"createdAt,omitempty"` ReceivedAt time.Time `json:"receivedAt,omitempty" bson:"receivedAt,omitempty"` }
type Flow ¶
type Flow struct { UUID string `bson:"uuid"` Name string `bson:"name"` Steps []Step `bson:"steps,omitempty"` // contains filtered or unexported fields }
func (*Flow) HandleEvent ¶
type FlowRepository ¶
type FlowService ¶
type Pack ¶
type Pack struct { Id string `bson:"_id"` Name string `bson:"name"` Labels map[string]string `bson:"labels,omitempty"` }
func (Pack) CompleteAction ¶
func (Pack) UpdateLastSeen ¶
func (p Pack) UpdateLastSeen()
type PackRepository ¶
Click to show internal directories.
Click to hide internal directories.