Documentation
¶
Overview ¶
Package diragent implements the client part of the directory agent protocol. It handles connecting to the server via websocket, authentication, and relaying messages from the server to a child process (implemented by RunWorker) and back.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
Server string
AuthToken string
DirID string
Command string
Env map[string]string
Stderr io.Writer
HTTPClient *http.Client
// contains filtered or unexported fields
}
Service runs the parent process for the directory agent. It connects to the server and relays messages between the server (via websocket) and the child process (via stdin/stdout).
Click to show internal directories.
Click to hide internal directories.