Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertInfoJSON ¶
func URLInfoJSON ¶
URLInfoJSON returns the URL info as formatted JSON.
func URLInfoTable ¶
URLInfoTable returns a formatted table-style string.
Types ¶
type CertInfo ¶
type CertInfo struct {
Subject string `json:"subject"`
Issuer string `json:"issuer"`
NotBefore time.Time `json:"not_before"`
NotAfter time.Time `json:"not_after"`
SerialNumber string `json:"serial_number"`
SignatureAlgorithm string `json:"signature_algorithm"`
DNSNames []string `json:"dns_names,omitempty"`
IsExpired bool `json:"is_expired"`
}
CertInfo holds decoded X.509 certificate information.
func CertDecode ¶
type URLInfo ¶
type URLInfo struct {
Scheme string `json:"scheme"`
Host string `json:"host"`
Port string `json:"port,omitempty"`
Path string `json:"path,omitempty"`
Query map[string][]string `json:"query,omitempty"`
Fragment string `json:"fragment,omitempty"`
User string `json:"user,omitempty"`
}
URLInfo holds parsed URL components.
Click to show internal directories.
Click to hide internal directories.