Documentation
¶
Overview ¶
Package events provides a thin HTTP client for the analytics collector.
Commerce fires events via HTTP to the analytics-collector sidecar rather than writing directly to ClickHouse. This decouples analytics from the commerce binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.36.0
type Client struct {
// contains filtered or unexported fields
}
Client sends events to the analytics-collector via HTTP.
func NewClient ¶ added in v1.36.0
NewClient creates a new analytics client. Endpoint should be the analytics-collector base URL (e.g., "http://analytics-collector.hanzo.svc:8091").
func (*Client) EmitOrderCompleted ¶ added in v1.36.0
EmitOrderCompleted sends an order completed event to the collector.
Click to show internal directories.
Click to hide internal directories.