2018-07-12 07:16:17 +08:00
|
|
|
package peer_protocol
|
|
|
|
|
2018-07-13 19:33:21 +08:00
|
|
|
import "fmt"
|
|
|
|
|
2018-07-12 07:16:17 +08:00
|
|
|
type RequestSpec struct {
|
|
|
|
Index, Begin, Length Integer
|
|
|
|
}
|
2018-07-13 19:33:21 +08:00
|
|
|
|
|
|
|
func (me RequestSpec) String() string {
|
|
|
|
return fmt.Sprintf("{%d %d %d}", me.Index, me.Begin, me.Length)
|
|
|
|
}
|