Documentation
¶
Overview ¶
Package serial implements RFC 1982 serial number arithmetic for DNS zone serials. See: https://datatracker.ietf.org/doc/html/rfc1982
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serial ¶
type Serial uint32
Serial is a 32-bit serial number with RFC 1982 comparison semantics.
func (Serial) GreaterThan ¶
GreaterThan returns true if s is strictly greater than other.
func (Serial) LessThan ¶
LessThan returns true if s is strictly less than other in serial arithmetic. Relies on uint32 wrapping (modulo 2^32). Note: If distance is exactly 2^31, the comparison is undefined per RFC 1982; this implementation returns false in that case.
Click to show internal directories.
Click to hide internal directories.