Add exclude-listeners parameter

This commit is contained in:
Julien Riou 2018-07-08 23:48:48 +02:00
commit c0382eaad9
No known key found for this signature in database
GPG key ID: BA3E15176E45E85D
10 changed files with 47 additions and 22 deletions

View file

@ -2,13 +2,13 @@ package base
// Context stores dynamic values like channels and exposes configuration
type Context struct {
Sessions chan Session
Sessions chan *Session
Done chan bool
Config *Config
}
// NewContext instanciates a Context
func NewContext(config *Config, sessions chan Session, done chan bool) *Context {
func NewContext(config *Config, sessions chan *Session, done chan bool) *Context {
return &Context{
Config: config,
Sessions: sessions,