Documentation ¶
Index ¶
- func BytesToString(data []byte) string
- func CheckExist(db *sql.DB, debug bool, verbose bool, hash string) (bool, error)
- func ConnectDb(cfgFile string, debug bool, verbose bool) (*sql.DB, error)
- func CreateDb(cfgFile string, database string, debug bool, verbose bool) error
- func DeleteAlert(db *sql.DB, debug bool, verbose bool, ip string) error
- func DeleteMonitor(db *sql.DB, debug bool, verbose bool, hash string) error
- func DeletePossibles(db *sql.DB, debug bool, verbose bool)
- func DeletePossiblesFalse(db *sql.DB, debug bool, verbose bool)
- func DeleteProject(db *sql.DB, debug bool, verbose bool, name string) error
- func DownloadPossibles(db *sql.DB, timeout int, debug bool, verbose bool, projectName string) error
- func DownloadValid(db *sql.DB, timeout int, debug bool, verbose bool, projectName string) error
- func ExecuteDb(db *sql.DB, debug bool, verbose bool, sqlString string) error
- func GetHash(db *sql.DB, debug bool, verbose bool, i int) (string, error)
- func GetHashes(db *sql.DB, debug bool, verbose bool) ([][]byte, error)
- func GetMonitor(db *sql.DB, debug bool, verbose bool, projectName string) ([]string, error)
- func GetPossibles(db *sql.DB, debug bool, verbose bool) (int, error)
- func InitDB(db *sql.DB, debug bool, verbose bool) error
- func InsertAlert(db *sql.DB, debug bool, verbose bool, ip string, list string, username string, ...) error
- func InsertDownload(db *sql.DB, debug bool, verbose bool, ip string, port int, hash string, ...) error
- func InsertFile(db *sql.DB, debug bool, verbose bool, filePath string) error
- func InsertHash(db *sql.DB, debug bool, verbose bool, hash string, source string) error
- func InsertHashList(db *sql.DB, debug bool, verbose bool, hashes []string, source string) error
- func InsertIP(db *sql.DB, debug bool, verbose bool, ip string, projectName string) error
- func InsertMonitor(db *sql.DB, debug bool, verbose bool, hash string, username string, ...) error
- func InsertPossible(db *sql.DB, debug bool, verbose bool, num int, hash string, valid bool, ...) error
- func InsertProject(db *sql.DB, debug bool, verbose bool, projectName string) error
- func MonitorAlert(configfile string, debug bool, verbose bool, projectName string)
- func QueryAlert(db *sql.DB, debug bool, verbose bool, sql string, ip string, user string) (string, error)
- func QueryCount(db *sql.DB, debug bool, verbose bool) (string, error)
- func QueryHash(db *sql.DB, debug bool, verbose bool, sqlQuery string, hash string, ...) (string, error)
- func QueryIP(db *sql.DB, debug bool, verbose bool, sql string, ip string) (string, error)
- func QueryMonitor(db *sql.DB, debug bool, verbose bool, sqlQuery string, hash string, ...) (string, error)
- func QueryPossibles(db *sql.DB, debug bool, verbose bool, sql string, hash string) (string, error)
- func QueryProjects(db *sql.DB, debug bool, verbose bool, sql string, nombre string) (string, error)
- func RandomID() []byte
- func SelectPossiblesWhere(columnTrue string, db *sql.DB, debug bool, verbose bool, projectName string) error
- func SetLen(db *sql.DB, debug bool, verbose bool, num int, hash string) error
- func SetNamePossibles(db *sql.DB, debug bool, verbose bool, name string, hash string) error
- func SetTrueDownload(db *sql.DB, debug bool, verbose bool, hash string) error
- func SetTruePossible(db *sql.DB, debug bool, verbose bool, hash string) error
- func SetTrueValid(db *sql.DB, debug bool, verbose bool, hash string) error
- type Config
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckExist ¶
CheckExist : comprobar si el Possible esta en la otra lista
func DeleteAlert ¶
DeleteAlert from the database
func DeleteMonitor ¶
DeleteMonitor from the database
func DeletePossibles ¶
DeletePossibles table
func DeletePossiblesFalse ¶
DeletePossiblesFalse where possible=false
func DeleteProject ¶
DeleteProject from the database
func DownloadPossibles ¶
DownloadPossibles Get and download (torrentLib) from possibles where possible true
func DownloadValid ¶
DownloadValid Get and download (torrentLib) from possibles where valid = true
func GetMonitor ¶
GetMonitor from the database
func GetPossibles ¶
GetPossibles from DB possibles table
func InsertAlert ¶
func InsertAlert(db *sql.DB, debug bool, verbose bool, ip string, list string, username string, projectName string) error
InsertAlert to the database
func InsertDownload ¶
func InsertDownload(db *sql.DB, debug bool, verbose bool, ip string, port int, hash string, projectName string) error
InsertDownload to the database
func InsertFile ¶
InsertFile to the database
func InsertHash ¶
InsertHash to the database
func InsertHashList ¶
InsertHashList to the database
func InsertMonitor ¶
func InsertMonitor(db *sql.DB, debug bool, verbose bool, hash string, username string, projectName string) error
InsertMonitor inserts a hash in teh database for monitor in daemon mode.
func InsertPossible ¶
func InsertPossible(db *sql.DB, debug bool, verbose bool, num int, hash string, valid bool, projectName string) error
InsertPossible in possibles table
func InsertProject ¶
InsertProject to the database
func MonitorAlert ¶
MonitorAlert create a listener for the PostgreSQL database for alerts and print them.
func QueryAlert ¶
func QueryAlert(db *sql.DB, debug bool, verbose bool, sql string, ip string, user string) (string, error)
QueryAlert from the database
func QueryCount ¶
QueryCount from the database hash table
func QueryHash ¶
func QueryHash(db *sql.DB, debug bool, verbose bool, sqlQuery string, hash string, source string) (string, error)
QueryHash from database
func QueryMonitor ¶
func QueryMonitor(db *sql.DB, debug bool, verbose bool, sqlQuery string, hash string, user string) (string, error)
QueryMonitor SELECT from the database monitor table
func QueryPossibles ¶
QueryPossibles from the database
func QueryProjects ¶
QueryProjects from the database projects table
func SelectPossiblesWhere ¶
func SelectPossiblesWhere(columnTrue string, db *sql.DB, debug bool, verbose bool, projectName string) error
SelectPossiblesWhere columnTrue=True from the database. Possibles values: download, valid and possible
func SetNamePossibles ¶
SetNamePossibles in possibles table
func SetTrueDownload ¶
SetTrueDownload a hash from possibles table
func SetTruePossible ¶
SetTruePossible a hash from possibles table