Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintResult ¶
func PrintResult(r *Result)
PrintResult writes a unified-diff style representation of r to stdout.
Types ¶
type CmdDiffConfig ¶
CmdDiffConfig holds the configuration for the diff command.
type NetworkChange ¶
NetworkChange represents a network whose record differs between two MMDB databases.
type NetworkEntry ¶
NetworkEntry represents a network CIDR and its associated record.
type Result ¶
type Result struct {
InputA string
InputB string
Added []NetworkEntry
Removed []NetworkEntry
Modified []NetworkChange
HasDiff bool
}
Result contains the outcome of comparing two MMDB files.
func DiffMMDB ¶
func DiffMMDB(cfg CmdDiffConfig) (*Result, error)
DiffMMDB compares the networks in two MMDB files and returns the differences.
Click to show internal directories.
Click to hide internal directories.