Documentation ¶
Index ¶
- Constants
- func Create(stats *AmmoDistanceStatistics) error
- func GetAll(opts *Options) (*model.Result, error)
- func GetByRefsAndRange(ids []string, gte, lte *uint64, opts *Options) (*model.Result, error)
- func Remove(id string) error
- func Replace(id string, stats *AmmoDistanceStatistics) error
- type AmmoDistanceStatistics
- type Options
Constants ¶
View Source
const Collection = "statistics.ammunition.distances"
Collection indicates the MongoDB feature collection
Variables ¶
This section is empty.
Functions ¶
func GetByRefsAndRange ¶
GetByRefsAndRange returns a result by given IDs and range
func Replace ¶
func Replace(id string, stats *AmmoDistanceStatistics) error
Replace replaces the data of an existing entity
Types ¶
type AmmoDistanceStatistics ¶
type AmmoDistanceStatistics struct { ID objectID `json:"_id" bson:"_id"` Reference objectID `json:"ammo" bson:"ammo"` Distance uint64 `json:"distance" bson:"distance"` Velocity float64 `json:"velocity" bson:"velocity"` Damage float64 `json:"damage" bson:"damage"` PenetrationPower float64 `json:"penetrationPower" bson:"penetrationPower"` TimeOfFlight float64 `json:"timeOfFlight" bson:"timeOfFlight"` Drop float64 `json:"drop" bson:"drop"` Modified timestamp `json:"_modified" bson:"_modified"` }
AmmoDistanceStatistics describes the entity of a ammo distance statistics
func GetByID ¶
func GetByID(id string) (*AmmoDistanceStatistics, error)
GetByID returns the entity of the given ID
func (AmmoDistanceStatistics) Validate ¶
func (d AmmoDistanceStatistics) Validate() error
Validate validates the fields of a DistanceStatistics
Click to show internal directories.
Click to hide internal directories.