Documentation ¶
Index ¶
- Constants
- type BufWriter
- type Command
- type EncOptions
- type EncWriter
- type Encoder
- type Fields
- func (m Fields) ArrayStrings(prefix string) []string
- func (m Fields) Exists(key string) bool
- func (m Fields) FloatAsInt(key string) (int, int, error)
- func (m Fields) FloatVal(key string) (float64, error)
- func (m Fields) Get(key string) string
- func (m Fields) IntArr(key, sep string) []int
- func (m Fields) IntVal(key string) (int, error)
- func (m Fields) StrArr(key, sep string) []string
- type Packet
- type RawPacket
Constants ¶
View Source
const ( FeslAccount = "acct" FeslSystem = "fsys" FeslGameSummary = "gsum" FeslPlayNow = "pnow" FeslRanking = "rank" FeslAssociation = "asso" // TODO: Not implemented FeslBlob = "blob" // TODO: Not implemented FeslFeedback = "fdbk" // TODO: Not implemented FeslFilter = "fltr" // TODO: Not implemented FeslFindPlayer = "fpla" // TODO: Not implemented FeslPresence = "pres" // TODO: Not implemented FeslRecorder = "recp" // TODO: Not implemented ThtrCreateGame = "CGAM" ThtrConnect = "CONN" ThtrEcho = "ECHO" ThtrEnterGame = "EGAM" ThtrEnterGameEntitleGame = "EGEG" ThtrEnterGameRequest = "EGRQ" ThtrEnterGameResponse = "EGRS" ThtrEnterConnectionLost = "ECNL" ThtrGamesData = "GDAT" ThtrGamesList = "GLST" ThtrKickPlayer = "KICK" ThtrLobbyData = "LDAT" ThtrLobbyList = "LLST" ThtrPlayerEnter = "PENT" ThtrPing = "PING" ThtrPlayerValidator = "PLVT" ThtrUpdateBrokerRating = "UBRA" ThtrUpdatePlayer = "UPLA" ThtrUser = "USER" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufWriter ¶
type BufWriter struct {
// contains filtered or unexported fields
}
func (*BufWriter) WriteString ¶
type EncOptions ¶
type EncOptions struct {
OmitEmpty bool
}
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder() *Encoder
type Fields ¶
Fields contains payload of FESL response converted as a go-lang friendly map
func DecodeFESL ¶
func (Fields) ArrayStrings ¶
ArrayStrings scraps all items in specified key as a array
func (Fields) FloatAsInt ¶
FloatAsInt attempts to guess precision and cast float as an integer. It allows to take care of floating point math inaccuracy (0.1+0.2 != 0.3)
func (Fields) Get ¶
Get returns string value Note: String() in somehow reserved in golang (like toString() in C#)
Click to show internal directories.
Click to hide internal directories.