make these methods privates
This commit is contained in:
parent
ca3c488ad8
commit
f9fa2d2c0c
8
xfr.go
8
xfr.go
|
@ -49,17 +49,17 @@ func (t *Transfer) In(q *Msg, a string, env chan *Envelope) (err error) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if q.Question[0].Qtype == TypeAXFR {
|
if q.Question[0].Qtype == TypeAXFR {
|
||||||
go t.InAxfr(q.Id, env)
|
go t.inAxfr(q.Id, env)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if q.Question[0].Qtype == TypeIXFR {
|
if q.Question[0].Qtype == TypeIXFR {
|
||||||
go t.InAxfr(q.Id, env)
|
go t.inIxfr(q.Id, env)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return nil // TODO(miek): some error
|
return nil // TODO(miek): some error
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *Transfer) InAxfr(id uint16, c chan *Envelope) {
|
func (t *Transfer) inAxfr(id uint16, c chan *Envelope) {
|
||||||
first := true
|
first := true
|
||||||
defer t.Close()
|
defer t.Close()
|
||||||
defer close(c)
|
defer close(c)
|
||||||
|
@ -104,7 +104,7 @@ func (t *Transfer) InAxfr(id uint16, c chan *Envelope) {
|
||||||
panic("dns: not reached")
|
panic("dns: not reached")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *Transfer) InIxfr(id uint16, c chan *Envelope) {
|
func (t *Transfer) inIxfr(id uint16, c chan *Envelope) {
|
||||||
serial := uint32(0) // The first serial seen is the current server serial
|
serial := uint32(0) // The first serial seen is the current server serial
|
||||||
first := true
|
first := true
|
||||||
defer t.Close()
|
defer t.Close()
|
||||||
|
|
Loading…
Reference in New Issue