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

package verifyw

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

Package verifyw contains the structures describing verifyw request. See xrootd protocol specification (http://xrootd.org/doc/dev45/XRdv310.pdf, p. 124) for details.


Package Files



const RequestID uint16 = 3026

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
    Offset       int64
    PathID       uint8
    Verification Type

    Data []uint8
    // contains filtered or unexported fields

Request holds verifyw request parameters.

func NewRequestCRC32 Uses

func NewRequestCRC32(handle xrdfs.FileHandle, offset int64, data []uint8) *Request

NewRequestCRC32 forms a Request with crc32 verification according to provided parameters.

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.

type Type Uses

type Type uint8

Type identifies the checksum algorithm used.

const (
    NoCRC Type = iota // NoCRC identifies that no crc is used.
    CRC32             // CRC#@ identifies that 32-bit crc is used.

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