commands

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package commands provides the command-line interface for sql-http-proxy.

Index

Constants

View Source
const (
	// MaxHeaderBytes caps the total size of the request header block.
	MaxHeaderBytes = 64 * 1024
	// MaxHeaderValueCount caps the number of header values in a request,
	// bounding the per-connection allocation a client can force.
	MaxHeaderValueCount = 100
)

Request header limits. These are stricter than the net/http defaults (1MiB / 500 values) because every endpoint here is a SQL query keyed off a small set of parameters - no legitimate client needs a large header block.

View Source
const ReadHeaderTimeout = 10 * time.Second

ReadHeaderTimeout is the maximum time allowed to read request headers. Only the header phase is bounded: bodies and responses are left untimed so that large uploads and slow queries are not cut off mid-flight.

View Source
const ShutdownTimeout = 30 * time.Second

ShutdownTimeout is the maximum time to wait for graceful shutdown.

Variables

View Source
var App = MakeApp()

App is the main CLI application.

View Source
var Version = "dev"

Version is set by goreleaser via ldflags.

Functions

func MakeApp

func MakeApp() *cli.Command

MakeApp creates a new CLI application instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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