devtunnel
packageThis package is not in the latest version of its module.
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¶
var Regions = []Region{{ID: 0,LocationName: "US East Pittsburgh",Nodes: []Node{{ID: 1,RegionID: 0,HostnameHTTPS: "pit-1.try.coder.app",},},},}
Functions¶
funcNew¶
New creates a tunnel with a public URL and returns a listener for incomingconnections on that URL. Connections are made over the wireguard protocol.Tunnel configuration is cached in the user's config directory. Successivecalls to New will always use the same URL. If multiple public URLs inparallel are required, use NewWithConfig.
This useshttps://github.com/coder/wgtunnel as the server and clientimplementation.
Types¶
typeConfig¶added inv0.6.6
type Config struct {Versiontunnelsdk.TunnelVersion `json:"version"`PrivateKeydevice.NoisePrivateKey `json:"private_key"`PublicKeydevice.NoisePublicKey `json:"public_key"`TunnelNode `json:"tunnel"`// Used in testing. Normally this is nil, indicating to use DefaultClient.HTTPClient *http.Client `json:"-"`}