/uuid

A system for allowing sockets to be universally and uniquely identified in M-Lab data.

Primary LanguageGoApache License 2.0Apache-2.0

Socket UUIDs for the M-Lab platform

Travis Build Status Coverage Status GoDoc Go Report Card

This allows us to generate a globally unique ID for any TCP socket. When we say globally, we really mean globally - it should be impossible to have two machines generate the same UUID.

The only case the uniqueness of the UUID could be violated is if two machines have the same hostname and booted up at the exact same second in time, but it is bad practice to give machines the same hostname (so don't).

⚠️: This library is fully supported on Linux systems only. Using this library on non Linux system will compile but most likely will not work as intended. Use on non Linux systems at your own risk.

The design of the UUIDs and this system for creating them can be found in DESIGN.md.