Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct { ID uint `json:"id"` Subject string `json:"subject"` Issuer string `json:"issuer"` NotBefore time.Time `json:"not_before"` NotAfter time.Time `json:"not_after"` SignatureAlgorithm string `json:"signature_algorithm"` PublicKeyAlgorithm string `json:"public_key_algorithm"` }
func ConvertCertificate ¶
func ConvertCertificate(certificate entities.CertificateModel) Certificate
func ConvertCertificates ¶
func ConvertCertificates(certificates []entities.CertificateModel) []Certificate
type CertificateModel ¶
type CertificateModel struct {
entities.CertificateModel
}
Local type embedding entities.CertificateModel
func (*CertificateModel) BeforeSave ¶
func (c *CertificateModel) BeforeSave(tx *sqlx.DB) (err error)
Custom methods to handle PublicKey marshaling/unmarshaling
type DNS ¶
type DNS struct { ID uint `json:"id"` CNAME []string `json:"cname"` ARecords []string `json:"a_records"` AAAARecords []string `json:"aaaa_records"` MXRecords []string `json:"mx_records"` NSRecords []string `json:"ns_records"` TXTRecords []string `json:"txt_records"` PTRRecord string `json:"ptr_record"` DNSSEC bool `json:"dnssec"` }
func ConvertDNS ¶
type Network ¶
type Network struct { ID uint `json:"id"` IPAddresses []string `json:"ip_addresses"` IPRanges []string `json:"ip_ranges"` HTTPHeaders []string `json:"http_headers"` Certificates []Certificate `json:"certificates"` Whois Whois `json:"whois"` DNS DNS `json:"dns"` }
func ConvertNetwork ¶
func ConvertNetwork(network entities.NetworkModel) Network
type Whois ¶
type Whois struct { ID uint `json:"id"` DomainName string `json:"domain_name"` Registrar string `json:"registrar"` Email string `json:"email"` Phone string `json:"phone"` Updated string `json:"updated"` Created string `json:"created"` Expires string `json:"expires"` Status string `json:"status"` NameServers []string `json:"name_servers"` RegistrantName string `json:"registrant_name"` RegistrantEmail string `json:"registrant_email"` RegistrantPhone string `json:"registrant_phone"` RegistrantOrg string `json:"registrant_org"` RegistrantCity string `json:"registrant_city"` RegistrantState string `json:"registrant_state"` RegistrantCountry string `json:"registrant_country"` RegistrantPostalCode string `json:"registrant_postal_code"` AdminName string `json:"admin_name"` AdminEmail string `json:"admin_email"` AdminPhone string `json:"admin_phone"` AdminOrg string `json:"admin_org"` AdminCity string `json:"admin_city"` AdminState string `json:"admin_state"` AdminCountry string `json:"admin_country"` AdminPostalCode string `json:"admin_postal_code"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
func ConvertWhois ¶
func ConvertWhois(whois entities.WhoisModel) Whois
Click to show internal directories.
Click to hide internal directories.