Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// ServerURL is the https:// URL of the /agent endpoint (WebTransport).
ServerURL string
APIKey string
APISecret string
AgentName string
Deployment string
Endpoints []*livekit.AgentHttp_AgentEndpoint
// TargetAddr is the host:port of the local HTTP server streams bridge into.
TargetAddr string
// Insecure skips TLS verification (self-signed certs in tests).
Insecure bool
Logger logger.Logger
}
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker is one registration epoch: a single WebTransport session carrying the control stream and every HTTP-exchange stream.
func (*Worker) Start ¶
Start dials the WebTransport session, registers on the control stream, and begins serving node-opened streams. It returns once registration completes.
func (*Worker) WaitRegistered ¶
WaitRegistered blocks until registration completes or ctx is done.
Click to show internal directories.
Click to hide internal directories.