models

package
v0.0.0-...-043f3ae Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asn

type Asn struct {
	ID     primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	ASN    string             `json:"asn,omitempty" bson:"asn,omitempty"`
	STATUS string             `json:"status,omitempty" bson:"status,omitempty"`
}

type AuthConfiguration

type AuthConfiguration struct {
	ApiKey string
}

type Configuration

type Configuration struct {
	Server      ServerConfiguration
	Database    DatabaseConfiguration
	Auth        AuthConfiguration
	Environment EnvironmentConfiguration
}

type Country

type Country struct {
	ID     primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	ISO    string             `json:"iso,omitempty" bson:"iso,omitempty"`
	STATUS string             `json:"status,omitempty" bson:"status,omitempty"`
}

type DatabaseConfiguration

type DatabaseConfiguration struct {
	ConnectionUri string
}

type EnvironmentConfiguration

type EnvironmentConfiguration struct {
	Mode string
}

type FirewallDataOutputNew

type FirewallDataOutputNew struct {
	QueryData                    VisitorDetailsQuery `json:"queryData"`
	CountryIsoCode               string              `json:"countryIsoCode"`
	CountryName                  string              `json:"countryName"`
	ContinentIsoCode             string              `json:"continentIsoCode"`
	ContinentName                string              `json:"continentName"`
	Latitude                     float64             `json:"latitude"`
	Longitude                    float64             `json:"longitude"`
	IsInEuropeanUnion            bool                `json:"isInEuropeanUnion"`
	AutonomousSystemNumber       uint                `json:"autonomousSystemNumber"`
	AutonomousSystemOrganization string              `json:"autonomousSystemOrganization"`
	HostName                     string              `json:"hostName"`
	BrowserName                  string              `json:"browserName"`
	BrowserVersion               uasurfer.Version    `json:"browserVersion"`
	OsPlatform                   string              `json:"osPlatform"`
	OsName                       string              `json:"osName"`
	OsVersion                    uasurfer.Version    `json:"osVersion"`
	DeviceType                   string              `json:"deviceType"`
	IsBot                        bool                `json:"isBot"`
}

type FirewallOutputResult

type FirewallOutputResult struct {
	QueryData   VisitorDetailsQuery `json:"queryData"`
	GeoData     VisitorGeoData      `json:"geoData"`
	NetworkData VisitorNetworkData  `json:"networkData"`
	MachineData MachineData         `json:"machineData"`
	Blocked     bool                `json:"blocked"`
}

type GenericFirewallItem

type GenericFirewallItem struct {
	ID     primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	VALUE  string             `json:"value,omitempty" bson:"value,omitempty"`
	STATUS string             `json:"status,omitempty" bson:"status,omitempty"`
}

type MachineData

type MachineData struct {
	BrowserName    string           `json:"browserName"`
	BrowserVersion uasurfer.Version `json:"browserVersion"`
	OsPlatform     string           `json:"osPlatform"`
	OsName         string           `json:"osName"`
	OsVersion      uasurfer.Version `json:"osVersion"`
	DeviceType     string           `json:"deviceType"`
	IsBot          bool             `json:"isBot"`
}

type ServerConfiguration

type ServerConfiguration struct {
	Port int
}

type VisitorDetailsQuery

type VisitorDetailsQuery struct {
	ApiKey       string `json:"apiKey" form:"apiKey" query:"apiKey"`
	IpAddress    string `json:"ipAddress" form:"ipAddress" query:"ipAddress"`
	UserName     string `json:"userName" form:"userName" query:"userName"`
	EmailAddress string `json:"emailAddress" form:"emailAddress" query:"emailAddress"`
	UserAgent    string `json:"userAgent" form:"userAgent" query:"userAgent"`
}

type VisitorGeoData

type VisitorGeoData struct {
	CountryIsoCode    string  `json:"countryIsoCode"`
	CountryName       string  `json:"countryName"`
	ContinentIsoCode  string  `json:"continentIsoCode"`
	ContinentName     string  `json:"continentName"`
	Latitude          float64 `json:"latitude"`
	Longitude         float64 `json:"longitude"`
	IsInEuropeanUnion bool    `json:"isInEuropeanUnion"`
}

type VisitorNetworkData

type VisitorNetworkData struct {
	AutonomousSystemNumber       uint   `json:"autonomousSystemNumber"`
	AutonomousSystemOrganization string `json:"autonomousSystemOrganization"`
	HostName                     string `json:"hostName"`
}

Jump to

Keyboard shortcuts

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