package open
import "go-hep.org/x/hep/xrootd/xrdproto/open"
Package open contains the structures describing request and response for open request. See xrootd protocol specification (http://xrootd.org/doc/dev45/XRdv310.pdf, p. 63) for details.
Index ¶
- Constants
- type Request
- func NewRequest(path string, mode xrdfs.OpenMode, options xrdfs.OpenOptions) *Request
- func (o Request) MarshalXrd(wBuffer *xrdenc.WBuffer) error
- func (req *Request) Opaque() string
- func (req *Request) ReqID() uint16
- func (req *Request) SetOpaque(opaque string)
- func (req *Request) ShouldSign() bool
- func (o *Request) UnmarshalXrd(rBuffer *xrdenc.RBuffer) error
- type Response
Constants ¶
const RequestID uint16 = 3010
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 { Mode xrdfs.OpenMode Options xrdfs.OpenOptions Path string // contains filtered or unexported fields }
Request holds open request parameters.
func NewRequest ¶
NewRequest forms a Request according to provided path, mode, and options.
func (Request) MarshalXrd ¶
MarshalXrd implements xrdproto.Marshaler.
func (*Request) Opaque ¶
Opaque implements xrdproto.FilepathRequest.Opaque.
func (*Request) ReqID ¶
ReqID implements xrdproto.Request.ReqID.
func (*Request) SetOpaque ¶
SetOpaque implements xrdproto.FilepathRequest.SetOpaque.
func (*Request) ShouldSign ¶
ShouldSign implements xrdproto.Request.ShouldSign.
func (*Request) UnmarshalXrd ¶
UnmarshalXrd implements xrdproto.Unmarshaler.
type Response ¶
type Response struct { FileHandle xrdfs.FileHandle Compression *xrdfs.FileCompression Stat *xrdfs.EntryStat }
Response is a response for the open request, which contains the file handle, the compression page size, the compression type and the stat information.
func (Response) MarshalXrd ¶
MarshalXrd implements xrdproto.Marshaler.
func (*Response) RespID ¶
RespID implements xrdproto.Response.RespID.
func (*Response) UnmarshalXrd ¶
UnmarshalXrd implements xrdproto.Unmarshaler.
Source Files ¶
open.go
- Version
- v0.36.0 (latest)
- Published
- Nov 15, 2024
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 6 days ago –
Tools for package owners.