Versions in this module Expand all Collapse all v2 v2.10.1 Sep 4, 2021 v2.10.0 May 9, 2021 v2.9.5 May 9, 2021 Changes in this version + var File_util_file_proto_file_proto protoreflect.FileDescriptor + func NewFileEndpoints() []*api.Endpoint + func RegisterFileHandler(s server.Server, hdlr FileHandler, opts ...server.HandlerOption) error + func RegisterFileServer(s *grpc.Server, srv FileServer) + type CloseRequest struct + Id int64 + func (*CloseRequest) Descriptor() ([]byte, []int) + func (*CloseRequest) ProtoMessage() + func (x *CloseRequest) GetId() int64 + func (x *CloseRequest) ProtoReflect() protoreflect.Message + func (x *CloseRequest) Reset() + func (x *CloseRequest) String() string + type CloseResponse struct + func (*CloseResponse) Descriptor() ([]byte, []int) + func (*CloseResponse) ProtoMessage() + func (x *CloseResponse) ProtoReflect() protoreflect.Message + func (x *CloseResponse) Reset() + func (x *CloseResponse) String() string + type FileClient interface + Close func(ctx context.Context, in *CloseRequest, opts ...grpc.CallOption) (*CloseResponse, error) + Open func(ctx context.Context, in *OpenRequest, opts ...grpc.CallOption) (*OpenResponse, error) + Read func(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) + Stat func(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) + Write func(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) + func NewFileClient(cc grpc.ClientConnInterface) FileClient + type FileHandler interface + Close func(context.Context, *CloseRequest, *CloseResponse) error + Open func(context.Context, *OpenRequest, *OpenResponse) error + Read func(context.Context, *ReadRequest, *ReadResponse) error + Stat func(context.Context, *StatRequest, *StatResponse) error + Write func(context.Context, *WriteRequest, *WriteResponse) error + type FileServer interface + Close func(context.Context, *CloseRequest) (*CloseResponse, error) + Open func(context.Context, *OpenRequest) (*OpenResponse, error) + Read func(context.Context, *ReadRequest) (*ReadResponse, error) + Stat func(context.Context, *StatRequest) (*StatResponse, error) + Write func(context.Context, *WriteRequest) (*WriteResponse, error) + type FileService interface + Close func(ctx context.Context, in *CloseRequest, opts ...client.CallOption) (*CloseResponse, error) + Open func(ctx context.Context, in *OpenRequest, opts ...client.CallOption) (*OpenResponse, error) + Read func(ctx context.Context, in *ReadRequest, opts ...client.CallOption) (*ReadResponse, error) + Stat func(ctx context.Context, in *StatRequest, opts ...client.CallOption) (*StatResponse, error) + Write func(ctx context.Context, in *WriteRequest, opts ...client.CallOption) (*WriteResponse, error) + func NewFileService(name string, c client.Client) FileService + type GetRequest struct + BlockId int64 + Id int64 + func (*GetRequest) Descriptor() ([]byte, []int) + func (*GetRequest) ProtoMessage() + func (x *GetRequest) GetBlockId() int64 + func (x *GetRequest) GetId() int64 + func (x *GetRequest) ProtoReflect() protoreflect.Message + func (x *GetRequest) Reset() + func (x *GetRequest) String() string + type GetResponse struct + BlockId int64 + Data []byte + Size int64 + func (*GetResponse) Descriptor() ([]byte, []int) + func (*GetResponse) ProtoMessage() + func (x *GetResponse) GetBlockId() int64 + func (x *GetResponse) GetData() []byte + func (x *GetResponse) GetSize() int64 + func (x *GetResponse) ProtoReflect() protoreflect.Message + func (x *GetResponse) Reset() + func (x *GetResponse) String() string + type OpenRequest struct + Filename string + Truncate bool + func (*OpenRequest) Descriptor() ([]byte, []int) + func (*OpenRequest) ProtoMessage() + func (x *OpenRequest) GetFilename() string + func (x *OpenRequest) GetTruncate() bool + func (x *OpenRequest) ProtoReflect() protoreflect.Message + func (x *OpenRequest) Reset() + func (x *OpenRequest) String() string + type OpenResponse struct + Id int64 + Result bool + func (*OpenResponse) Descriptor() ([]byte, []int) + func (*OpenResponse) ProtoMessage() + func (x *OpenResponse) GetId() int64 + func (x *OpenResponse) GetResult() bool + func (x *OpenResponse) ProtoReflect() protoreflect.Message + func (x *OpenResponse) Reset() + func (x *OpenResponse) String() string + type ReadRequest struct + Id int64 + Offset int64 + Size int64 + func (*ReadRequest) Descriptor() ([]byte, []int) + func (*ReadRequest) ProtoMessage() + func (x *ReadRequest) GetId() int64 + func (x *ReadRequest) GetOffset() int64 + func (x *ReadRequest) GetSize() int64 + func (x *ReadRequest) ProtoReflect() protoreflect.Message + func (x *ReadRequest) Reset() + func (x *ReadRequest) String() string + type ReadResponse struct + Data []byte + Eof bool + Size int64 + func (*ReadResponse) Descriptor() ([]byte, []int) + func (*ReadResponse) ProtoMessage() + func (x *ReadResponse) GetData() []byte + func (x *ReadResponse) GetEof() bool + func (x *ReadResponse) GetSize() int64 + func (x *ReadResponse) ProtoReflect() protoreflect.Message + func (x *ReadResponse) Reset() + func (x *ReadResponse) String() string + type StatRequest struct + Filename string + func (*StatRequest) Descriptor() ([]byte, []int) + func (*StatRequest) ProtoMessage() + func (x *StatRequest) GetFilename() string + func (x *StatRequest) ProtoReflect() protoreflect.Message + func (x *StatRequest) Reset() + func (x *StatRequest) String() string + type StatResponse struct + LastModified int64 + Size int64 + Type string + func (*StatResponse) Descriptor() ([]byte, []int) + func (*StatResponse) ProtoMessage() + func (x *StatResponse) GetLastModified() int64 + func (x *StatResponse) GetSize() int64 + func (x *StatResponse) GetType() string + func (x *StatResponse) ProtoReflect() protoreflect.Message + func (x *StatResponse) Reset() + func (x *StatResponse) String() string + type UnimplementedFileServer struct + func (*UnimplementedFileServer) Close(context.Context, *CloseRequest) (*CloseResponse, error) + func (*UnimplementedFileServer) Open(context.Context, *OpenRequest) (*OpenResponse, error) + func (*UnimplementedFileServer) Read(context.Context, *ReadRequest) (*ReadResponse, error) + func (*UnimplementedFileServer) Stat(context.Context, *StatRequest) (*StatResponse, error) + func (*UnimplementedFileServer) Write(context.Context, *WriteRequest) (*WriteResponse, error) + type WriteRequest struct + Data []byte + Id int64 + Offset int64 + func (*WriteRequest) Descriptor() ([]byte, []int) + func (*WriteRequest) ProtoMessage() + func (x *WriteRequest) GetData() []byte + func (x *WriteRequest) GetId() int64 + func (x *WriteRequest) GetOffset() int64 + func (x *WriteRequest) ProtoReflect() protoreflect.Message + func (x *WriteRequest) Reset() + func (x *WriteRequest) String() string + type WriteResponse struct + func (*WriteResponse) Descriptor() ([]byte, []int) + func (*WriteResponse) ProtoMessage() + func (x *WriteResponse) ProtoReflect() protoreflect.Message + func (x *WriteResponse) Reset() + func (x *WriteResponse) String() string