listeners

package
v0.0.0-...-e6907d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2020 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginRoutes

func LoginRoutes(r *gin.Engine)

LoginRoutes defines the routes for the login listener

func SocialRoutes

func SocialRoutes(r *gin.Engine)

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 Login

type Login struct {
	Username string `form:"username"`
	Password string `form:"password"`
}

Login struct defines the login form data

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL