Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterWebdavHTTPServer(s *http.Server, srv WebdavHTTPServer)
- func RegisterWebdavServer(s grpc.ServiceRegistrar, srv WebdavServer)
- type Empty
- type FsGetReq
- func (*FsGetReq) Descriptor() ([]byte, []int)deprecated
- func (x *FsGetReq) GetHost() string
- func (x *FsGetReq) GetPassword() string
- func (x *FsGetReq) GetPath() string
- func (x *FsGetReq) GetUsername() string
- func (*FsGetReq) ProtoMessage()
- func (x *FsGetReq) ProtoReflect() protoreflect.Message
- func (x *FsGetReq) Reset()
- func (x *FsGetReq) String() string
- type FsGetResp
- func (*FsGetResp) Descriptor() ([]byte, []int)deprecated
- func (x *FsGetResp) GetIsDir() bool
- func (x *FsGetResp) GetModified() int64
- func (x *FsGetResp) GetName() string
- func (x *FsGetResp) GetSize() int64
- func (*FsGetResp) ProtoMessage()
- func (x *FsGetResp) ProtoReflect() protoreflect.Message
- func (x *FsGetResp) Reset()
- func (x *FsGetResp) String() string
- type FsListReq
- func (*FsListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FsListReq) GetHost() string
- func (x *FsListReq) GetPage() uint64
- func (x *FsListReq) GetPassword() string
- func (x *FsListReq) GetPath() string
- func (x *FsListReq) GetPerPage() uint64
- func (x *FsListReq) GetUsername() string
- func (*FsListReq) ProtoMessage()
- func (x *FsListReq) ProtoReflect() protoreflect.Message
- func (x *FsListReq) Reset()
- func (x *FsListReq) String() string
- type FsListResp
- func (*FsListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FsListResp) GetContent() []*FsListResp_FsListContent
- func (x *FsListResp) GetTotal() uint64
- func (*FsListResp) ProtoMessage()
- func (x *FsListResp) ProtoReflect() protoreflect.Message
- func (x *FsListResp) Reset()
- func (x *FsListResp) String() string
- type FsListResp_FsListContent
- func (*FsListResp_FsListContent) Descriptor() ([]byte, []int)deprecated
- func (x *FsListResp_FsListContent) GetIsDir() bool
- func (x *FsListResp_FsListContent) GetModified() int64
- func (x *FsListResp_FsListContent) GetName() string
- func (x *FsListResp_FsListContent) GetSize() int64
- func (*FsListResp_FsListContent) ProtoMessage()
- func (x *FsListResp_FsListContent) ProtoReflect() protoreflect.Message
- func (x *FsListResp_FsListContent) Reset()
- func (x *FsListResp_FsListContent) String() string
- type FsSearchReq
- func (*FsSearchReq) Descriptor() ([]byte, []int)deprecated
- func (x *FsSearchReq) GetHost() string
- func (x *FsSearchReq) GetKeywords() string
- func (x *FsSearchReq) GetPage() uint64
- func (x *FsSearchReq) GetPassword() string
- func (x *FsSearchReq) GetPath() string
- func (x *FsSearchReq) GetPerPage() uint64
- func (x *FsSearchReq) GetUsername() string
- func (*FsSearchReq) ProtoMessage()
- func (x *FsSearchReq) ProtoReflect() protoreflect.Message
- func (x *FsSearchReq) Reset()
- func (x *FsSearchReq) String() string
- type FsSearchResp
- func (*FsSearchResp) Descriptor() ([]byte, []int)deprecated
- func (x *FsSearchResp) GetContent() []*FsSearchResp_FsSearchContent
- func (x *FsSearchResp) GetTotal() uint64
- func (*FsSearchResp) ProtoMessage()
- func (x *FsSearchResp) ProtoReflect() protoreflect.Message
- func (x *FsSearchResp) Reset()
- func (x *FsSearchResp) String() string
- type FsSearchResp_FsSearchContent
- func (*FsSearchResp_FsSearchContent) Descriptor() ([]byte, []int)deprecated
- func (x *FsSearchResp_FsSearchContent) GetIsDir() bool
- func (x *FsSearchResp_FsSearchContent) GetName() string
- func (x *FsSearchResp_FsSearchContent) GetSize() int64
- func (*FsSearchResp_FsSearchContent) ProtoMessage()
- func (x *FsSearchResp_FsSearchContent) ProtoReflect() protoreflect.Message
- func (x *FsSearchResp_FsSearchContent) Reset()
- func (x *FsSearchResp_FsSearchContent) String() string
- type FsTestReq
- func (*FsTestReq) Descriptor() ([]byte, []int)deprecated
- func (x *FsTestReq) GetHost() string
- func (x *FsTestReq) GetPassword() string
- func (x *FsTestReq) GetUsername() string
- func (*FsTestReq) ProtoMessage()
- func (x *FsTestReq) ProtoReflect() protoreflect.Message
- func (x *FsTestReq) Reset()
- func (x *FsTestReq) String() string
- type UnimplementedWebdavServer
- func (UnimplementedWebdavServer) FsGet(context.Context, *FsGetReq) (*FsGetResp, error)
- func (UnimplementedWebdavServer) FsList(context.Context, *FsListReq) (*FsListResp, error)
- func (UnimplementedWebdavServer) FsSearch(context.Context, *FsSearchReq) (*FsSearchResp, error)
- func (UnimplementedWebdavServer) FsTest(context.Context, *FsTestReq) (*Empty, error)
- type UnsafeWebdavServer
- type WebdavClient
- type WebdavHTTPClient
- type WebdavHTTPClientImpl
- func (c *WebdavHTTPClientImpl) FsGet(ctx context.Context, in *FsGetReq, opts ...http.CallOption) (*FsGetResp, error)
- func (c *WebdavHTTPClientImpl) FsList(ctx context.Context, in *FsListReq, opts ...http.CallOption) (*FsListResp, error)
- func (c *WebdavHTTPClientImpl) FsSearch(ctx context.Context, in *FsSearchReq, opts ...http.CallOption) (*FsSearchResp, error)
- func (c *WebdavHTTPClientImpl) FsTest(ctx context.Context, in *FsTestReq, opts ...http.CallOption) (*Empty, error)
- type WebdavHTTPServer
- type WebdavServer
Constants ¶
const ( Webdav_FsGet_FullMethodName = "/api.webdav.Webdav/FsGet" Webdav_FsList_FullMethodName = "/api.webdav.Webdav/FsList" Webdav_FsSearch_FullMethodName = "/api.webdav.Webdav/FsSearch" Webdav_FsTest_FullMethodName = "/api.webdav.Webdav/FsTest" )
const OperationWebdavFsGet = "/api.webdav.Webdav/FsGet"
const OperationWebdavFsList = "/api.webdav.Webdav/FsList"
const OperationWebdavFsSearch = "/api.webdav.Webdav/FsSearch"
const OperationWebdavFsTest = "/api.webdav.Webdav/FsTest"
Variables ¶
var File_webdav_webdav_proto protoreflect.FileDescriptor
var Webdav_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.webdav.Webdav", HandlerType: (*WebdavServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FsGet", Handler: _Webdav_FsGet_Handler, }, { MethodName: "FsList", Handler: _Webdav_FsList_Handler, }, { MethodName: "FsSearch", Handler: _Webdav_FsSearch_Handler, }, { MethodName: "FsTest", Handler: _Webdav_FsTest_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "webdav/webdav.proto", }
Webdav_ServiceDesc is the grpc.ServiceDesc for Webdav service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWebdavHTTPServer ¶
func RegisterWebdavHTTPServer(s *http.Server, srv WebdavHTTPServer)
func RegisterWebdavServer ¶
func RegisterWebdavServer(s grpc.ServiceRegistrar, srv WebdavServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type FsGetReq ¶
type FsGetReq struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
func (*FsGetReq) Descriptor
deprecated
func (*FsGetReq) GetPassword ¶
func (*FsGetReq) GetUsername ¶
func (*FsGetReq) ProtoMessage ¶
func (*FsGetReq) ProtoMessage()
func (*FsGetReq) ProtoReflect ¶
func (x *FsGetReq) ProtoReflect() protoreflect.Message
type FsGetResp ¶
type FsGetResp struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
IsDir bool `protobuf:"varint,3,opt,name=isDir,proto3" json:"isDir,omitempty"`
Modified int64 `protobuf:"varint,4,opt,name=modified,proto3" json:"modified,omitempty"`
// contains filtered or unexported fields
}
func (*FsGetResp) Descriptor
deprecated
func (*FsGetResp) GetModified ¶
func (*FsGetResp) ProtoMessage ¶
func (*FsGetResp) ProtoMessage()
func (*FsGetResp) ProtoReflect ¶
func (x *FsGetResp) ProtoReflect() protoreflect.Message
type FsListReq ¶
type FsListReq struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
Page uint64 `protobuf:"varint,5,opt,name=page,proto3" json:"page,omitempty"`
PerPage uint64 `protobuf:"varint,6,opt,name=perPage,proto3" json:"perPage,omitempty"`
// contains filtered or unexported fields
}
func (*FsListReq) Descriptor
deprecated
func (*FsListReq) GetPassword ¶
func (*FsListReq) GetPerPage ¶
func (*FsListReq) GetUsername ¶
func (*FsListReq) ProtoMessage ¶
func (*FsListReq) ProtoMessage()
func (*FsListReq) ProtoReflect ¶
func (x *FsListReq) ProtoReflect() protoreflect.Message
type FsListResp ¶
type FsListResp struct {
Content []*FsListResp_FsListContent `protobuf:"bytes,1,rep,name=content,proto3" json:"content,omitempty"`
Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*FsListResp) Descriptor
deprecated
func (*FsListResp) Descriptor() ([]byte, []int)
Deprecated: Use FsListResp.ProtoReflect.Descriptor instead.
func (*FsListResp) GetContent ¶
func (x *FsListResp) GetContent() []*FsListResp_FsListContent
func (*FsListResp) GetTotal ¶
func (x *FsListResp) GetTotal() uint64
func (*FsListResp) ProtoMessage ¶
func (*FsListResp) ProtoMessage()
func (*FsListResp) ProtoReflect ¶
func (x *FsListResp) ProtoReflect() protoreflect.Message
func (*FsListResp) Reset ¶
func (x *FsListResp) Reset()
func (*FsListResp) String ¶
func (x *FsListResp) String() string
type FsListResp_FsListContent ¶
type FsListResp_FsListContent struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
IsDir bool `protobuf:"varint,3,opt,name=isDir,proto3" json:"isDir,omitempty"`
Modified int64 `protobuf:"varint,4,opt,name=modified,proto3" json:"modified,omitempty"`
// contains filtered or unexported fields
}
func (*FsListResp_FsListContent) Descriptor
deprecated
func (*FsListResp_FsListContent) Descriptor() ([]byte, []int)
Deprecated: Use FsListResp_FsListContent.ProtoReflect.Descriptor instead.
func (*FsListResp_FsListContent) GetIsDir ¶
func (x *FsListResp_FsListContent) GetIsDir() bool
func (*FsListResp_FsListContent) GetModified ¶
func (x *FsListResp_FsListContent) GetModified() int64
func (*FsListResp_FsListContent) GetName ¶
func (x *FsListResp_FsListContent) GetName() string
func (*FsListResp_FsListContent) GetSize ¶
func (x *FsListResp_FsListContent) GetSize() int64
func (*FsListResp_FsListContent) ProtoMessage ¶
func (*FsListResp_FsListContent) ProtoMessage()
func (*FsListResp_FsListContent) ProtoReflect ¶
func (x *FsListResp_FsListContent) ProtoReflect() protoreflect.Message
func (*FsListResp_FsListContent) Reset ¶
func (x *FsListResp_FsListContent) Reset()
func (*FsListResp_FsListContent) String ¶
func (x *FsListResp_FsListContent) String() string
type FsSearchReq ¶
type FsSearchReq struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
Keywords string `protobuf:"bytes,5,opt,name=keywords,proto3" json:"keywords,omitempty"`
Page uint64 `protobuf:"varint,6,opt,name=page,proto3" json:"page,omitempty"`
PerPage uint64 `protobuf:"varint,7,opt,name=perPage,proto3" json:"perPage,omitempty"`
// contains filtered or unexported fields
}
func (*FsSearchReq) Descriptor
deprecated
func (*FsSearchReq) Descriptor() ([]byte, []int)
Deprecated: Use FsSearchReq.ProtoReflect.Descriptor instead.
func (*FsSearchReq) GetHost ¶
func (x *FsSearchReq) GetHost() string
func (*FsSearchReq) GetKeywords ¶
func (x *FsSearchReq) GetKeywords() string
func (*FsSearchReq) GetPage ¶
func (x *FsSearchReq) GetPage() uint64
func (*FsSearchReq) GetPassword ¶
func (x *FsSearchReq) GetPassword() string
func (*FsSearchReq) GetPath ¶
func (x *FsSearchReq) GetPath() string
func (*FsSearchReq) GetPerPage ¶
func (x *FsSearchReq) GetPerPage() uint64
func (*FsSearchReq) GetUsername ¶
func (x *FsSearchReq) GetUsername() string
func (*FsSearchReq) ProtoMessage ¶
func (*FsSearchReq) ProtoMessage()
func (*FsSearchReq) ProtoReflect ¶
func (x *FsSearchReq) ProtoReflect() protoreflect.Message
func (*FsSearchReq) Reset ¶
func (x *FsSearchReq) Reset()
func (*FsSearchReq) String ¶
func (x *FsSearchReq) String() string
type FsSearchResp ¶
type FsSearchResp struct {
Content []*FsSearchResp_FsSearchContent `protobuf:"bytes,1,rep,name=content,proto3" json:"content,omitempty"`
Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*FsSearchResp) Descriptor
deprecated
func (*FsSearchResp) Descriptor() ([]byte, []int)
Deprecated: Use FsSearchResp.ProtoReflect.Descriptor instead.
func (*FsSearchResp) GetContent ¶
func (x *FsSearchResp) GetContent() []*FsSearchResp_FsSearchContent
func (*FsSearchResp) GetTotal ¶
func (x *FsSearchResp) GetTotal() uint64
func (*FsSearchResp) ProtoMessage ¶
func (*FsSearchResp) ProtoMessage()
func (*FsSearchResp) ProtoReflect ¶
func (x *FsSearchResp) ProtoReflect() protoreflect.Message
func (*FsSearchResp) Reset ¶
func (x *FsSearchResp) Reset()
func (*FsSearchResp) String ¶
func (x *FsSearchResp) String() string
type FsSearchResp_FsSearchContent ¶
type FsSearchResp_FsSearchContent struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
IsDir bool `protobuf:"varint,2,opt,name=isDir,proto3" json:"isDir,omitempty"`
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
func (*FsSearchResp_FsSearchContent) Descriptor
deprecated
func (*FsSearchResp_FsSearchContent) Descriptor() ([]byte, []int)
Deprecated: Use FsSearchResp_FsSearchContent.ProtoReflect.Descriptor instead.
func (*FsSearchResp_FsSearchContent) GetIsDir ¶
func (x *FsSearchResp_FsSearchContent) GetIsDir() bool
func (*FsSearchResp_FsSearchContent) GetName ¶
func (x *FsSearchResp_FsSearchContent) GetName() string
func (*FsSearchResp_FsSearchContent) GetSize ¶
func (x *FsSearchResp_FsSearchContent) GetSize() int64
func (*FsSearchResp_FsSearchContent) ProtoMessage ¶
func (*FsSearchResp_FsSearchContent) ProtoMessage()
func (*FsSearchResp_FsSearchContent) ProtoReflect ¶
func (x *FsSearchResp_FsSearchContent) ProtoReflect() protoreflect.Message
func (*FsSearchResp_FsSearchContent) Reset ¶
func (x *FsSearchResp_FsSearchContent) Reset()
func (*FsSearchResp_FsSearchContent) String ¶
func (x *FsSearchResp_FsSearchContent) String() string
type FsTestReq ¶
type FsTestReq struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
// contains filtered or unexported fields
}
func (*FsTestReq) Descriptor
deprecated
func (*FsTestReq) GetPassword ¶
func (*FsTestReq) GetUsername ¶
func (*FsTestReq) ProtoMessage ¶
func (*FsTestReq) ProtoMessage()
func (*FsTestReq) ProtoReflect ¶
func (x *FsTestReq) ProtoReflect() protoreflect.Message
type UnimplementedWebdavServer ¶
type UnimplementedWebdavServer struct{}
UnimplementedWebdavServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedWebdavServer) FsList ¶
func (UnimplementedWebdavServer) FsList(context.Context, *FsListReq) (*FsListResp, error)
func (UnimplementedWebdavServer) FsSearch ¶
func (UnimplementedWebdavServer) FsSearch(context.Context, *FsSearchReq) (*FsSearchResp, error)
type UnsafeWebdavServer ¶
type UnsafeWebdavServer interface {
// contains filtered or unexported methods
}
UnsafeWebdavServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebdavServer will result in compilation errors.
type WebdavClient ¶
type WebdavClient interface {
FsGet(ctx context.Context, in *FsGetReq, opts ...grpc.CallOption) (*FsGetResp, error)
FsList(ctx context.Context, in *FsListReq, opts ...grpc.CallOption) (*FsListResp, error)
FsSearch(ctx context.Context, in *FsSearchReq, opts ...grpc.CallOption) (*FsSearchResp, error)
FsTest(ctx context.Context, in *FsTestReq, opts ...grpc.CallOption) (*Empty, error)
}
WebdavClient is the client API for Webdav service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWebdavClient ¶
func NewWebdavClient(cc grpc.ClientConnInterface) WebdavClient
type WebdavHTTPClient ¶
type WebdavHTTPClient interface {
FsGet(ctx context.Context, req *FsGetReq, opts ...http.CallOption) (rsp *FsGetResp, err error)
FsList(ctx context.Context, req *FsListReq, opts ...http.CallOption) (rsp *FsListResp, err error)
FsSearch(ctx context.Context, req *FsSearchReq, opts ...http.CallOption) (rsp *FsSearchResp, err error)
FsTest(ctx context.Context, req *FsTestReq, opts ...http.CallOption) (rsp *Empty, err error)
}
func NewWebdavHTTPClient ¶
func NewWebdavHTTPClient(client *http.Client) WebdavHTTPClient
type WebdavHTTPClientImpl ¶
type WebdavHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*WebdavHTTPClientImpl) FsGet ¶
func (c *WebdavHTTPClientImpl) FsGet(ctx context.Context, in *FsGetReq, opts ...http.CallOption) (*FsGetResp, error)
func (*WebdavHTTPClientImpl) FsList ¶
func (c *WebdavHTTPClientImpl) FsList(ctx context.Context, in *FsListReq, opts ...http.CallOption) (*FsListResp, error)
func (*WebdavHTTPClientImpl) FsSearch ¶
func (c *WebdavHTTPClientImpl) FsSearch(ctx context.Context, in *FsSearchReq, opts ...http.CallOption) (*FsSearchResp, error)
func (*WebdavHTTPClientImpl) FsTest ¶
func (c *WebdavHTTPClientImpl) FsTest(ctx context.Context, in *FsTestReq, opts ...http.CallOption) (*Empty, error)
type WebdavHTTPServer ¶
type WebdavServer ¶
type WebdavServer interface {
FsGet(context.Context, *FsGetReq) (*FsGetResp, error)
FsList(context.Context, *FsListReq) (*FsListResp, error)
FsSearch(context.Context, *FsSearchReq) (*FsSearchResp, error)
FsTest(context.Context, *FsTestReq) (*Empty, error)
// contains filtered or unexported methods
}
WebdavServer is the server API for Webdav service. All implementations must embed UnimplementedWebdavServer for forward compatibility.