guiapi

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ProtocolVersion = 2

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server exposes the Whodis engine to a desktop frontend over JSON-RPC.

func NewServer

func NewServer(version string, client batchClient, input io.Reader, output, logs io.Writer) *Server

NewServer constructs a GUI engine server. The caller owns all streams.

func NewServerWithEngine added in v1.0.0

func NewServerWithEngine(version string, client batchClient, engine engineRunner, input io.Reader, output, logs io.Writer) *Server

NewServerWithEngine constructs a protocol-v2 server with an explicitly injected operation engine. It is primarily useful to native frontends and deterministic contract tests.

func (*Server) Serve

func (server *Server) Serve() error

Serve processes requests until input closes, then waits for active lookups.

Jump to

Keyboard shortcuts

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