DialTimeouttime.Duration// net.DialTimeout, defaults to 2 seconds
ReadTimeouttime.Duration// net.Conn.SetReadTimeout value for connections, defaults to 2 seconds
WriteTimeouttime.Duration// net.Conn.SetWriteTimeout value for connections, defaults to 2 seconds
TsigProviderTsigProvider// An implementation of the TsigProvider interface. If defined it replaces TsigSecret and is used for all TSIG operations.
TsigSecretmap[string]string// Secret(s) for Tsig map[<zonename>]<base64 secret>, zonename must be in canonical form (lowercase, fqdn, see RFC 4034 Section 6.2)
tsigTimersOnlybool
}
// Think we need to away to stop the transfer
func(t*Transfer)tsigProvider()TsigProvider{
ift.TsigProvider!=nil{
returnt.TsigProvider
}
ift.TsigSecret!=nil{
returntsigSecretProvider(t.TsigSecret)
}
returnnil
}
// TODO: Think we need to away to stop the transfer
// In performs an incoming transfer with the server in a.
// If you would like to set the source IP, or some other attribute