Discover Packages
github.com/open-xiv/su-back
pkg
model
package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Jun 18, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Area struct {
Op Oper `json:"op" bson:"op"`
Instance Instance `json:"instance" bson:"instance"`
}
type Fight struct {
ID primitive .ObjectID `json:"id" bson:"_id"`
FightRecord FightRecord `json:"fight_record" bson:"fight_record"`
ServerRecord ServerRecord `json:"server_record" bson:"server_record"`
}
type FightRecord struct {
Area Area `json:"area" bson:"area"`
Players []Player `json:"players" bson:"players"`
}
type Instance struct {
ID int `json:"id" bson:"id"`
Name string `json:"name" bson:"name"`
Level int `json:"level" bson:"level"`
}
type Job struct {
ID int `json:"id" bson:"id"`
Name string `json:"name" bson:"name"`
Gauge string `json:"gauge" bson:"gauge"`
}
type Meta struct {
Instances []Instance `json:"instances" bson:"instances"`
Jobs []Job `json:"jobs" bson:"jobs"`
}
Meta is struct for ffxiv (all instances and jobs)
type Oper struct {
OpCode string `json:"op_code" bson:"op_code"`
Timestamp int64 `json:"timestamp" bson:"timestamp"`
}
type PersonInfo struct {
Name string `json:"name" bson:"name"`
Email string `json:"email" bson:"email"`
AvatarURL string `json:"avatar_url" bson:"avatar_url"`
Password string `json:"password,omitempty" bson:"password"`
Token string `json:"token,omitempty" bson:"token"`
}
type Player struct {
Op Oper `json:"op" bson:"op"`
ID string `json:"id" bson:"id"`
Name string `json:"name" bson:"name"`
Job Job `json:"job" bson:"job"`
Level int `json:"level" bson:"level"`
}
type ServerRecord struct {
IP string `json:"ip" bson:"ip"`
Update int64 `json:"update" bson:"update"`
}
type ServerStatus struct {
Status string `json:"status" bson:"status"`
Version string `json:"version" bson:"version"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.