proto

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_metadata_proto_metadata_proto protoreflect.FileDescriptor
View Source
var Metadata_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Metadata",
	HandlerType: (*MetadataServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SetModificationTime",
			Handler:    _Metadata_SetModificationTime_Handler,
		},
		{
			MethodName: "GetModificationTime",
			Handler:    _Metadata_GetModificationTime_Handler,
		},
		{
			MethodName: "GetModificationTimes",
			Handler:    _Metadata_GetModificationTimes_Handler,
		},
		{
			MethodName: "RemoveMetadata",
			Handler:    _Metadata_RemoveMetadata_Handler,
		},
		{
			MethodName: "GetFolders",
			Handler:    _Metadata_GetFolders_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "metadata/proto/metadata.proto",
}

Metadata_ServiceDesc is the grpc.ServiceDesc for Metadata service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMetadataServer

func RegisterMetadataServer(s grpc.ServiceRegistrar, srv MetadataServer)

Types

type GetFoldersRequest

type GetFoldersRequest struct {
	StorageId string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
	Limit     int32  `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	From      string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFoldersRequest) Descriptor deprecated

func (*GetFoldersRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFoldersRequest.ProtoReflect.Descriptor instead.

func (*GetFoldersRequest) GetFrom

func (x *GetFoldersRequest) GetFrom() string

func (*GetFoldersRequest) GetLimit

func (x *GetFoldersRequest) GetLimit() int32

func (*GetFoldersRequest) GetStorageId

func (x *GetFoldersRequest) GetStorageId() string

func (*GetFoldersRequest) ProtoMessage

func (*GetFoldersRequest) ProtoMessage()

func (*GetFoldersRequest) ProtoReflect

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

func (*GetFoldersRequest) Reset

func (x *GetFoldersRequest) Reset()

func (*GetFoldersRequest) String

func (x *GetFoldersRequest) String() string

type GetFoldersResponse

type GetFoldersResponse struct {
	Folders []string `protobuf:"bytes,1,rep,name=folders,proto3" json:"folders,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFoldersResponse) Descriptor deprecated

func (*GetFoldersResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetFoldersResponse.ProtoReflect.Descriptor instead.

func (*GetFoldersResponse) GetFolders

func (x *GetFoldersResponse) GetFolders() []string

func (*GetFoldersResponse) ProtoMessage

func (*GetFoldersResponse) ProtoMessage()

func (*GetFoldersResponse) ProtoReflect

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

func (*GetFoldersResponse) Reset

func (x *GetFoldersResponse) Reset()

func (*GetFoldersResponse) String

func (x *GetFoldersResponse) String() string

type GetModificationTimeRequest

type GetModificationTimeRequest struct {
	StorageId  string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
	ObjectPath string `protobuf:"bytes,2,opt,name=object_path,json=objectPath,proto3" json:"object_path,omitempty"`
	// contains filtered or unexported fields
}

func (*GetModificationTimeRequest) Descriptor deprecated

func (*GetModificationTimeRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetModificationTimeRequest.ProtoReflect.Descriptor instead.

func (*GetModificationTimeRequest) GetObjectPath

func (x *GetModificationTimeRequest) GetObjectPath() string

func (*GetModificationTimeRequest) GetStorageId

func (x *GetModificationTimeRequest) GetStorageId() string

func (*GetModificationTimeRequest) ProtoMessage

func (*GetModificationTimeRequest) ProtoMessage()

func (*GetModificationTimeRequest) ProtoReflect

func (*GetModificationTimeRequest) Reset

func (x *GetModificationTimeRequest) Reset()

func (*GetModificationTimeRequest) String

func (x *GetModificationTimeRequest) String() string

type GetModificationTimeResponse

type GetModificationTimeResponse struct {
	ModificationTime int64 `protobuf:"varint,1,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"`
	// contains filtered or unexported fields
}

func (*GetModificationTimeResponse) Descriptor deprecated

func (*GetModificationTimeResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetModificationTimeResponse.ProtoReflect.Descriptor instead.

func (*GetModificationTimeResponse) GetModificationTime

func (x *GetModificationTimeResponse) GetModificationTime() int64

func (*GetModificationTimeResponse) ProtoMessage

func (*GetModificationTimeResponse) ProtoMessage()

func (*GetModificationTimeResponse) ProtoReflect

func (*GetModificationTimeResponse) Reset

func (x *GetModificationTimeResponse) Reset()

func (*GetModificationTimeResponse) String

func (x *GetModificationTimeResponse) String() string

type GetModificationTimesRequest

type GetModificationTimesRequest struct {
	StorageId  string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
	FolderPath string `protobuf:"bytes,2,opt,name=folder_path,json=folderPath,proto3" json:"folder_path,omitempty"`
	// contains filtered or unexported fields
}

func (*GetModificationTimesRequest) Descriptor deprecated

func (*GetModificationTimesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetModificationTimesRequest.ProtoReflect.Descriptor instead.

func (*GetModificationTimesRequest) GetFolderPath

func (x *GetModificationTimesRequest) GetFolderPath() string

func (*GetModificationTimesRequest) GetStorageId

func (x *GetModificationTimesRequest) GetStorageId() string

func (*GetModificationTimesRequest) ProtoMessage

func (*GetModificationTimesRequest) ProtoMessage()

func (*GetModificationTimesRequest) ProtoReflect

func (*GetModificationTimesRequest) Reset

func (x *GetModificationTimesRequest) Reset()

func (*GetModificationTimesRequest) String

func (x *GetModificationTimesRequest) String() string

type GetModificationTimesResponse

type GetModificationTimesResponse struct {

	// the file name (not the full path) is the map key and the modification time is the map value
	Pairs map[string]int64 `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetModificationTimesResponse) Descriptor deprecated

func (*GetModificationTimesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetModificationTimesResponse.ProtoReflect.Descriptor instead.

func (*GetModificationTimesResponse) GetPairs

func (x *GetModificationTimesResponse) GetPairs() map[string]int64

func (*GetModificationTimesResponse) ProtoMessage

func (*GetModificationTimesResponse) ProtoMessage()

func (*GetModificationTimesResponse) ProtoReflect

func (*GetModificationTimesResponse) Reset

func (x *GetModificationTimesResponse) Reset()

func (*GetModificationTimesResponse) String

type MetadataClient

type MetadataClient interface {
	SetModificationTime(ctx context.Context, in *SetModificationTimeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetModificationTime(ctx context.Context, in *GetModificationTimeRequest, opts ...grpc.CallOption) (*GetModificationTimeResponse, error)
	GetModificationTimes(ctx context.Context, in *GetModificationTimesRequest, opts ...grpc.CallOption) (*GetModificationTimesResponse, error)
	RemoveMetadata(ctx context.Context, in *RemoveMetadataRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetFolders(ctx context.Context, in *GetFoldersRequest, opts ...grpc.CallOption) (*GetFoldersResponse, error)
}

MetadataClient is the client API for Metadata 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 NewMetadataClient

func NewMetadataClient(cc grpc.ClientConnInterface) MetadataClient

type MetadataServer

MetadataServer is the server API for Metadata service. All implementations should embed UnimplementedMetadataServer for forward compatibility

type RemoveMetadataRequest

type RemoveMetadataRequest struct {
	StorageId  string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
	ObjectPath string `protobuf:"bytes,2,opt,name=object_path,json=objectPath,proto3" json:"object_path,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveMetadataRequest) Descriptor deprecated

func (*RemoveMetadataRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveMetadataRequest.ProtoReflect.Descriptor instead.

func (*RemoveMetadataRequest) GetObjectPath

func (x *RemoveMetadataRequest) GetObjectPath() string

func (*RemoveMetadataRequest) GetStorageId

func (x *RemoveMetadataRequest) GetStorageId() string

func (*RemoveMetadataRequest) ProtoMessage

func (*RemoveMetadataRequest) ProtoMessage()

func (*RemoveMetadataRequest) ProtoReflect

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

func (*RemoveMetadataRequest) Reset

func (x *RemoveMetadataRequest) Reset()

func (*RemoveMetadataRequest) String

func (x *RemoveMetadataRequest) String() string

type SetModificationTimeRequest

type SetModificationTimeRequest struct {
	StorageId        string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
	ObjectPath       string `protobuf:"bytes,2,opt,name=object_path,json=objectPath,proto3" json:"object_path,omitempty"`
	ModificationTime int64  `protobuf:"varint,3,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"`
	// contains filtered or unexported fields
}

func (*SetModificationTimeRequest) Descriptor deprecated

func (*SetModificationTimeRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetModificationTimeRequest.ProtoReflect.Descriptor instead.

func (*SetModificationTimeRequest) GetModificationTime

func (x *SetModificationTimeRequest) GetModificationTime() int64

func (*SetModificationTimeRequest) GetObjectPath

func (x *SetModificationTimeRequest) GetObjectPath() string

func (*SetModificationTimeRequest) GetStorageId

func (x *SetModificationTimeRequest) GetStorageId() string

func (*SetModificationTimeRequest) ProtoMessage

func (*SetModificationTimeRequest) ProtoMessage()

func (*SetModificationTimeRequest) ProtoReflect

func (*SetModificationTimeRequest) Reset

func (x *SetModificationTimeRequest) Reset()

func (*SetModificationTimeRequest) String

func (x *SetModificationTimeRequest) String() string

type UnimplementedMetadataServer

type UnimplementedMetadataServer struct {
}

UnimplementedMetadataServer should be embedded to have forward compatible implementations.

func (UnimplementedMetadataServer) GetFolders

func (UnimplementedMetadataServer) RemoveMetadata

func (UnimplementedMetadataServer) SetModificationTime

type UnsafeMetadataServer added in v0.1.3

type UnsafeMetadataServer interface {
	// contains filtered or unexported methods
}

UnsafeMetadataServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetadataServer will result in compilation errors.

Jump to

Keyboard shortcuts

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