Remove dead link code

This commit is contained in:
Asim Aslam
2019-09-11 11:57:41 -07:00
parent 9ca7d90f11
commit 6819386e05
4 changed files with 27 additions and 119 deletions

View File

@@ -34,6 +34,8 @@ type Options struct {
type DialOption func(*DialOptions)
type DialOptions struct {
// Link specifies the link to use
Link string
// specify a multicast connection
Multicast bool
// the dial timeout
@@ -94,8 +96,17 @@ func DialMulticast() DialOption {
}
}
// DialTimeout sets the dial timeout of the connection
func DialTimeout(t time.Duration) DialOption {
return func(o *DialOptions) {
o.Timeout = t
}
}
// DialLink specifies the link to pin this connection to.
// This is not applicable if the multicast option is set.
func DialLink(id string) DialOption {
return func(o *DialOptions) {
o.Link = id
}
}