177480cff7
* add support for plugin, support mysql & so on * fix queries Co-authored-by: erenJag <erenJag> Co-authored-by: AlteredCoder <AlteredCoder>
24 lines
650 B
Go
24 lines
650 B
Go
package types
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/jinzhu/gorm"
|
|
)
|
|
|
|
//EventSequence is used to represent the summarized version of events that lead to overflow
|
|
type EventSequence struct {
|
|
gorm.Model `json:"-"`
|
|
Time time.Time
|
|
Source Source `json:"-"`
|
|
/*for db only :/ */
|
|
Source_ip string
|
|
Source_range string
|
|
Source_AutonomousSystemNumber string
|
|
Source_AutonomousSystemOrganization string
|
|
Source_Country string
|
|
/*stop db only */
|
|
SignalOccurenceID uint //unique ID for the hasMany relation
|
|
Serialized string `gorm:"size:65535"` //the serialized dict
|
|
}
|