newVserver returns an initialised vserver struct.
(e *Engine)
| 60 | |
| 61 | // newVserver returns an initialised vserver struct. |
| 62 | func newVserver(e *Engine) *vserver { |
| 63 | return &vserver{ |
| 64 | engine: e, |
| 65 | ncc: e.ncc, |
| 66 | |
| 67 | fwm: make(map[seesaw.AF]uint32), |
| 68 | active: make(map[seesaw.IP]bool), |
| 69 | lbVservers: make(map[seesaw.IP]*seesaw.Vserver), |
| 70 | vips: make(map[seesaw.VIP]bool), |
| 71 | |
| 72 | overrideChan: make(chan seesaw.Override, 5), |
| 73 | |
| 74 | notify: make(chan *checkNotification, 1000), |
| 75 | update: make(chan *config.Vserver, 20), |
| 76 | quit: make(chan bool, 1), |
| 77 | stopped: make(chan bool, 1), |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | // String returns a string representing a vserver. |
| 82 | func (v *vserver) String() string { |
no outgoing calls