hep: go-hep.org/x/hep/xrootd/xrdproto/xrdclose Index | Files

package xrdclose

import "go-hep.org/x/hep/xrootd/xrdproto/xrdclose"

Package xrdclose contains the structures describing request and response for close request. See xrootd protocol specification (http://xrootd.org/doc/dev45/XRdv310.pdf, p. 41) for details.

Index

Package Files

xrdclose.go

Constants

const RequestID uint16 = 3003

RequestID is the id of the request, it is sent as part of message. See xrootd protocol specification for details: http://xrootd.org/doc/dev45/XRdv310.pdf, 2.3 Client Request Format.

type Request Uses

type Request struct {
    Handle xrdfs.FileHandle
    Size   int64
    // contains filtered or unexported fields
}

Request holds close request parameters, such as the file handle and the size, in bytes, that the file is to have. The close operation fails and the file is erased if it is not of the indicated size. A size of 0 suppresses the check.

func (Request) MarshalXrd Uses

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

MarshalXrd implements xrdproto.Marshaler.

func (*Request) ReqID Uses

func (req *Request) ReqID() uint16

ReqID implements xrdproto.Request.ReqID.

func (*Request) ShouldSign Uses

func (req *Request) ShouldSign() bool

ShouldSign implements xrdproto.Request.ShouldSign.

func (*Request) UnmarshalXrd Uses

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

UnmarshalXrd implements xrdproto.Unmarshaler.

Package xrdclose imports 2 packages (graph) and is imported by 2 packages. Updated 2019-05-31. Refresh now. Tools for package owners.