model

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Area

type Area struct {
	Op       Oper     `json:"op" bson:"op"`
	Instance Instance `json:"instance" bson:"instance"`
}

type Fight

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

type FightRecord struct {
	Area    Area     `json:"area" bson:"area"`
	Players []Player `json:"players" bson:"players"`
}

type Instance

type Instance struct {
	ID    int    `json:"id" bson:"id"`
	Name  string `json:"name" bson:"name"`
	Level int    `json:"level" bson:"level"`
}

type Job

type Job struct {
	ID    int    `json:"id" bson:"id"`
	Name  string `json:"name" bson:"name"`
	Gauge string `json:"gauge" bson:"gauge"`
}

type Meta

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

type Oper struct {
	OpCode    string `json:"op_code" bson:"op_code"`
	Timestamp int64  `json:"timestamp" bson:"timestamp"`
}

type PersonInfo

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

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

type ServerRecord struct {
	IP     string `json:"ip" bson:"ip"`
	Update int64  `json:"update" bson:"update"`
}

type ServerStatus

type ServerStatus struct {
	Status  string `json:"status" bson:"status"`
	Version string `json:"version" bson:"version"`
}

type User

type User struct {
	ID           primitive.ObjectID   `json:"id" bson:"_id"`
	Person       PersonInfo           `json:"person" bson:"person"`
	FightIDs     []primitive.ObjectID `json:"fight_ids" bson:"fight_ids"`
	ServerRecord ServerRecord         `json:"server_record" bson:"server_record"`
}

Jump to

Keyboard shortcuts

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