crowdsec/pkg/types/source.go
Thibault bui Koechlin 2016167654 initial import
2020-05-15 11:39:16 +02:00

21 lines
625 B
Go

package types
import (
"net"
"github.com/jinzhu/gorm"
)
//Source is the generic representation of a source ip implicated in events / overflows. It contains both information extracted directly from logs and enrichment
type Source struct {
gorm.Model `json:"-"`
Ip net.IP
Range net.IPNet
AutonomousSystemNumber string
AutonomousSystemOrganization string
Country string
Latitude float64
Longitude float64
Flags map[string]bool //a list of flags we can set
}