Documentation
¶
Index ¶
- func HandleDomainUpdate(d *Domain, rec parser.HttpxRecord)
- func HandleUrlUpdate(u *URL, rec parser.HttpxRecord)
- func ImportDomainList(domains []string)
- func ImportHttpxRecords(records []parser.HttpxRecord)
- func IsUniqueContraintError(err error) bool
- func NeedsChange(oldV any, newV any) bool
- func StoreDomainChange(d Domain, ch ChangeParameters)
- func StoreUrlChange(u URL, ch ChangeParameters)
- type ChangeParameters
- type ChangeType
- type Domain
- type DomainChange
- type URL
- type UrlChange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleDomainUpdate ¶
func HandleDomainUpdate(d *Domain, rec parser.HttpxRecord)
func HandleUrlUpdate ¶
func HandleUrlUpdate(u *URL, rec parser.HttpxRecord)
func ImportDomainList ¶
func ImportDomainList(domains []string)
func ImportHttpxRecords ¶
func ImportHttpxRecords(records []parser.HttpxRecord)
func IsUniqueContraintError ¶
func NeedsChange ¶
func StoreDomainChange ¶
func StoreDomainChange(d Domain, ch ChangeParameters)
func StoreUrlChange ¶
func StoreUrlChange(u URL, ch ChangeParameters)
Types ¶
type ChangeParameters ¶
type ChangeParameters struct { OldValue *string NewValue *string Type ChangeType Date time.Time }
func ChangeParametersFromString ¶
func ChangeParametersFromString(oldV *string, newV *string, t ChangeType) ChangeParameters
func ChangeParametersFromUint ¶
func ChangeParametersFromUint(oldV uint, newV uint, t ChangeType) ChangeParameters
type ChangeType ¶
type ChangeType string
const ( Host ChangeType = "Host" Port ChangeType = "Port" WebServer ChangeType = "WebServer" StatusCode ChangeType = "Status Code" ContentLength ChangeType = "Content Length" ContentType ChangeType = "Content Type" Title ChangeType = "Title" BodyMD5 ChangeType = "Body MD5" HeaderMD5 ChangeType = "Header MD5" )
type Domain ¶
type Domain struct { gorm.Model Domain string `gorm:"unique;not null"` Host *string Port *string Webserver *string LastChange time.Time }
func GetAllDomains ¶
func GetDomainById ¶
type DomainChange ¶
type DomainChange struct { DomainID uint Domain Domain Change ChangeParameters `gorm:"embedded"` }
func GetDomainChanges ¶
func GetDomainChanges(d *Domain) ([]DomainChange, error)
Click to show internal directories.
Click to hide internal directories.