Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoginRoutes ¶
LoginRoutes defines the routes for the login listener
func SocialRoutes ¶
SocialRoutes defines the routes for the social listener
Types ¶
type EmailNotification ¶
type EmailNotification struct { EmailAddress string `json:"emailAddress"` HistoryID uint64 `json:"historyId"` }
EmailNotification describes a simple Gmail notification
type GmailToken ¶
type GmailToken struct { AccessToken string `json: "access_token"` ExpiresIn int `json: "expires_in"` RefreshToken string `json: "refresh_token"` Scope string `json: "scope"` TokenType string `json: "token_type"` }
GmailToken represents the fields returned from a Gmail Oauth token JSON
type IntelligenceIndicator ¶
type IntelligenceIndicator struct { Subject string `json:"subject_re"` Content string `json:"content_re"` From string `json:"from_email"` HitType models.HitType `json:"hitType"` SourceType models.SourceType `json:"sourceType"` }
IntelligenceIndicator struct defines matching templates for social email notifications
type LoginListenerHit ¶
type LoginListenerHit struct { ListenerID int `json:"listenerId"` ListenerType models.ListenerType `json:"listenerType"` IPAddress string `json:"ipAddress"` Username string `json:"username"` Password string `json:"password"` HitType models.HitType `json:"hitType"` SourceType models.SourceType `json:"sourceType"` }
LoginListenerHit struct defines the hit data that is sent to the server
type NotificationMessage ¶
type NotificationMessage struct { Data string `json:"data"` MessageID string `json:"messageId"` PublishTime string `json:"publishTime"` }
NotificationMessage struct describes a simple notification message
type PushNotification ¶
type PushNotification struct { Message NotificationMessage `json:"message"` Subscription string `json:"subscription"` }
PushNotification struct describes a simple Google Pub/Sub notification
type SocialListenerHit ¶
type SocialListenerHit struct { ListenerID int `json:"listenerId"` ListenerType models.ListenerType `json:"listenerType"` Email string `json:"email"` HitType models.HitType `json:"hitType"` SourceType models.SourceType `json:"sourceType"` }
SocialListenerHit struct defines the hit data that is sent to the server
Click to show internal directories.
Click to hide internal directories.