Documentation
¶
Overview ¶
Package socket is where the per-user Blitz service listens and how clients reach it: a Unix socket that only its user can open. The service runs shell commands, so it is never on a network port by default.
Index ¶
Constants ¶
const BaseURL = "http://blitz"
BaseURL is the URL clients use over the socket (the host is ignored).
Variables ¶
var ErrRunning = errors.New("a Blitz service is already running")
ErrRunning reports a service already answering on the socket.
Functions ¶
func Client ¶
Client returns an HTTP client that reaches the service on the socket; use it with BaseURL.
func DefaultSocket ¶
func DefaultSocket() string
DefaultSocket is where the per-user service listens: $BLITZ_SOCKET, or ~/.blitz/run/blitz.sock.
Types ¶
This section is empty.