ids

package
v0.0.0-...-8a43d78 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RestUrl string

	RestHeaderName string

	RestHeaderValue string

	ClientIp string
)

Functions

func AddAttack

func AddAttack(category string, label string, r *http.Request)

func AddEvent

func AddEvent(category string, label string, r *http.Request)

func InitializeAppSensorRestClient

func InitializeAppSensorRestClient()

read environment variables for data for http client construction

Types

type Attack

type Attack Event

type DetectionPoint

type DetectionPoint struct {
	Category string `json:"category"`
	Label    string `json:"label"`
}

type DetectionSystem

type DetectionSystem struct {
	DetectionSystemId string    `json:"detectionSystemId"`
	IpAddress         IpAddress `json:"ipAddress"`
}

type Event

type Event struct {
	User            User            `json:"user"`
	DetectionPoint  DetectionPoint  `json:"detectionPoint"`
	Timestamp       string          `json:"timestamp"`
	DetectionSystem DetectionSystem `json:"detectionSystem"`
}

type IpAddress

type IpAddress struct {
	Address string `json:"address"`
}

type User

type User struct {
	Username  string    `json:"username"`
	IpAddress IpAddress `json:"ipAddress"`
}

Jump to

Keyboard shortcuts

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