Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderSignature = "X-Goflow-Signature" HeaderRequestID = "X-Goflow-RequestID" HeaderPID = "X-Goflow-PID" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct { ProjectName string `json:"projectName" validate:"required"` ActivityName string `json:"activityName" validate:"required"` CurrentState string `json:"currentState" validate:"required"` CurrentEvent string `json:"currentEvent" validate:"required"` CurrentActionName string `json:"currentActionName" validate:"required"` CurrentActionType string `json:"currentActionType" validate:"required"` RetryCount int `json:"retryCount" validate:"required"` BuildAt time.Time `json:"buildAt" validate:"required"` }
type MetaResponse ¶
type MetaResponse struct { RequestID string `json:"requestID"` PID string `json:"pid"` ProjectUID string `json:"projectUID"` ProjectName string `json:"projectName"` ActivityName string `json:"activityName"` State string `json:"state"` Event string `json:"event"` ActionName string `json:"actionName"` ActionType string `json:"actionType"` InternalResponseTime string `json:"internalResponseTime"` ResponseSignature string `json:"responseSignature"` BuildAt time.Time `json:"buildAt"` }
type Request ¶
type Request struct { Meta *Meta `json:"meta"` Payload interface{} `json:"payload"` }
func (*Request) BuildSignatureFromPayload ¶
type RequestHeader ¶
type Response ¶
type Response struct { Status string `json:"status"` Reason string `json:"reason,omitempty"` Data interface{} `json:"data"` Meta *MetaResponse `json:"meta"` }
type RunnerBuilder ¶
type Transporter ¶
Click to show internal directories.
Click to hide internal directories.