Documentation ¶ Index ¶ func GetLease(version IPVersion, iface string) ([]string, error) type IPVersion Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetLease ¶ func GetLease(version IPVersion, iface string) ([]string, error) GetLease is a function that retrieves the lease for the specified IP version and interface. It returns a list of string representations of the packets exchanged during the DHCP transaction and an error if any. Types ¶ type IPVersion ¶ type IPVersion uint IPVersion is a type used to distinguish between IPv4 and IPv6. const ( // IPv4 represents the IP version 4. IPv4 IPVersion = iota // IPv6 represents the IP version 6. IPv6 ) Source Files ¶ View all Source files dhcp.go Click to show internal directories. Click to hide internal directories.