-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package analytics | ||
|
||
import "log" | ||
|
||
type LogClientFn struct{} | ||
|
||
func (fn LogClientFn) Tracker() TrackerFn { | ||
return func(_ string, _ string, _ bool) Tracker { | ||
return &LogClient{} | ||
} | ||
} | ||
|
||
type LogClient struct{} | ||
|
||
func (c *LogClient) SendCommandRunEvent(properties map[string]interface{}) { | ||
log.Printf("SendCommandRunEvent, properties: %v", properties) | ||
} | ||
func (c *LogClient) SendCommandCompletedEvent(outcome string) { | ||
log.Printf("SendCommandCompletedEvent, outcome: %v", outcome) | ||
} | ||
func (c *LogClient) SendSetupStepStartedEvent(step string) { | ||
log.Printf("SendSetupStepStartedEvent, step: %v", step) | ||
} | ||
func (c *LogClient) SendSetupSDKSelectedEvent(sdk string) { | ||
log.Printf("SendSetupSDKSelectedEvent, sdk: %v", sdk) | ||
} | ||
func (c *LogClient) SendSetupFlagToggledEvent(on bool, count int, duration_ms int64) { | ||
log.Printf("SendSetupFlagToggledEvent, count: %v", count) | ||
} | ||
func (a *LogClient) Wait() {} |