Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
AuthMiddleware is making sure the call is properly authenticated before sending the request to the handlers
func Identify ¶
func Identify(w http.ResponseWriter, r *http.Request)
Identify is taking an identification to send it to the enabled integrations
Types ¶
type FakeIntegration ¶
type FakeIntegration struct { }
FakeIntegration is the base of a fake integration, used for testing.
func (FakeIntegration) Enabled ¶
func (fi FakeIntegration) Enabled() bool
Enabled returns wether or not the integration is enabled/configured
func (FakeIntegration) Identify ¶
func (fi FakeIntegration) Identify(identification integrations.Identification) error
Identify is responsible of forwarding the identify call to the integration
func (FakeIntegration) Page ¶
func (fi FakeIntegration) Page(page integrations.Page) error
Page forwards the page-view data to the integration
func (FakeIntegration) Track ¶
func (fi FakeIntegration) Track(event integrations.Event) error
Track forwards the event to the integration
Click to show internal directories.
Click to hide internal directories.