cmd

package
v0.0.0-...-2625d5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Copyright © 2024 Sandarsh Devappa <sd@containeers.com>

Copyright © 2024 Sandarsh Devappa <sd@containeers.com>

Copyright © 2024 Sandarsh Devappa <sd@containeers.com>

Copyright © 2024 Sandarsh Devappa <sd@containeers.com>

Copyright © 2024 Sandarsh Devappa <sd@containeers.com>

Copyright © 2024 Sandarsh Devappa <sd@containeers.com>

Copyright © 2024 Sandarsh Devappa <sd@containeers.com>

Copyright © 2024 Sandarsh Devappa <sd@containeers.com>

Index

Constants

This section is empty.

Variables

View Source
var BuildDate = "undefined"

BuildDate is the build date of the application, set at build time

View Source
var Version = "v0.0.1" // Default version

Version is the version number of the application, to be updated using build-time flags

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This function is called by main.main() and sets the starting point for the CLI. It only needs to be called once to initiate the root command and its subcommands.

Types

type DNSResults

type DNSResults struct {
	Domain string     `yaml:"domain"`
	A      []string   `yaml:"A,omitempty"`
	AAAA   []string   `yaml:"AAAA,omitempty"`
	CNAME  []string   `yaml:"CNAME,omitempty"` // Now supports multiple CNAMEs in the chain
	MX     []MXRecord `yaml:"MX,omitempty"`
	NS     []string   `yaml:"NS,omitempty"`
	TXT    []string   `yaml:"TXT,omitempty"`
}

DNSResults is a struct to hold all DNS query results in a structured format

type MXRecord

type MXRecord struct {
	Host     string `yaml:"host"`
	Priority uint16 `yaml:"priority"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL