Documentation ¶
Overview ¶
Package stats provides CLI analytics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Client = func() *analytics.Analytics { e := env.Get() sess, err := session.NewSession(&aws.Config{ Credentials: credentials.NewStaticCredentials( e.AWSAccessKey, e.AWSSecretKey, "", ), Region: aws.String(e.AWSRegion), }) if err != nil { log.Debugf("aws session not found") sess = nil } return analytics.New(&analytics.Config{ Stream: e.FirehoseStream, Session: sess, Prefix: "joy:", Dir: "joy", }) }()
Client sets up the AWS tracking client
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.