Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheck ¶
HealthCheck provides a simple health check endpoint
Types ¶
type APIHandlers ¶
type APIHandlers struct {
WebEvents *WebsiteEventsHandler
}
func InitHandlers ¶
func InitHandlers(services *services.Services) *APIHandlers
type WebTrackerEvent ¶
type WebTrackerEvent struct {
IP string `json:"ip"`
VisitorID string `json:"visitorId"`
EventType enum.WebTrackerEvent `json:"eventType"`
EventData string `json:"eventData"`
Timestamp time.Time `json:"timestamp"`
Href string `json:"href"`
Origin string `json:"origin"`
Search string `json:"search"`
Hostname string `json:"hostname"`
Pathname string `json:"pathname"`
Referrer string `json:"referrer"`
UserAgent string `json:"userAgent"`
Language string `json:"language"`
CookiesEnabled bool `json:"cookiesEnabled"`
ScreenResolution string `json:"screenResolution"`
}
type WebsiteEventsHandler ¶
type WebsiteEventsHandler struct {
// contains filtered or unexported fields
}
func NewWebsiteEventsHandler ¶
func NewWebsiteEventsHandler(services *services.Services) *WebsiteEventsHandler
func (*WebsiteEventsHandler) Handle ¶
func (h *WebsiteEventsHandler) Handle() gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.