package sync

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

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

Index

Constants

const RequestID uint16 = 3016

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.

Types

type Request

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

Request holds sync request parameters, such as the file handle.

func (Request) MarshalXrd

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

MarshalXrd implements xrdproto.Marshaler.

func (*Request) ReqID

func (req *Request) ReqID() uint16

ReqID implements xrdproto.Request.ReqID.

func (*Request) ShouldSign

func (req *Request) ShouldSign() bool

ShouldSign implements xrdproto.Request.ShouldSign.

func (*Request) UnmarshalXrd

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

UnmarshalXrd implements xrdproto.Unmarshaler.

Source Files

sync.go

Version
v0.37.1 (latest)
Published
Jun 3, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
11 hours ago

Tools for package owners.