net

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package net is the socket capability: the kernel I/O tier's network boundary. Opening a listener or dialing a connection crosses out of the process's shared memory into the kernel, so it happens only through a capability granted by the binary that owns the process.

A binary constructs one HostNetwork and passes it, as an IListener or an IDialer, to whatever needs it; a service receives the capability in its constructor and never calls net.Listen or net.Dial itself. The narrower protocol capabilities, candace/ipc/net/http and candace/ipc/net/grpc, are built on these two interfaces, which is also what lets a test replace the kernel with an in-memory pipe.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostNetwork

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

HostNetwork is this host's kernel network stack, granted as a capability.

func NewHostNetwork

func NewHostNetwork() *HostNetwork

NewHostNetwork returns the host's network capability with the standard library's defaults.

func (*HostNetwork) DialContext

func (network *HostNetwork) DialContext(ctx context.Context, kind string, address string) (stdnet.Conn, error)

DialContext opens a connection to address.

func (*HostNetwork) Listen

func (network *HostNetwork) Listen(ctx context.Context, kind string, address string) (stdnet.Listener, error)

Listen opens a listener on address.

type IDialer

type IDialer interface {
	DialContext(ctx context.Context, network string, address string) (stdnet.Conn, error)
}

IDialer opens outbound connections.

type IListener

type IListener interface {
	Listen(ctx context.Context, network string, address string) (stdnet.Listener, error)
}

IListener opens listening sockets.

Directories

Path Synopsis
Package github provides primitives to interact with the openapi HTTP API.
Package github provides primitives to interact with the openapi HTTP API.
Package grpc is the gRPC client-connection capability.
Package grpc is the gRPC client-connection capability.
Package hfjobs is the Hugging Face Jobs API: run a container on Hugging Face's machines, list and inspect the namespace's jobs, cancel one, and read each flavor's price.
Package hfjobs is the Hugging Face Jobs API: run a container on Hugging Face's machines, list and inspect the namespace's jobs, cancel one, and read each flavor's price.
Package http is the HTTP capability: one server bound to one address, mounted into the process runtime as a service, and the outbound client (NewHTTPClient) whose every connection is dialed through a granted socket capability.
Package http is the HTTP capability: one server bound to one address, mounted into the process runtime as a service, and the outbound client (NewHTTPClient) whose every connection is dialed through a granted socket capability.
Package model is CSF's contract with a brain: an agent loop over a large model behind an inference provider or API.
Package model is CSF's contract with a brain: an agent loop over a large model behind an inference provider or API.
claudecode
Package claudecode is the Claude Code provider: a Claude Code session is an agent loop in its own process on the operator's machine.
Package claudecode is the Claude Code provider: a Claude Code session is an agent loop in its own process on the operator's machine.
copilot
Package copilot is the first inference provider behind CSF's brain contract: the GitHub Copilot agent loop, reached through the existing Copilot adapter's generated Workbench client (services/copilot-adapter/gen/api).
Package copilot is the first inference provider behind CSF's brain contract: the GitHub Copilot agent loop, reached through the existing Copilot adapter's generated Workbench client (services/copilot-adapter/gen/api).
copilotcli
Package copilotcli is the GitHub Copilot CLI provider: CopilotCLIExecutor drives the Copilot command line as a turn executor for one session CSF owns.
Package copilotcli is the GitHub Copilot CLI provider: CopilotCLIExecutor drives the Copilot command line as a turn executor for one session CSF owns.
jev
Package jev asks JEV-9B typed decisions.
Package jev asks JEV-9B typed decisions.
llamacpp
Package llamacpp reaches a llama.cpp server started with --reranking: a cross-encoder that scores how well each document answers one query.
Package llamacpp reaches a llama.cpp server started with --reranking: a cross-encoder that scores how well each document answers one query.
ollama
Package ollama is the local model provider behind CSF's brain contract: an Ollama server, on this host or a neighbour, reached over its HTTP API through the http capability the constructor receives.
Package ollama is the local model provider behind CSF's brain contract: an Ollama server, on this host or a neighbour, reached over its HTTP API through the http capability the constructor receives.
stub
Package stub is the brain that needs no model: it answers every decision with the same canned proposal, so the harness runs and its specs pass with no inference provider, network or credential at all.
Package stub is the brain that needs no model: it answers every decision with the same canned proposal, so the harness runs and its specs pass with no inference provider, network or credential at all.
Package ros is CSF's boundary to the low-level spine controller.
Package ros is CSF's boundary to the low-level spine controller.

Jump to

Keyboard shortcuts

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