fixed
health crawler params map -> config.Config
This commit is contained in:
parent
83d9cf3b5e
commit
b565969109
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/activedirectory"
|
"loafle.com/overflow/commons_go/matcher/activedirectory"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ActiveDirectoryHealthCrawler struct {
|
type ActiveDirectoryHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *ActiveDirectoryHealthCrawler) Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *ActiveDirectoryHealthCrawler) Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/cassandra"
|
"loafle.com/overflow/commons_go/matcher/cassandra"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CassandraHealthCrawler struct {
|
type CassandraHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *CassandraHealthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *CassandraHealthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/dns"
|
"loafle.com/overflow/commons_go/matcher/dns"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DNSHealthCrawler struct {
|
type DNSHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *DNSHealthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *DNSHealthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,6 +4,7 @@ package ftp_protocol_crawler_go
|
||||||
import (
|
import (
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FTPHealthCrawler struct {
|
type FTPHealthCrawler struct {
|
||||||
|
@ -11,7 +12,7 @@ type FTPHealthCrawler struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r *FTPHealthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *FTPHealthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,6 +4,7 @@ import (
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/ftp"
|
"loafle.com/overflow/commons_go/matcher/ftp"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FTPSHealthCrawler struct {
|
type FTPSHealthCrawler struct {
|
||||||
|
@ -11,7 +12,7 @@ type FTPSHealthCrawler struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r *FTPSHealthCrawler) Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *FTPSHealthCrawler) Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/http"
|
"loafle.com/overflow/commons_go/matcher/http"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HTTPHealthCrawler struct {
|
type HTTPHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *HTTPHealthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *HTTPHealthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/imap"
|
"loafle.com/overflow/commons_go/matcher/imap"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type IMAPHealthCrawler struct {
|
type IMAPHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *IMAPHealthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *IMAPHealthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/ldap"
|
"loafle.com/overflow/commons_go/matcher/ldap"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type LDAPHealthCrawler struct {
|
type LDAPHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *LDAPHealthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *LDAPHealthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/mongodb"
|
"loafle.com/overflow/commons_go/matcher/mongodb"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MongoDBHealthCrawler struct {
|
type MongoDBHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *MongoDBHealthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *MongoDBHealthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/mssql"
|
"loafle.com/overflow/commons_go/matcher/mssql"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MSSqlHeahthCrawler struct {
|
type MSSqlHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *MSSqlHeahthCrawler) Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *MSSqlHeahthCrawler) Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -5,13 +5,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/mysql"
|
"loafle.com/overflow/commons_go/matcher/mysql"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MysqlHeahthCrawler struct {
|
type MysqlHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *MysqlHeahthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *MysqlHeahthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -5,13 +5,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/netbios"
|
"loafle.com/overflow/commons_go/matcher/netbios"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NetbiosHeahthCrawler struct {
|
type NetbiosHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *NetbiosHeahthCrawler) Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *NetbiosHeahthCrawler) Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/oracle"
|
"loafle.com/overflow/commons_go/matcher/oracle"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type OracleHeahthCrawler struct {
|
type OracleHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *OracleHeahthCrawler) Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *OracleHeahthCrawler) Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/pgsql"
|
"loafle.com/overflow/commons_go/matcher/pgsql"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PGSqlHeahthCrawler struct {
|
type PGSqlHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *PGSqlHeahthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *PGSqlHeahthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/pop"
|
"loafle.com/overflow/commons_go/matcher/pop"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type POP3HeahthCrawler struct {
|
type POP3HeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *POP3HeahthCrawler) Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *POP3HeahthCrawler) Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/rmi"
|
"loafle.com/overflow/commons_go/matcher/rmi"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RMIHeahthCrawler struct {
|
type RMIHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *RMIHeahthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *RMIHeahthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/smb"
|
"loafle.com/overflow/commons_go/matcher/smb"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SMBHeahthCrawler struct {
|
type SMBHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *SMBHeahthCrawler) Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *SMBHeahthCrawler) Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/smtp"
|
"loafle.com/overflow/commons_go/matcher/smtp"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SMTPHeahthCrawler struct {
|
type SMTPHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *SMTPHeahthCrawler) Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *SMTPHeahthCrawler) Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/snmp"
|
"loafle.com/overflow/commons_go/matcher/snmp"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SNMPV2CHeahthCrawler struct {
|
type SNMPV2CHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *SNMPV2CHeahthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *SNMPV2CHeahthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/snmp"
|
"loafle.com/overflow/commons_go/matcher/snmp"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SNMPV3HeahthCrawler struct {
|
type SNMPV3HeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *SNMPV3HeahthCrawler) Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *SNMPV3HeahthCrawler) Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/ssh"
|
"loafle.com/overflow/commons_go/matcher/ssh"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SSHHeahthCrawler struct {
|
type SSHHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *SSHHeahthCrawler) Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *SSHHeahthCrawler) Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/telnet"
|
"loafle.com/overflow/commons_go/matcher/telnet"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TelnetHeahthCrawler struct {
|
type TelnetHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *TelnetHeahthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *TelnetHeahthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"loafle.com/overflow/commons_go/matcher/wmi"
|
"loafle.com/overflow/commons_go/matcher/wmi"
|
||||||
"loafle.com/overflow/crawler_go"
|
"loafle.com/overflow/crawler_go"
|
||||||
|
"loafle.com/overflow/crawler_go/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WMIHeahthCrawler struct {
|
type WMIHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *WMIHeahthCrawler)Internal(params map[string]interface{}) ([]byte, error) {
|
func (r *WMIHeahthCrawler)Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user