webdav

package
v0.8.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationWebdavFsGet = "/api.webdav.Webdav/FsGet"
View Source
const OperationWebdavFsList = "/api.webdav.Webdav/FsList"
View Source
const OperationWebdavFsSearch = "/api.webdav.Webdav/FsSearch"
View Source
const OperationWebdavFsTest = "/api.webdav.Webdav/FsTest"

Variables

View Source
var File_webdav_webdav_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FsGetReq.ProtoReflect.Descriptor instead.

func (*FsGetReq) GetHost

func (x *FsGetReq) GetHost() string

func (*FsGetReq) GetPassword

func (x *FsGetReq) GetPassword() string

func (*FsGetReq) GetPath

func (x *FsGetReq) GetPath() string

func (*FsGetReq) GetUsername

func (x *FsGetReq) GetUsername() string

func (*FsGetReq) ProtoMessage

func (*FsGetReq) ProtoMessage()

func (*FsGetReq) ProtoReflect

func (x *FsGetReq) ProtoReflect() protoreflect.Message

func (*FsGetReq) Reset

func (x *FsGetReq) Reset()

func (*FsGetReq) String

func (x *FsGetReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FsGetResp.ProtoReflect.Descriptor instead.

func (*FsGetResp) GetIsDir

func (x *FsGetResp) GetIsDir() bool

func (*FsGetResp) GetModified

func (x *FsGetResp) GetModified() int64

func (*FsGetResp) GetName

func (x *FsGetResp) GetName() string

func (*FsGetResp) GetSize

func (x *FsGetResp) GetSize() int64

func (*FsGetResp) ProtoMessage

func (*FsGetResp) ProtoMessage()

func (*FsGetResp) ProtoReflect

func (x *FsGetResp) ProtoReflect() protoreflect.Message

func (*FsGetResp) Reset

func (x *FsGetResp) Reset()

func (*FsGetResp) String

func (x *FsGetResp) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FsListReq.ProtoReflect.Descriptor instead.

func (*FsListReq) GetHost

func (x *FsListReq) GetHost() string

func (*FsListReq) GetPage

func (x *FsListReq) GetPage() uint64

func (*FsListReq) GetPassword

func (x *FsListReq) GetPassword() string

func (*FsListReq) GetPath

func (x *FsListReq) GetPath() string

func (*FsListReq) GetPerPage

func (x *FsListReq) GetPerPage() uint64

func (*FsListReq) GetUsername

func (x *FsListReq) GetUsername() string

func (*FsListReq) ProtoMessage

func (*FsListReq) ProtoMessage()

func (*FsListReq) ProtoReflect

func (x *FsListReq) ProtoReflect() protoreflect.Message

func (*FsListReq) Reset

func (x *FsListReq) Reset()

func (*FsListReq) String

func (x *FsListReq) String() string

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 (*FsSearchResp_FsSearchContent) Reset

func (x *FsSearchResp_FsSearchContent) Reset()

func (*FsSearchResp_FsSearchContent) 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) Descriptor() ([]byte, []int)

Deprecated: Use FsTestReq.ProtoReflect.Descriptor instead.

func (*FsTestReq) GetHost

func (x *FsTestReq) GetHost() string

func (*FsTestReq) GetPassword

func (x *FsTestReq) GetPassword() string

func (*FsTestReq) GetUsername

func (x *FsTestReq) GetUsername() string

func (*FsTestReq) ProtoMessage

func (*FsTestReq) ProtoMessage()

func (*FsTestReq) ProtoReflect

func (x *FsTestReq) ProtoReflect() protoreflect.Message

func (*FsTestReq) Reset

func (x *FsTestReq) Reset()

func (*FsTestReq) String

func (x *FsTestReq) String() string

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) FsGet

func (UnimplementedWebdavServer) FsList

func (UnimplementedWebdavServer) FsSearch

func (UnimplementedWebdavServer) FsTest

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 WebdavHTTPServer 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)
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL