Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPlayerStatisticProgressionAlreadyCreated = errors.New("player progression already created")
)
Functions ¶
Types ¶
type PlayerStatisticProgression ¶
type PlayerStatisticProgression struct { StartedAt time.Time `bson:"startedAt,omitempty"` UpdatedAt time.Time `bson:"updatedAt,omitempty"` PlayerID string `bson:"playerId"` StatisticID string `bson:"statisticId"` StatisticAggregationMode string `bson:"statisticAggregationMode"` CurrentValue *float64 `bson:"currentValue"` GoalValue *float64 `bson:"goalValue,omitempty"` GoalCompleted *bool `bson:"goalCompleted,omitempty"` GoalCompletedAt time.Time `bson:"goalCompletedAt,omitempty"` Landmarks []PlayerStatisticProgressionLandmark `bson:"landmarks,omitempty"` PreviousData *PlayerStatisticProgression `bson:"_previousData,omitempty"` }
type Statistic ¶
type Statistic struct { CreatedAt time.Time `bson:"createdAt,omitempty"` UpdatedAt time.Time `bson:"updatedAt,omitempty"` DeletedAt time.Time `bson:"deletedAt,omitempty"` ID primitive.ObjectID `bson:"_id,omitempty"` GameID string `bson:"gameId,omitempty"` Name string `bson:"name,omitempty"` Description string `bson:"description,omitempty"` AggregationMode string `bson:"aggregationMode,omitempty"` InitialValue *float64 `bson:"initialValue,omitempty"` Goal *float64 `bson:"goal,omitempty"` Landmarks []float64 `bson:"landmarks,omitempty"` }
Click to show internal directories.
Click to hide internal directories.