common

package
v0.0.0-...-36d6306 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Services

type Services struct {
	// Core
	DB      *sql.DB
	Queries *gen.Queries

	// Workspace
	Workspace   sworkspace.WorkspaceService
	Environment senv.EnvironmentService
	Variable    senv.VariableService

	// Flow
	Flow         sflow.FlowService
	FlowEdge     sflow.EdgeService
	FlowVariable sflow.FlowVariableService

	// Flow Nodes
	Node               sflow.NodeService
	NodeRequest        sflow.NodeRequestService
	NodeFor            sflow.NodeForService
	NodeForEach        sflow.NodeForEachService
	NodeIf             sflow.NodeIfService
	NodeJS             sflow.NodeJsService
	NodeAI             sflow.NodeAIService
	NodeAiProvider     sflow.NodeAiProviderService
	NodeMemory         sflow.NodeMemoryService
	NodeGraphQL        sflow.NodeGraphQLService
	NodeWsConnection   sflow.NodeWsConnectionService
	NodeWsSend         sflow.NodeWsSendService
	NodeWait           sflow.NodeWaitService
	NodeSubFlowTrigger sflow.NodeSubFlowTriggerService
	NodeSubFlowReturn  sflow.NodeSubFlowReturnService
	NodeRunSubFlow     sflow.NodeRunSubFlowService

	// WebSocket
	WebSocket       swebsocket.WebSocketService
	WebSocketHeader swebsocket.WebSocketHeaderService

	// GraphQL
	GraphQL       sgraphql.GraphQLService
	GraphQLHeader sgraphql.GraphQLHeaderService
	GraphQLAssert sgraphql.GraphQLAssertService

	// Credentials
	Credential scredential.CredentialService

	// HTTP (V2)
	HTTP               shttp.HTTPService
	HTTPHeader         shttp.HttpHeaderService
	HTTPSearchParam    *shttp.HttpSearchParamService
	HTTPBodyForm       *shttp.HttpBodyFormService
	HTTPBodyUrlEncoded *shttp.HttpBodyUrlEncodedService
	HTTPBodyRaw        *shttp.HttpBodyRawService
	HTTPAssert         *shttp.HttpAssertService

	Logger *slog.Logger
}

Services holds all initialized services for CLI operations

func CreateServices

func CreateServices(ctx context.Context, db *sql.DB, logger *slog.Logger) (*Services, error)

CreateServices initializes all services with the given database connection

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL