handlers

package
v0.0.81 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheck

func HealthCheck(c *gin.Context)

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

Jump to

Keyboard shortcuts

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