Documentation ¶
Overview ¶
Package uuid provides functions that create a consistent globally unique UUID for a given TCP socket. The package defines a new command-line flag `-uuid-prefix-file`, and that file and its contents should be set up prior to invoking any command which uses this library.
This implementation only works reliably on Linux systems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromCookie ¶
FromCookie returns a string that is a globally unique identifier for the passed-in socket cookie.
func FromFile ¶
FromFile returns a string that is a globally unique identifier for the socket represented by the os.File pointer.
This function will never return the empty string, but the returned string value should only be used if the error is nil.
func FromTCPConn ¶
FromTCPConn returns a string that is a globally unique identifier for the socket held by the passed-in TCPConn (assuming hostnames are unique).
This function will never return the empty string, but the returned string value should only be used if the error is nil.
func SetUUIDPrefixFile ¶ added in v1.0.2
SetUUIDPrefixFile allows the prefix filename to be passed in via a function call instead of via the command line. This function is useful for programs with custom command lines that want to use this package.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package socookie allows to get a socket's cookie.
|
Package socookie allows to get a socket's cookie. |