Skip to content
Snippets Groups Projects
Commit 6e1b1731 authored by Anton Sattarov's avatar Anton Sattarov
Browse files

add ResponseFormat map

parent bf0d1152
Branches
Tags
No related merge requests found
...@@ -41,12 +41,6 @@ type ( ...@@ -41,12 +41,6 @@ type (
) )
const ( const (
ResponseDone = pb.ActionResponse_DONE
ResponseError = pb.ActionResponse_ERROR
ResponsePending = pb.ActionResponse_PENDING
ResponseInProgress = pb.ActionResponse_IN_PROGRESS
ResponseParametersRequired = pb.ActionResponse_PARAMETERS_REQUIRED
ActionKindDefault = pb.Action_DEFAULT ActionKindDefault = pb.Action_DEFAULT
ActionKindSpace = pb.Action_SPACE ActionKindSpace = pb.Action_SPACE
ActionKindEnvironment = pb.Action_ENVIRONMENT ActionKindEnvironment = pb.Action_ENVIRONMENT
...@@ -64,6 +58,16 @@ const ( ...@@ -64,6 +58,16 @@ const (
TargetNotification = pb.Target_NOTIFICATION TargetNotification = pb.Target_NOTIFICATION
TargetBlank = pb.Target_BLANK TargetBlank = pb.Target_BLANK
TargetNone = pb.Target_NONE TargetNone = pb.Target_NONE
ResponseDone = pb.ActionResponse_DONE
ResponseError = pb.ActionResponse_ERROR
ResponsePending = pb.ActionResponse_PENDING
ResponseInProgress = pb.ActionResponse_IN_PROGRESS
ResponseParametersRequired = pb.ActionResponse_PARAMETERS_REQUIRED
ResponseFormatPlain = pb.ActionResponse_PLAIN
ResponseFormatHtml = pb.ActionResponse_HTML
ResponseFormatMarkdown = pb.ActionResponse_MARKDOWN
) )
var ( var (
...@@ -75,6 +79,8 @@ var ( ...@@ -75,6 +79,8 @@ var (
ActionViewValue = pb.Action_View_value ActionViewValue = pb.Action_View_value
ResponseStateName = pb.ActionResponse_State_name ResponseStateName = pb.ActionResponse_State_name
ResponseStateValue = pb.ActionResponse_State_value ResponseStateValue = pb.ActionResponse_State_value
ResponseFormatName = pb.ActionResponse_Format_name
ResponseFormatValue = pb.ActionResponse_Format_value
) )
type Action struct { type Action struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment