Documentation
¶
Overview ¶
Package gateway is the host's public endpoint of a restored engine: a TCP listener that forwards the inference routes, and only those, to the agent's inference socket. Until the restore has passed its checks every request gets 503, so a client never waits on a half-restored engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
Gateway forwards inference requests once ready.
func New ¶
New forwards to the engine behind socket; onToken runs once, when the first completion bytes go out.
func (*Gateway) Drain ¶
Drain closes admission and waits for the admitted requests, streaming bodies included.
type TLS ¶
type TLS struct {
// contains filtered or unexported fields
}
TLS is the gateway's certificate, read from PEM files and read again when they change: Kubernetes rotates a mounted secret by swapping a symlink, and the next handshake gets the new pair without a restart.
func LoadTLS ¶
LoadTLS reads the pair once, so that a bad certificate fails the start rather than every handshake.