1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-02 17:27:50 -04:00
v2fly/common/net/testing/portrange.go

19 lines
281 B
Go
Raw Normal View History

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