agentconn
package v2.23.0
Go to latest Published: Jun 3, 2025 License:AGPL-3.0
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:19 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeConfig¶
type Config struct {// AgentID is the ID of the agent to connect to.AgentIDuuid.UUID `json:"agent_id"`// ConnectionMode is the strategy to use when connecting to the agent.ConnectionModeConnectionMode `json:"connection_mode"`// HoldDuration is the duration to hold the connection open for. If set to// 0, the connection will be closed immediately after making each request// once.HoldDurationhttpapi.Duration `json:"hold_duration"`// Connections is the list of connections to make to services running// inside the workspace. Only HTTP connections are supported.Connections []Connection `json:"connections"`}
typeConnection¶
type Connection struct {// URL is the address to connect to (e.g. "http://127.0.0.1:8080/path"). The// endpoint must respond with a any response within timeout. The IP address// is ignored and the connection is made to the agent's WireGuard IP// instead.URLstring `json:"url"`// Interval is the duration to wait between connections to this endpoint. If// set to 0, the connection will only be made once. Must be set to 0 if// the parent config's hold_duration is set to 0.Intervalhttpapi.Duration `json:"interval"`// Timeout is the duration to wait for a connection to this endpoint to// succeed. If set to 0, the default timeout will be used.Timeouthttpapi.Duration `json:"timeout"`}
typeConnectionMode¶
type ConnectionModestring
const (ConnectionModeDirectConnectionMode = "direct"ConnectionModeDerpConnectionMode = "derp")
Click to show internal directories.
Click to hide internal directories.