mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
558 lines
23 KiB
Go
558 lines
23 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: volume_server.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package volume_server_pb is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
volume_server.proto
|
|
|
|
It has these top-level messages:
|
|
BatchDeleteRequest
|
|
BatchDeleteResponse
|
|
DeleteResult
|
|
Empty
|
|
VacuumVolumeCheckRequest
|
|
VacuumVolumeCheckResponse
|
|
VacuumVolumeCompactRequest
|
|
VacuumVolumeCompactResponse
|
|
VacuumVolumeCommitRequest
|
|
VacuumVolumeCommitResponse
|
|
VacuumVolumeCleanupRequest
|
|
VacuumVolumeCleanupResponse
|
|
DeleteCollectionRequest
|
|
DeleteCollectionResponse
|
|
*/
|
|
package volume_server_pb
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
import (
|
|
context "golang.org/x/net/context"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type BatchDeleteRequest struct {
|
|
FileIds []string `protobuf:"bytes,1,rep,name=file_ids,json=fileIds" json:"file_ids,omitempty"`
|
|
}
|
|
|
|
func (m *BatchDeleteRequest) Reset() { *m = BatchDeleteRequest{} }
|
|
func (m *BatchDeleteRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*BatchDeleteRequest) ProtoMessage() {}
|
|
func (*BatchDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
func (m *BatchDeleteRequest) GetFileIds() []string {
|
|
if m != nil {
|
|
return m.FileIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BatchDeleteResponse struct {
|
|
Results []*DeleteResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
|
|
}
|
|
|
|
func (m *BatchDeleteResponse) Reset() { *m = BatchDeleteResponse{} }
|
|
func (m *BatchDeleteResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BatchDeleteResponse) ProtoMessage() {}
|
|
func (*BatchDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
func (m *BatchDeleteResponse) GetResults() []*DeleteResult {
|
|
if m != nil {
|
|
return m.Results
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteResult struct {
|
|
FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"`
|
|
Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
|
|
Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
|
|
Size uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
|
|
}
|
|
|
|
func (m *DeleteResult) Reset() { *m = DeleteResult{} }
|
|
func (m *DeleteResult) String() string { return proto.CompactTextString(m) }
|
|
func (*DeleteResult) ProtoMessage() {}
|
|
func (*DeleteResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
|
|
|
func (m *DeleteResult) GetFileId() string {
|
|
if m != nil {
|
|
return m.FileId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeleteResult) GetStatus() int32 {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *DeleteResult) GetError() string {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeleteResult) GetSize() uint32 {
|
|
if m != nil {
|
|
return m.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Empty struct {
|
|
}
|
|
|
|
func (m *Empty) Reset() { *m = Empty{} }
|
|
func (m *Empty) String() string { return proto.CompactTextString(m) }
|
|
func (*Empty) ProtoMessage() {}
|
|
func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
|
|
|
type VacuumVolumeCheckRequest struct {
|
|
VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
|
|
}
|
|
|
|
func (m *VacuumVolumeCheckRequest) Reset() { *m = VacuumVolumeCheckRequest{} }
|
|
func (m *VacuumVolumeCheckRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*VacuumVolumeCheckRequest) ProtoMessage() {}
|
|
func (*VacuumVolumeCheckRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
|
|
|
func (m *VacuumVolumeCheckRequest) GetVolumdId() uint32 {
|
|
if m != nil {
|
|
return m.VolumdId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type VacuumVolumeCheckResponse struct {
|
|
GarbageRatio float64 `protobuf:"fixed64,1,opt,name=garbage_ratio,json=garbageRatio" json:"garbage_ratio,omitempty"`
|
|
}
|
|
|
|
func (m *VacuumVolumeCheckResponse) Reset() { *m = VacuumVolumeCheckResponse{} }
|
|
func (m *VacuumVolumeCheckResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*VacuumVolumeCheckResponse) ProtoMessage() {}
|
|
func (*VacuumVolumeCheckResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
|
|
|
func (m *VacuumVolumeCheckResponse) GetGarbageRatio() float64 {
|
|
if m != nil {
|
|
return m.GarbageRatio
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type VacuumVolumeCompactRequest struct {
|
|
VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
|
|
Preallocate int64 `protobuf:"varint,2,opt,name=preallocate" json:"preallocate,omitempty"`
|
|
}
|
|
|
|
func (m *VacuumVolumeCompactRequest) Reset() { *m = VacuumVolumeCompactRequest{} }
|
|
func (m *VacuumVolumeCompactRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*VacuumVolumeCompactRequest) ProtoMessage() {}
|
|
func (*VacuumVolumeCompactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
|
|
|
func (m *VacuumVolumeCompactRequest) GetVolumdId() uint32 {
|
|
if m != nil {
|
|
return m.VolumdId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *VacuumVolumeCompactRequest) GetPreallocate() int64 {
|
|
if m != nil {
|
|
return m.Preallocate
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type VacuumVolumeCompactResponse struct {
|
|
}
|
|
|
|
func (m *VacuumVolumeCompactResponse) Reset() { *m = VacuumVolumeCompactResponse{} }
|
|
func (m *VacuumVolumeCompactResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*VacuumVolumeCompactResponse) ProtoMessage() {}
|
|
func (*VacuumVolumeCompactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
|
|
|
type VacuumVolumeCommitRequest struct {
|
|
VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
|
|
}
|
|
|
|
func (m *VacuumVolumeCommitRequest) Reset() { *m = VacuumVolumeCommitRequest{} }
|
|
func (m *VacuumVolumeCommitRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*VacuumVolumeCommitRequest) ProtoMessage() {}
|
|
func (*VacuumVolumeCommitRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
|
|
|
func (m *VacuumVolumeCommitRequest) GetVolumdId() uint32 {
|
|
if m != nil {
|
|
return m.VolumdId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type VacuumVolumeCommitResponse struct {
|
|
}
|
|
|
|
func (m *VacuumVolumeCommitResponse) Reset() { *m = VacuumVolumeCommitResponse{} }
|
|
func (m *VacuumVolumeCommitResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*VacuumVolumeCommitResponse) ProtoMessage() {}
|
|
func (*VacuumVolumeCommitResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
|
|
|
|
type VacuumVolumeCleanupRequest struct {
|
|
VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
|
|
}
|
|
|
|
func (m *VacuumVolumeCleanupRequest) Reset() { *m = VacuumVolumeCleanupRequest{} }
|
|
func (m *VacuumVolumeCleanupRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*VacuumVolumeCleanupRequest) ProtoMessage() {}
|
|
func (*VacuumVolumeCleanupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
|
|
|
|
func (m *VacuumVolumeCleanupRequest) GetVolumdId() uint32 {
|
|
if m != nil {
|
|
return m.VolumdId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type VacuumVolumeCleanupResponse struct {
|
|
}
|
|
|
|
func (m *VacuumVolumeCleanupResponse) Reset() { *m = VacuumVolumeCleanupResponse{} }
|
|
func (m *VacuumVolumeCleanupResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*VacuumVolumeCleanupResponse) ProtoMessage() {}
|
|
func (*VacuumVolumeCleanupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
|
|
|
|
type DeleteCollectionRequest struct {
|
|
Collection string `protobuf:"bytes,1,opt,name=collection" json:"collection,omitempty"`
|
|
}
|
|
|
|
func (m *DeleteCollectionRequest) Reset() { *m = DeleteCollectionRequest{} }
|
|
func (m *DeleteCollectionRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*DeleteCollectionRequest) ProtoMessage() {}
|
|
func (*DeleteCollectionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
|
|
|
|
func (m *DeleteCollectionRequest) GetCollection() string {
|
|
if m != nil {
|
|
return m.Collection
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteCollectionResponse struct {
|
|
}
|
|
|
|
func (m *DeleteCollectionResponse) Reset() { *m = DeleteCollectionResponse{} }
|
|
func (m *DeleteCollectionResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*DeleteCollectionResponse) ProtoMessage() {}
|
|
func (*DeleteCollectionResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
|
|
|
|
func init() {
|
|
proto.RegisterType((*BatchDeleteRequest)(nil), "volume_server_pb.BatchDeleteRequest")
|
|
proto.RegisterType((*BatchDeleteResponse)(nil), "volume_server_pb.BatchDeleteResponse")
|
|
proto.RegisterType((*DeleteResult)(nil), "volume_server_pb.DeleteResult")
|
|
proto.RegisterType((*Empty)(nil), "volume_server_pb.Empty")
|
|
proto.RegisterType((*VacuumVolumeCheckRequest)(nil), "volume_server_pb.VacuumVolumeCheckRequest")
|
|
proto.RegisterType((*VacuumVolumeCheckResponse)(nil), "volume_server_pb.VacuumVolumeCheckResponse")
|
|
proto.RegisterType((*VacuumVolumeCompactRequest)(nil), "volume_server_pb.VacuumVolumeCompactRequest")
|
|
proto.RegisterType((*VacuumVolumeCompactResponse)(nil), "volume_server_pb.VacuumVolumeCompactResponse")
|
|
proto.RegisterType((*VacuumVolumeCommitRequest)(nil), "volume_server_pb.VacuumVolumeCommitRequest")
|
|
proto.RegisterType((*VacuumVolumeCommitResponse)(nil), "volume_server_pb.VacuumVolumeCommitResponse")
|
|
proto.RegisterType((*VacuumVolumeCleanupRequest)(nil), "volume_server_pb.VacuumVolumeCleanupRequest")
|
|
proto.RegisterType((*VacuumVolumeCleanupResponse)(nil), "volume_server_pb.VacuumVolumeCleanupResponse")
|
|
proto.RegisterType((*DeleteCollectionRequest)(nil), "volume_server_pb.DeleteCollectionRequest")
|
|
proto.RegisterType((*DeleteCollectionResponse)(nil), "volume_server_pb.DeleteCollectionResponse")
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// Client API for VolumeServer service
|
|
|
|
type VolumeServerClient interface {
|
|
// Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
|
|
BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error)
|
|
VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error)
|
|
VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error)
|
|
VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error)
|
|
VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error)
|
|
DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error)
|
|
}
|
|
|
|
type volumeServerClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewVolumeServerClient(cc *grpc.ClientConn) VolumeServerClient {
|
|
return &volumeServerClient{cc}
|
|
}
|
|
|
|
func (c *volumeServerClient) BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error) {
|
|
out := new(BatchDeleteResponse)
|
|
err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/BatchDelete", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *volumeServerClient) VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error) {
|
|
out := new(VacuumVolumeCheckResponse)
|
|
err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCheck", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *volumeServerClient) VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error) {
|
|
out := new(VacuumVolumeCompactResponse)
|
|
err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCompact", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *volumeServerClient) VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error) {
|
|
out := new(VacuumVolumeCommitResponse)
|
|
err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCommit", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *volumeServerClient) VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error) {
|
|
out := new(VacuumVolumeCleanupResponse)
|
|
err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCleanup", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *volumeServerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) {
|
|
out := new(DeleteCollectionResponse)
|
|
err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/DeleteCollection", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// Server API for VolumeServer service
|
|
|
|
type VolumeServerServer interface {
|
|
// Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
|
|
BatchDelete(context.Context, *BatchDeleteRequest) (*BatchDeleteResponse, error)
|
|
VacuumVolumeCheck(context.Context, *VacuumVolumeCheckRequest) (*VacuumVolumeCheckResponse, error)
|
|
VacuumVolumeCompact(context.Context, *VacuumVolumeCompactRequest) (*VacuumVolumeCompactResponse, error)
|
|
VacuumVolumeCommit(context.Context, *VacuumVolumeCommitRequest) (*VacuumVolumeCommitResponse, error)
|
|
VacuumVolumeCleanup(context.Context, *VacuumVolumeCleanupRequest) (*VacuumVolumeCleanupResponse, error)
|
|
DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
|
|
}
|
|
|
|
func RegisterVolumeServerServer(s *grpc.Server, srv VolumeServerServer) {
|
|
s.RegisterService(&_VolumeServer_serviceDesc, srv)
|
|
}
|
|
|
|
func _VolumeServer_BatchDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(BatchDeleteRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(VolumeServerServer).BatchDelete(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/volume_server_pb.VolumeServer/BatchDelete",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(VolumeServerServer).BatchDelete(ctx, req.(*BatchDeleteRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _VolumeServer_VacuumVolumeCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VacuumVolumeCheckRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCheck",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, req.(*VacuumVolumeCheckRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _VolumeServer_VacuumVolumeCompact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VacuumVolumeCompactRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCompact",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, req.(*VacuumVolumeCompactRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _VolumeServer_VacuumVolumeCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VacuumVolumeCommitRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCommit",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, req.(*VacuumVolumeCommitRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _VolumeServer_VacuumVolumeCleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VacuumVolumeCleanupRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCleanup",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, req.(*VacuumVolumeCleanupRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _VolumeServer_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DeleteCollectionRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(VolumeServerServer).DeleteCollection(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/volume_server_pb.VolumeServer/DeleteCollection",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(VolumeServerServer).DeleteCollection(ctx, req.(*DeleteCollectionRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _VolumeServer_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "volume_server_pb.VolumeServer",
|
|
HandlerType: (*VolumeServerServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "BatchDelete",
|
|
Handler: _VolumeServer_BatchDelete_Handler,
|
|
},
|
|
{
|
|
MethodName: "VacuumVolumeCheck",
|
|
Handler: _VolumeServer_VacuumVolumeCheck_Handler,
|
|
},
|
|
{
|
|
MethodName: "VacuumVolumeCompact",
|
|
Handler: _VolumeServer_VacuumVolumeCompact_Handler,
|
|
},
|
|
{
|
|
MethodName: "VacuumVolumeCommit",
|
|
Handler: _VolumeServer_VacuumVolumeCommit_Handler,
|
|
},
|
|
{
|
|
MethodName: "VacuumVolumeCleanup",
|
|
Handler: _VolumeServer_VacuumVolumeCleanup_Handler,
|
|
},
|
|
{
|
|
MethodName: "DeleteCollection",
|
|
Handler: _VolumeServer_DeleteCollection_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "volume_server.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("volume_server.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 501 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x94, 0x4f, 0x6f, 0xd3, 0x4c,
|
|
0x10, 0xc6, 0xeb, 0x37, 0x4d, 0xd2, 0x4c, 0x12, 0xa9, 0xef, 0x04, 0x51, 0xd7, 0x85, 0x2a, 0x5a,
|
|
0x40, 0x0a, 0x6d, 0x09, 0x52, 0x39, 0x50, 0x6e, 0x88, 0xc2, 0xa1, 0x27, 0xa4, 0x45, 0xea, 0x05,
|
|
0xa4, 0x68, 0xe3, 0x0c, 0xad, 0xd5, 0x75, 0xd6, 0xdd, 0x5d, 0x57, 0x82, 0x4f, 0xc4, 0xc7, 0x44,
|
|
0xf5, 0x9f, 0x10, 0xdb, 0x89, 0xec, 0x5b, 0x76, 0x3c, 0xcf, 0xf3, 0xcc, 0xac, 0x7e, 0x59, 0x18,
|
|
0x3d, 0x28, 0x19, 0x87, 0x34, 0x33, 0xa4, 0x1f, 0x48, 0x4f, 0x23, 0xad, 0xac, 0xc2, 0xfd, 0x42,
|
|
0x71, 0x16, 0xcd, 0xd9, 0x5b, 0xc0, 0x4f, 0xc2, 0xfa, 0xb7, 0x9f, 0x49, 0x92, 0x25, 0x4e, 0xf7,
|
|
0x31, 0x19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