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

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

Package Files

open.go

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.

type Request Uses

type Request struct {
    Mode    xrdfs.OpenMode
    Options xrdfs.OpenOptions

    Path string
    // contains filtered or unexported fields
}

Request holds open request parameters.

func NewRequest Uses

func NewRequest(path string, mode xrdfs.OpenMode, options xrdfs.OpenOptions) *Request

NewRequest forms a Request according to provided path, mode, and options.

func (Request) MarshalXrd Uses

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

MarshalXrd implements xrdproto.Marshaler.

func (*Request) Opaque Uses

func (req *Request) Opaque() string

Opaque implements xrdproto.FilepathRequest.Opaque.

func (*Request) ReqID Uses

func (req *Request) ReqID() uint16

ReqID implements xrdproto.Request.ReqID.

func (*Request) SetOpaque Uses

func (req *Request) SetOpaque(opaque string)

SetOpaque implements xrdproto.FilepathRequest.SetOpaque.

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 Response Uses

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 Uses

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

MarshalXrd implements xrdproto.Marshaler.

func (*Response) RespID Uses

func (resp *Response) RespID() uint16

RespID implements xrdproto.Response.RespID.

func (*Response) UnmarshalXrd Uses

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

UnmarshalXrd implements xrdproto.Unmarshaler.

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