package
Version:
v0.184.47
Opens a new window with list of versions in this module.
Published: Aug 20, 2024
License: MPL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
ErrInvalidEventName = errors.New("centralized-metric: invalid-event-name")
ErrInvalidPlatform = errors.New("centralized-metric: invalid-platform")
ErrInvalidVersion = errors.New("centralized-metric: invalid-version")
)
type Metric struct {
ID string `json:"id"`
UserID string `json:"userId"`
EventName string `json:"eventName"`
EventValue map[string]any `json:"eventValue"`
Timestamp int64 `json:"timestamp"`
Platform string `json:"platform"`
AppVersion string `json:"appVersion"`
}
type MetricProcessor interface {
Process(metrics []Metric) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.