Ejemplo n.º 1
0
func NewPlayers(requests chan rcon.RCONQuery, ea events.Aggregator, db *sql.DB) *Players {
	p := new(Players)
	p.requests = requests
	p.events = ea.Subscribe(p)
	p.db = db
	return p
}
Ejemplo n.º 2
0
func NewCommands(requests chan rcon.RCONQuery, ea events.Aggregator) *Commands {
	c := new(Commands)
	c.requests = requests
	c.events = ea.Subscribe(c)
	return c
}
Ejemplo n.º 3
0
func NewIntegrated(requests chan rcon.RCONQuery, ea events.Aggregator) *Integrated {
	i := new(Integrated)
	i.requests = requests
	i.events = ea.Subscribe(i)
	return i
}