models

package
v0.0.0-...-1c10d2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rating

type Rating struct {
	Id        string    `bson:"_id"`
	Game      string    `bson:"gameName"`
	Rating    int       `bson:"rating"`
	Feedback  string    `bson:"feedback"`
	CreatedAt time.Time `bson:"createdAt"`
}

type RatingDTO

type RatingDTO struct {
	Game     string `json:"gameName"`
	Rating   int    `json:"rating"`
	Feedback string `json:"feedback"`
}

type Sessions

type Sessions struct {
	Id           string    `bson:"_id"`
	Game         string    `bson:"gameName"`
	Timespent    float32   `bson:"timespent"`
	Deaths       int       `bson:"deaths"`
	ColorPicked  int       `bson:"colorPicked"`
	EnemysKilled int       `bson:"enemysKilled"`
	GameFinished bool      `bson:"gameFinished"`
	Money        float32   `bson:"money"`
	Ammunation   int       `bson:"ammunation"`
	Items        bool      `bson:"items"`
	CreatedAt    time.Time `bson:"createdAt"`
}

type SessionsDTO

type SessionsDTO struct {
	Game         string  `json:"gameName"`
	Timespent    float32 `json:"timespent"`
	Deaths       int     `json:"deaths"`
	ColorPicked  int     `json:"colorPicked"`
	EnemysKilled int     `json:"enemysKilled"`
	GameFinished bool    `json:"gameFinished"`
	Money        float32 `json:"money"`
	Ammunation   int     `json:"ammunation"`
	Items        bool    `json:"items"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL