api

package
v0.0.0-...-4afd048 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(inst *instance.Manager, assemblies *assembly.Repository, compiler *planner.Compiler, token string) *Server

NewServer builds a server. The token authenticates every API request that is not the health probe; an empty token leaves the API unauthenticated, which the daemon permits only for a socket-scoped listener and refuses for TCP.

func (*Server) Handler

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

Handler returns the wrapped request chain, so an in-process consumer sees the same logging, recovery, and authentication as a network client.

func (*Server) Serve

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

func (*Server) StopInstances

func (s *Server) StopInstances()

Directories

Path Synopsis
Package bridge connects the WebSocket transport to per-instance execution event streams.
Package bridge connects the WebSocket transport to per-instance execution event streams.
handlers

Jump to

Keyboard shortcuts

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