added processing err

This commit is contained in:
insanity@loafle.com 2017-05-17 11:52:08 +09:00
parent dd431cf8b9
commit fa53ca1724
24 changed files with 25 additions and 24 deletions

View File

@ -15,7 +15,7 @@ func (r *ActiveDirectoryHealthCrawler) Internal(params config.Config) ([]byte, e
b, err := r.CheckHeahth(params) b, err := r.CheckHeahth(params)
if err != nil { if err != nil {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -16,7 +16,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -16,7 +16,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -16,7 +16,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -16,7 +16,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ func (r *RedisHeahthCrawler) Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params) b, err := r.CheckHeahth(params)
if err != nil { if err != nil {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -5,6 +5,7 @@ import (
"loafle.com/overflow/commons_go/matcher/snmp" "loafle.com/overflow/commons_go/matcher/snmp"
"loafle.com/overflow/crawler_go" "loafle.com/overflow/crawler_go"
config "loafle.com/overflow/agent_api/config_manager" config "loafle.com/overflow/agent_api/config_manager"
"log"
) )
type SNMPV3HeahthCrawler struct { type SNMPV3HeahthCrawler struct {
@ -15,7 +16,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }

View File

@ -15,7 +15,7 @@ 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 {
// set error return nil, err
} }
return json.Marshal(b) return json.Marshal(b)
} }