Documentation ¶
Index ¶
- func EmptyLog(path string) error
- func GetSteamIDFromPlayerName(playerName string, playersInfo []*PlayerInfo) (int64, error)
- func GrokInit()
- func GrokParseCommand(line string) (string, string, error)
- func GrokParsePlayerName(rconNameResponse string) (string, error)
- func LogPathDection() string
- func Steam3IDToSteam64(steam3ID int64) int64
- func TailLog(tf2LogPath string) (*tail.Tail, error)
- type ChatInfo
- type PlayerInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSteamIDFromPlayerName ¶
func GetSteamIDFromPlayerName(playerName string, playersInfo []*PlayerInfo) (int64, error)
GetSteamIDFromPlayerName gets the steamID64 from a player name cache
func GrokParseCommand ¶
GrokParseCommand parses the given line with the command grok pattern
func GrokParsePlayerName ¶
GrokParsePlayerName parses the given line with the playerName grok pattern
func Steam3IDToSteam64 ¶
Steam3IDToSteam64 converts a steam3 id to a steam64 id
Types ¶
type ChatInfo ¶
ChatInfo is a struct containing all the info we need about a chat message
func GrokParseChat ¶
GrokParseChat parses the given line with the chat grok pattern
type PlayerInfo ¶
type PlayerInfo struct { SteamID int64 Name string UserID int SteamAccType string SteamUniverse int }
PlayerInfo is a struct containing all the info we need about a player
func GrokParse ¶
func GrokParse(line string) (*PlayerInfo, error)
GrokParse parses the given line with the main grok pattern
Click to show internal directories.
Click to hide internal directories.