mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-25 13:35:32 -04:00
21 lines
590 B
Go
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
|
|
}
|