db

package
v0.0.0-...-c5940aa Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLegitDomainToDB

func AddLegitDomainToDB(d domains.LegitDomain)

Add a main-DomainName in the DataBase

func AddReliableChangeListToDB

func AddReliableChangeListToDB(tds []reliableChanges.ReliableChange)

func AddReliableChangeToDB

func AddReliableChangeToDB(rc reliableChanges.ReliableChange)

func AddTypoDomainToDB

func AddTypoDomainToDB(td domains.TypoDomain)

Add a typo-DomainName in the DataBase

func AddTypoListToDB

func AddTypoListToDB(tds domains.TypoList)

func CloseDB

func CloseDB()

func GetAllTypoDomainListFromDB

func GetAllTypoDomainListFromDB() domains.TypoList

Return a list of all the typo-domains about mainDomain

func GetCronExpressionFromDB

func GetCronExpressionFromDB(expression string) reliableChanges.CronExpression

func GetLegitDomainFromDB

func GetLegitDomainFromDB(nameMainDomain string) (domains.LegitDomain, error)

Get a main-DomainName from the DataBase

func GetMainDomainListFromDB

func GetMainDomainListFromDB() domains.LegitList

Return a list of all the main-domains

func GetRelaibleChangesFromDB

func GetRelaibleChangesFromDB() (err error, changes reliableChanges.ReliableChangeList)

func GetRelaibleChangesFromDBWithExpression

func GetRelaibleChangesFromDBWithExpression(expression string) (err error, changes reliableChanges.ReliableChangeList)

func GetTypoDomainFromDB

func GetTypoDomainFromDB(nameTypoDomain string) domains.TypoDomain

Get a typo-DomainName from the DataBase

func GetTypoDomainHistoryFromDB

func GetTypoDomainHistoryFromDB(typoDomain string) domains.TypoList

Return a list of all the typo-domains about mainDomain

func GetTypoDomainListFromDB

func GetTypoDomainListFromDB(mainDomain string) domains.TypoList

Return a list of all the typo-domains about mainDomain

func GetTypoDomainListWithStatusFromDB

func GetTypoDomainListWithStatusFromDB(mainDomain string, status []int) domains.TypoList

func InitDB

func InitDB(nameDB string)

Initialize the DataBase

func RemoveLegitDomainFromDB

func RemoveLegitDomainFromDB(nameLegitDomain string)

remove a main-DomainName from the DataBase

func RemoveTypoDomainFromDB

func RemoveTypoDomainFromDB(nameTypoDomain string)

func SaveReliableChangeToDB

func SaveReliableChangeToDB(rc reliableChanges.ReliableChange)

Add a typo-DomainName in the DataBase

Types

This section is empty.

Jump to

Keyboard shortcuts

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