Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTables ¶
func CreateTables()
CreateTables execute SQL staments to create tables into database
func GetDomainsCountDB ¶
GetDomainsCountDB get the number of all most recent and valid domains into database
func ServersChanges ¶
ServersChanges determine if two collection of servers are equal
Types ¶
type Domain ¶
type Domain struct { ID int64 Name string ServersChanged bool SslGrade string PreviousSslGrade string Logo string Title string IsDown bool IsValid bool CreatedAt time.Time }
Domain structure manipulate data of domains table into database
func GetDomainByNameDB ¶
GetDomainByNameDB get most recent domain saved into database by name
func GetDomainsDB ¶
GetDomainsDB get part (by offset and limit) of most recent and valid domains into database
type Server ¶
type Server struct { ID int64 Address string SslGrade string Country string Owner string DomainID int64 }
Server structure manipulate data of servers table into database
func GetServersByDomainDB ¶
GetServersByDomainDB get all servers of a domain saved into database
Click to show internal directories.
Click to hide internal directories.