package
0.0.0-20250110112245-bf9615135680
Repository: https://github.com/edup2p/common.git
Documentation: pkg.go.dev
# Packages
Package control pertains to all code related to contacting, serving, and talking to control.
Package dial contains an implementation of TCP/HTTP dialing.
Package ifaces contains interface definitions commonly shared amongst code in `types`.
Package key contains Session, Node, and Control key definitions, private and public, and associated functions.
Package msgactor contains definitions for messages directly sent and received between actors of the toversok stage.
Package msgcontrol contains types, constants, and interfaces related to control messages.
Package msgsess contains session message definitions and parsing methods, to be sent over relay or directly.
Package relay contains all code necessary to establish a connection with a relay server, create a relay server, and communicate with one.
Package stage contains some miscellaneous types required in both toversok and types/ifaces.
Package stun contains all the code pertaining to STUN resolution.
# Functions
IsContextDone does a quick check on a context to see if its dead.
Map is a generic slice mapping function taken from https://stackoverflow.com/a/71624929/8700553, since golang loves to not give its developers any usable tools.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RandStringBytesMaskImprSrc returns a random hexadecimal string of length n.
ReadUint32 reads an uint32 in big-endian order to the reader.
SetSubtraction returns the elements in `a` that aren't in `b`.
SetUnion returns a set of elements that were either in a and b in set notation: a u b.
No description provided by the author
No description provided by the author
WriteUint32 writes an uint32 in big-endian order to the writer.
# Constants
No description provided by the author
# Structs
No description provided by the author
# Type aliases
Incomparable is a zero-width incomparable type.
No description provided by the author