mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-23 02:05:27 -04:00
604da5d495
- Updated AWS-related types and functions to reflect Serverless terminology, including renaming `AWSTransactionHandler` to `ServerlessTransactionHandler` and `AWSTransactionWriter` to `ServerlessTransactionWriter`. - Adjusted error messages and comments to align with the new naming conventions. - Modified installation functions to use Serverless terminology for clarity and consistency across the codebase.
21 lines
618 B
Go
21 lines
618 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
|
|
|
|
// serverless transaction handler
|
|
// accept serverless transaction request and forward to the plugin daemon
|
|
serverlessTransactionHandler *transaction.ServerlessTransactionHandler
|
|
}
|