api

package
v0.0.0-...-10ef2bf Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	Publish(event events.RunEvent)
	Subscribe(ctx context.Context, runID string) <-chan events.RunEvent
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(store store.Store, broker Broker, workflows WorkflowService, cfg config.Config) *Server

func (*Server) Router

func (s *Server) Router() http.Handler

func (*Server) Start

func (s *Server) Start(ctx context.Context, addr string) error

type WorkflowService

type WorkflowService interface {
	StartRun(ctx context.Context, runID string) error
	SignalMessage(ctx context.Context, runID string, message string) error
	ResumeRun(ctx context.Context, runID string, message string) error
	CancelRun(ctx context.Context, runID string) error
}

Jump to

Keyboard shortcuts

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