internal

package
v0.0.80 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

type HealthChecker struct{}

func (*HealthChecker) ServeHTTP

func (hc *HealthChecker) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Server

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

func NewServer

func NewServer(
	env *config.Env,
	projectServer *project.Server,
	workflowServer *workflow.Server,
	taskServer *task.Server,
	interactionServer *interaction.Server,
	agentManagerServer *agentmanager.Server,
	agentServer *agent.Server,
	skillServer *skill.Server,
	scriptServer *script.Server,
	eventServer *event.Server,
	taskLogServer *tasklog.Server,
	pushNotificationServer *pushnotification.Server,
	permissionServer *permission.Server,
	singleCommandPermissionServer *singlecommandpermission.Server,
	templateServer *tmpl.Server,
	claudeSettingsServer *claudesettings.Server,
	scheduleServer *schedule.Server,
) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ctx context.Context) error

ListenAndServe starts the HTTP server on the configured host and port. The provided context is used as the base context for all incoming requests via http.Server.BaseContext. When ctx is canceled (e.g. on shutdown signal), all streaming RPC contexts are also canceled, allowing the server to shut down without waiting for streams.

func (*Server) Serve added in v0.0.79

func (s *Server) Serve(ctx context.Context, ln net.Listener) error

Serve accepts connections on ln and serves the Connect API over both HTTP/1.1 and cleartext HTTP/2 (h2c). It is ListenAndServe with a caller-supplied listener; tests use it to bind an ephemeral port.

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Directories

Path Synopsis
Package scheduler implements a cron-based scheduler that fires registered schedules (see internal/schedule) and creates Tasks at their scheduled times.
Package scheduler implements a cron-based scheduler that fires registered schedules (see internal/schedule) and creates Tasks at their scheduled times.

Jump to

Keyboard shortcuts

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