Documentation
¶
Index ¶
- Constants
- type CompletedOrderNodeData
- type CreateFlowRequest
- type CreateFlowResponse
- type Flow
- type FlowResponse
- type GetFlowByIDRequest
- type GetFlowByParamRequest
- type Node
- type NodeNextInterface
- type NodePayload
- type NodeType
- type QuickReplyItem
- type ReceivedMessageNodeData
- type SendMessageNodeData
- type UpdateFlowRequest
- type UpdateFlowResponse
Constants ¶
View Source
const ( NodeCompletedOrder = "trigger:completed_order" NodeReceivedMessage = "trigger:received_message" NodeReceivedReply = "trigger:received_reply" NodeSendMessage = "action:send_message" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompletedOrderNodeData ¶
type CreateFlowRequest ¶
type CreateFlowRequest struct {
Flow *Flow `json:"flow"`
}
type CreateFlowResponse ¶
type CreateFlowResponse struct {
Flow *Flow `json:"flow"`
}
type Flow ¶
type FlowResponse ¶
type FlowResponse struct {
Flow *Flow `json:"flow"`
}
type GetFlowByIDRequest ¶
type GetFlowByParamRequest ¶
type Node ¶
type Node struct { ID dot.IntID `json:"id,omitempty"` Payload *NodePayload `json:"payload,omitempty"` }
type NodeNextInterface ¶
type NodePayload ¶
type NodePayload struct { // Type NodeType `json:"type"` CompletedOrder *CompletedOrderNodeData SendMessage *SendMessageNodeData ReceivedMessage *ReceivedMessageNodeData }
func (*NodePayload) MarshalJSON ¶
func (n *NodePayload) MarshalJSON() ([]byte, error)
func (*NodePayload) Type ¶
func (n *NodePayload) Type() NodeType
func (*NodePayload) UnmarshalJSON ¶
func (n *NodePayload) UnmarshalJSON(data []byte) error
type QuickReplyItem ¶
type ReceivedMessageNodeData ¶
type SendMessageNodeData ¶
type SendMessageNodeData struct { Type NodeType `json:"type"` Template string `json:"template"` NextID dot.IntID `json:"next_id,omitempty"` QuickReplies []*QuickReplyItem `json:"quick_replies"` }
type UpdateFlowRequest ¶
type UpdateFlowRequest struct {
Flow *Flow `json:"flow"`
}
type UpdateFlowResponse ¶
type UpdateFlowResponse struct {
Flow *Flow `json:"flow"`
}
Click to show internal directories.
Click to hide internal directories.