Documentation
¶
Overview ¶
package analytics no longer provides any functionality. It is kept for backwards compatibility.
Index ¶
Constants ¶
View Source
const (
AppIDHappa = iota
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
type Config struct {
Log *zap.SugaredLogger
CredentialsJSON string
Environment string
}
type Event ¶
type Event struct {
AppID AppID `firestore:"app_id"`
SessionID string `firestore:"session_id"`
PayloadType string `firestore:"payload_type"`
PayloadSchemaVersion int `firestore:"payload_schema_version"`
Payload map[string]interface{} `firestore:"payload"`
URI string `firestore:"uri_path"`
Timestamp time.Time `firestore:"timestamp"`
InstallationID string `firestore:"installation_id"`
EnvironmentClass string `firestore:"env_class"`
}
func (*Event) CollectionName ¶
CollectionName creates a firestore collection name based on the year, month, and environment type (stable, testing).
Click to show internal directories.
Click to hide internal directories.