Files
dify-plugin-daemon/internal/server/app.go
2024-11-12 21:24:41 +08:00

21 lines
590 B
Go

package server
import (
"github.com/langgenius/dify-plugin-daemon/internal/cluster"
"github.com/langgenius/dify-plugin-daemon/internal/core/plugin_daemon/backwards_invocation/transaction"
)
type App struct {
// cluster instance of this node
// schedule all the tasks related to the cluster, like request direct
cluster *cluster.Cluster
// endpoint handler
// customize behavior of endpoint
endpointHandler EndpointHandler
// aws transaction handler
// accept aws transaction request and forward to the plugin daemon
awsTransactionHandler *transaction.AWSTransactionHandler
}