defaults

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package defaults holds mqlite's built-in network defaults in one place so the broker CLI (cmd/mqlite) and the MCP server (cmd/mqlite-mcp) can never drift apart. Packaging files (Dockerfile, compose, fly.toml) and docs cannot import these constants, so their consistency with this package is enforced by tests and release review, not the compiler.

Index

Constants

View Source
const (
	// BrokerPort is mqlite's product-specific default TCP port. Mnemonic: "MQLI" on a
	// phone keypad (M=6, Q=7, L=5, I=4). It is a User Port outside the ephemeral range,
	// on the WHATWG Fetch allow-list (the broker serves a browser console), and not a
	// standard port for any surveyed message-queue protocol, database, or their admin UIs.
	BrokerPort = "6754"

	// BrokerListenAddr is the default broker listen address: all interfaces on BrokerPort.
	// Changing the bind host to loopback-only is a separate security decision.
	BrokerListenAddr = ":" + BrokerPort

	// BrokerLoopbackEndpoint is the canonical local client/MCP endpoint. The broker does
	// not terminate TLS, so the direct endpoint is plain http.
	BrokerLoopbackEndpoint = "http://127.0.0.1:" + BrokerPort
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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