Documentation ¶
Index ¶
Constants ¶
View Source
const ISO8601Format = "2006-01-02T15:04:05Z"
View Source
const PostBodyMaxLen = 2048
View Source
const UDPMaxBytes = 65507
Variables ¶
View Source
var BadRequest = http.StatusText(http.StatusBadRequest)
View Source
var Transparent1PxGIF = []byte("\x47\x49\x46\x38\x39\x61\x01\x00" +
"\x01\x00\x80\x00\x00\xff\xff\xff\x00\x00\x00\x2c\x00\x00\x00\x00" +
"\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3b")
Functions ¶
Types ¶
type Event ¶
type Event struct { Time string `json:"t"` // Params are client-supplied event attributes. // Pixel events have params of form map[string]string. // JSON POST events have arbitrary JSON. Params interface{} `json:"params,omitempty"` UserAgent string `json:"ua,omitempty"` IP string `json:"ip,omitempty"` Proto string `json:"proto,omitempty"` // Error is a server-defined string reporting any error that // occurred while constructing the event, such as parse failures. Error string `json:"error,omitempty"` }
Every pixel GET or JSON POST is an event.
Click to show internal directories.
Click to hide internal directories.