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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.