Documentation
¶
Index ¶
- type Friendship
- type PVP
- func (pvp *PVP) AddFriend(f Friendship) error
- func (pvp *PVP) CreateUser(user *Player) error
- func (pvp *PVP) GetFriends(user string) ([]Player, error)
- func (pvp *PVP) GetPlayer(ID string) (*Player, error)
- func (pvp *PVP) ListPlayers(server string) []Player
- func (pvp *PVP) RegisterUser(user *Player) error
- type Player
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Friendship ¶ added in v1.4.0
type PVP ¶
type PVP struct {
// contains filtered or unexported fields
}
func (*PVP) AddFriend ¶ added in v1.4.0
func (pvp *PVP) AddFriend(f Friendship) error
func (*PVP) CreateUser ¶ added in v1.3.0
func (*PVP) ListPlayers ¶
func (*PVP) RegisterUser ¶ added in v1.3.0
type Player ¶
type Player struct { ID string `db:"id" json:"id"` Username string `db:"username" json:"username"` Server string `db:"server" json:"server,omitempty"` Servers []string `json:"servers,omitempty"` IGN string `db:"ign" json:"ign"` FriendCode string `db:"friendcode" json:"friendcode"` EggUltra bool `db:"egg_for_ultra" json:"egg_for_ultra"` }
Click to show internal directories.
Click to hide internal directories.