gopherflow

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const ExecutorId ctxKey = "executorId"

Variables

This section is empty.

Functions

func SetupLogger

func SetupLogger()

func SetupLoggerWithClock added in v1.3.0

func SetupLoggerWithClock(clock core.Clock)

Types

type App added in v1.0.12

type App struct {
	DB               *sql.DB
	Manager          *engine.WorkflowManager
	WorkflowRegistry map[string]func() core.Workflow
	Repos            struct {
		Workflows   *repository.WorkflowRepository
		Actions     *repository.WorkflowActionRepository
		Executors   *repository.ExecutorRepository
		Definitions *repository.WorkflowDefinitionRepository
		Users       *repository.UserRepository
	}
}

App wires together the workflow engine, repositories, and HTTP server.

func Setup added in v1.0.12

func Setup(registry map[string]func() core.Workflow) *App

func SetupWithClock added in v1.3.0

func SetupWithClock(registry map[string]func() core.Workflow, clock core.Clock) *App

SetupWithClock sets up the database, repositories, workflow manager, and HTTP mux.

func (*App) Run added in v1.0.12

func (a *App) Run(ctx context.Context) error

Run starts the workflow engine and HTTP server.

func (*App) Shutdown added in v1.3.0

func (a *App) Shutdown()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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