model

package
v0.0.0-...-22aee03 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapVote

type MapVote struct {
	Maps   []string `json:"maps"`
	Status string   `json:"status"`
}

type NewUser

type NewUser struct {
	SteamID     string  `json:"steamID"`
	TeamspeakID string  `json:"teamspeakID"`
	Avatar      *string `json:"avatar,omitempty"`
}

type Teams

type Teams struct {
	Team1    []*User `json:"team1"`
	Team2    []*User `json:"team2"`
	Captain1 *User   `json:"captain1"`
	Captain2 *User   `json:"captain2"`
}

type User

type User struct {
	ID          int     `json:"id"`
	SteamID     string  `json:"steamID"`
	TeamspeakID string  `json:"teamspeakID"`
	Elo         int     `json:"elo"`
	Admin       bool    `json:"admin"`
	Avatar      *string `json:"avatar,omitempty"`
	Name        *string `json:"name,omitempty"`
}

type UserInput

type UserInput struct {
	Elo         *int    `json:"elo,omitempty"`
	TeamspeakID *string `json:"teamspeakID,omitempty"`
	Avatar      *string `json:"avatar,omitempty"`
	Name        *string `json:"name,omitempty"`
}

func (UserInput) String

func (input UserInput) String() string

Jump to

Keyboard shortcuts

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