Versions in this module Expand all Collapse all v1 v1.0.1 Apr 28, 2021 Changes in this version + 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 struct + Dbname string + Host string + Password string + Port int + User string + func GetConfig(configFile string, debug bool, verbose bool) (Config, error) + type Node struct + Ip string + Port uint16 + func DecodeNodes(s string) ([]*Node, error) + func Decodepeer(s []string, hash string) ([]*Node, error)