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

add ResponseFormat map

parent bf0d1152
No related branches found
No related tags found
No related merge requests found
......@@ -41,12 +41,6 @@ type (
)
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
ActionKindSpace = pb.Action_SPACE
ActionKindEnvironment = pb.Action_ENVIRONMENT
......@@ -64,17 +58,29 @@ const (
TargetNotification = pb.Target_NOTIFICATION
TargetBlank = pb.Target_BLANK
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 (
TargetName = pb.Target_name
TargetValue = pb.Target_value
ActionKindName = pb.Action_Kind_name
ActionKindValue = pb.Action_Kind_value
ActionViewName = pb.Action_View_name
ActionViewValue = pb.Action_View_value
ResponseStateName = pb.ActionResponse_State_name
ResponseStateValue = pb.ActionResponse_State_value
TargetName = pb.Target_name
TargetValue = pb.Target_value
ActionKindName = pb.Action_Kind_name
ActionKindValue = pb.Action_Kind_value
ActionViewName = pb.Action_View_name
ActionViewValue = pb.Action_View_value
ResponseStateName = pb.ActionResponse_State_name
ResponseStateValue = pb.ActionResponse_State_value
ResponseFormatName = pb.ActionResponse_Format_name
ResponseFormatValue = pb.ActionResponse_Format_value
)
type Action struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment