Package write contains the structures describing write request. See xrootd protocol specification (, p. 124) for details.



View Source
const RequestID uint16 = 3019

RequestID is the id of the request, it is sent as part of message. See xrootd protocol specification for details:, 2.3 Client Request Format.


This section is empty.


This section is empty.


type Request

type Request struct {
	Handle xrdfs.FileHandle
	Offset int64

	Data []uint8
	// contains filtered or unexported fields

Request holds write request parameters.

func (*Request) Direction

func (o *Request) Direction() xrdproto.DataRequestDirection

PathID implements xrdproto.DataRequest.Direction.

func (Request) MarshalXrd

func (req Request) MarshalXrd(wBuffer *xrdenc.WBuffer) error

MarshalXrd implements xrdproto.Marshaler.

func (*Request) PathData

func (o *Request) PathData() []byte

PathID implements xrdproto.DataRequest.PathData.

func (*Request) PathID

func (o *Request) PathID() xrdproto.PathID

PathID implements xrdproto.DataRequest.PathID.

func (*Request) ReqID

func (req *Request) ReqID() uint16

ReqID implements xrdproto.Request.ReqID.

func (*Request) SetPathID

func (o *Request) SetPathID(pathID xrdproto.PathID)

PathID implements xrdproto.DataRequest.SetPathID.

func (*Request) ShouldSign

func (req *Request) ShouldSign() bool

ShouldSign implements xrdproto.Request.ShouldSign.

func (*Request) UnmarshalXrd

func (req *Request) UnmarshalXrd(rBuffer *xrdenc.RBuffer) error

UnmarshalXrd implements xrdproto.Unmarshaler.

Source Files