v2ray-core/common/net/testing/portrange.go

19 lines
281 B
Go
Raw Normal View History

2015-11-21 20:43:40 +00:00
package testing
2015-12-02 11:47:54 +00:00
import (
v2net "github.com/v2ray/v2ray-core/common/net"
)
2015-11-21 20:43:40 +00:00
type PortRange struct {
2015-12-02 11:47:54 +00:00
FromValue v2net.Port
ToValue v2net.Port
2015-11-21 20:43:40 +00:00
}
2015-12-02 11:47:54 +00:00
func (this *PortRange) From() v2net.Port {
2015-11-21 20:43:40 +00:00
return this.FromValue
}
2015-12-02 11:47:54 +00:00
func (this *PortRange) To() v2net.Port {
2015-11-21 20:43:40 +00:00
return this.ToValue
}