mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-30 21:29:44 -06:00
* feat: add posthog dep * feat: posthog analytics * feat: user events * fix: nil tenant * feat: tenant ident * chore: linting * Update pkg/analytics/posthog/posthog.go Co-authored-by: abelanger5 <belanger@sas.upenn.edu> * fix: typo --------- Co-authored-by: abelanger5 <belanger@sas.upenn.edu>
13 lines
407 B
Go
13 lines
407 B
Go
package analytics
|
|
|
|
type Analytics interface {
|
|
Enqueue(event string, userId string, tenantId *string, data map[string]interface{})
|
|
Tenant(tenantId string, data map[string]interface{})
|
|
}
|
|
|
|
type NoOpAnalytics struct{}
|
|
|
|
func (a NoOpAnalytics) Enqueue(event string, userId string, tenantId *string, data map[string]interface{}) {
|
|
}
|
|
func (a NoOpAnalytics) Tenant(tenantId string, data map[string]interface{}) {}
|