Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventType ¶
func EventType(s string, srv ifaces.IGameServer) int
EventType - Given string and its source Server{}, determine the event type that was provided. Returns a -1 if none was found.
func Initialize ¶
func Initialize()
Initialize handles event initialization and should be run before the server starts
Types ¶
type Event ¶
type Event struct { FString string Capture *regexp.Regexp Handler EventHandler // contains filtered or unexported fields }
Event describes logged output that the ifaces.Server has output that can be acted upon in some fashion
func GetFromString ¶
GetFromString returns a reference to a game event given a matching string
type EventHandler ¶
type EventHandler func(ifaces.IGameServer, *Event, string, chan string)
EventHandler is a function that parses a logfile and performs an action
Click to show internal directories.
Click to hide internal directories.