package
5.0.0+incompatible
Repository: https://github.com/qwenode/tailscale.git
Documentation: pkg.go.dev

# Packages

Package derphttp implements DERP-over-HTTP.

# Functions

CanAckPings returns a ClientOpt to set whether it advertises to the server that it's capable of acknowledging ping requests.
IsProber returns a ClientOpt to pass to the DERP server during connect to declare that this client is a a prober.
MeshKey returns a ClientOpt to pass to the DERP server during connect to get access to join the mesh.
No description provided by the author
NewServer returns a new DERP server.
ServerPublicKey returns a ClientOpt to declare that the server's DERP public key is known.

# Constants

MaxPacketSize is the maximum size of a packet sent over DERP.
ProtocolVersion is bumped whenever there's a wire-incompatible change.

# Structs

BytesSentRecv records the number of bytes that have been sent since the last traffic check for a given process, as well as the public key of the process sending those bytes.
Client is a DERP client.
HealthMessage is a one-way message from server to client, declaring the connection health state.
KeepAliveMessage is a one-way empty message from server to client, just to keep the connection alive.
ReceivedPacket is a ReceivedMessage representing an incoming packet.
Server is a DERP server.
ServerInfoMessage is sent by the server upon first connect.
ServerRestartingMessage is a one-way message from server to client, advertising that the server is restarting.

# Interfaces

ClientOpt is an option passed to NewClient.
Conn is the subset of the underlying net.Conn the DERP Server needs.
PacketForwarder is something that can forward packets.
ReceivedMessage represents a type returned by Client.Recv.

# Type aliases

PeerGoneMessage is a ReceivedMessage that indicates that the client identified by the underlying public key had previously sent you a packet but has now disconnected from the server.
PeerPresentMessage is a ReceivedMessage that indicates that the client is connected to the server.
PingMessage is a request from a client or server to reply to the other side with a PongMessage with the given payload.
PongMessage is a reply to a PingMessage from a client or server with the payload sent previously in a PingMessage.