Documentation ¶
Index ¶
Constants ¶
View Source
const ( EndpointWireguard = "wg-tunnel-udp.coder.app" EndpointHTTPS = "wg-tunnel.coder.app" ServerPublicKey = "+KNSMwed/IlqoesvTMSBNsHFaKVLrmmaCkn0bxIhUg0=" ServerUUID = "fcad0000-0000-4000-8000-000000000001" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.6.6
type Config struct { ID uuid.UUID `json:"id"` PrivateKey device.NoisePrivateKey `json:"private_key"` PublicKey device.NoisePublicKey `json:"public_key"` }
func GenerateConfig ¶ added in v0.6.6
type Tunnel ¶ added in v0.6.6
func New ¶
New creates a tunnel with a public URL and returns a listener for incoming connections on that URL. Connections are made over the wireguard protocol. Tunnel configuration is cached in the user's config directory. Successive calls to New will always use the same URL. If multiple public URLs in parallel are required, use NewWithConfig.
Click to show internal directories.
Click to hide internal directories.