예제 #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
}
예제 #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
}
func NewIntegrated(requests chan rcon.RCONQuery, ea events.Aggregator) *Integrated {
	i := new(Integrated)
	i.requests = requests
	i.events = ea.Subscribe(i)
	return i
}