app.go 590 B

123456789101112131415161718192021
  1. package server
  2. import (
  3. "github.com/langgenius/dify-plugin-daemon/internal/cluster"
  4. "github.com/langgenius/dify-plugin-daemon/internal/core/plugin_daemon/backwards_invocation/transaction"
  5. )
  6. type App struct {
  7. // cluster instance of this node
  8. // schedule all the tasks related to the cluster, like request direct
  9. cluster *cluster.Cluster
  10. // webhook handler
  11. // customize behavior of endpoint
  12. webhook_handler WebhookHandler
  13. // aws transaction handler
  14. // accept aws transaction request and forward to the plugin daemon
  15. aws_transaction_handler *transaction.AWSTransactionHandler
  16. }