Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionExecutor ¶
func NewActionExecutor ¶
func NewActionExecutor(fbClient *fbmsg.Client) *ActionExecutor
func (*ActionExecutor) ExecuteAction ¶
func (ex *ActionExecutor) ExecuteAction(ctx context.Context, node *types.Node, state *ActionState) (_err error)
func (*ActionExecutor) ExecuteActions ¶
func (ex *ActionExecutor) ExecuteActions(nodes []*types.Node, state *ActionState)
type ActionState ¶
type MessengerService ¶
type MessengerService struct { FlowQuery flowdef.QueryService StateStore *store.FlowStateStore ActionExec *ActionExecutor }
func NewMessengerService ¶
func NewMessengerService( query flowdef.QueryService, stateStore *store.FlowStateStore, actionExec *ActionExecutor, ) *MessengerService
func (*MessengerService) ReceivedMessage ¶
func (s *MessengerService) ReceivedMessage(ctx context.Context, req *types.ReceivedMessageRequest) (*types.ReceivedMessageResponse, error)
func (*MessengerService) ReceivedPostback ¶
func (s *MessengerService) ReceivedPostback(ctx context.Context, req *types.ReceivedPostbackRequest) (*types.ReceivedPostbackResponse, error)
type OrderService ¶
type OrderService struct { FlowQuery flowdef.QueryService StateStore *store.FlowStateStore ActionExec *ActionExecutor }
func NewOrderService ¶
func NewOrderService( query flowdef.QueryService, stateStore *store.FlowStateStore, actionExec *ActionExecutor, ) *OrderService
func (*OrderService) ReceivedCompletedOrder ¶
func (s *OrderService) ReceivedCompletedOrder(ctx context.Context, req *types.ReceivedCompletedOrderRequest) (*types.ReceivedCompletedOrderResponse, error)
Click to show internal directories.
Click to hide internal directories.