model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPText added in v0.2.0

type IPText struct {
	IP   string `json:"ip"`
	Text string `json:"text"`
}

type IPTextList added in v0.2.0

type IPTextList []IPText

type Player

type Player struct {
	Nickname string `json:"nickname"`
	IP       string `json:"ip"`
	Text     string `json:"text"`
}

func (Player) String

func (p Player) String() string

type PlayerExtended

type PlayerExtended struct {
	File     string `json:"file"`
	Nickname string `json:"nickname"`
	ID       int    `json:"id"`
	IP       string `json:"ip"`
	Text     string `json:"text"`
}

func NewPlayerExtended added in v0.2.0

func NewPlayerExtended(file, nickname string, id int, ip, text string) PlayerExtended

func (PlayerExtended) String

func (p PlayerExtended) String() string

type PlayerExtendedList

type PlayerExtendedList []PlayerExtended

func (PlayerExtendedList) String

func (p PlayerExtendedList) String() string

func (PlayerExtendedList) ToIPList

func (p PlayerExtendedList) ToIPList() StringList

func (PlayerExtendedList) ToIPTextList added in v0.2.0

func (p PlayerExtendedList) ToIPTextList() IPTextList

func (PlayerExtendedList) ToPlayerList

func (p PlayerExtendedList) ToPlayerList() PlayerList

type PlayerList

type PlayerList []Player

func (PlayerList) String

func (p PlayerList) String() string

type StringList

type StringList []string

func (StringList) String

func (s StringList) String() string

Jump to

Keyboard shortcuts

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