glide setup and dependencies addition
This commit is contained in:
22
vendor/gopkg.in/routeros.v2/chan_reply.go
generated
vendored
Normal file
22
vendor/gopkg.in/routeros.v2/chan_reply.go
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
package routeros
|
||||
|
||||
import "gopkg.in/routeros.v2/proto"
|
||||
|
||||
// chanReply is shared between ListenReply and AsyncReply.
|
||||
type chanReply struct {
|
||||
tag string
|
||||
err error
|
||||
reC chan *proto.Sentence
|
||||
}
|
||||
|
||||
// Err returns the first error that happened processing sentences with tag.
|
||||
func (a *chanReply) Err() error {
|
||||
return a.err
|
||||
}
|
||||
|
||||
func (a *chanReply) close(err error) {
|
||||
if a.err == nil {
|
||||
a.err = err
|
||||
}
|
||||
close(a.reC)
|
||||
}
|
||||
Reference in New Issue
Block a user