health crawler
     params map -> config.Config
This commit is contained in:
snoop 2017-04-17 11:26:26 +09:00
parent 83d9cf3b5e
commit b565969109
23 changed files with 46 additions and 23 deletions

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/activedirectory"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type ActiveDirectoryHealthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/cassandra"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type CassandraHealthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/dns"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type DNSHealthCrawler struct {
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)
if err != nil {

View File

@ -4,6 +4,7 @@ package ftp_protocol_crawler_go
import (
"loafle.com/overflow/crawler_go"
"encoding/json"
"loafle.com/overflow/crawler_go/config"
)
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)
if err != nil {

View File

@ -4,6 +4,7 @@ import (
"loafle.com/overflow/crawler_go"
"encoding/json"
"loafle.com/overflow/commons_go/matcher/ftp"
"loafle.com/overflow/crawler_go/config"
)
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/http"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type HTTPHealthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/imap"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type IMAPHealthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/ldap"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type LDAPHealthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/mongodb"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type MongoDBHealthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/mssql"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type MSSqlHeahthCrawler struct {
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)
if err != nil {

View File

@ -5,13 +5,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/mysql"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type MysqlHeahthCrawler struct {
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)
if err != nil {

View File

@ -5,13 +5,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/netbios"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type NetbiosHeahthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/oracle"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type OracleHeahthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/pgsql"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type PGSqlHeahthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/pop"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type POP3HeahthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/rmi"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type RMIHeahthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/smb"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type SMBHeahthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/smtp"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type SMTPHeahthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/snmp"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type SNMPV2CHeahthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/snmp"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type SNMPV3HeahthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/ssh"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type SSHHeahthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/telnet"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type TelnetHeahthCrawler struct {
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)
if err != nil {

View File

@ -4,13 +4,14 @@ import (
"encoding/json"
"loafle.com/overflow/commons_go/matcher/wmi"
"loafle.com/overflow/crawler_go"
"loafle.com/overflow/crawler_go/config"
)
type WMIHeahthCrawler struct {
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)
if err != nil {