From 748994be2ed2ba8f74fca0711b2c3b758ee78d68 Mon Sep 17 00:00:00 2001 From: Sergey Cherepanov Date: Mon, 30 Jan 2023 20:19:52 +0300 Subject: [PATCH] rename proto pkg --- commonfile/fileproto/file.pb.go | 114 ++++++++++++------------- commonfile/fileproto/file_drpc.pb.go | 24 +++--- commonfile/fileproto/protos/file.proto | 2 +- 3 files changed, 70 insertions(+), 70 deletions(-) diff --git a/commonfile/fileproto/file.pb.go b/commonfile/fileproto/file.pb.go index 18390e91..9a01c05a 100644 --- a/commonfile/fileproto/file.pb.go +++ b/commonfile/fileproto/file.pb.go @@ -161,7 +161,7 @@ func (m *BlockGetRequest) GetCid() []byte { type BlockGetResponse struct { Cid []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Code CIDError `protobuf:"varint,3,opt,name=code,proto3,enum=anyFile.CIDError" json:"code,omitempty"` + Code CIDError `protobuf:"varint,3,opt,name=code,proto3,enum=filesync.CIDError" json:"code,omitempty"` } func (m *BlockGetResponse) Reset() { *m = BlockGetResponse{} } @@ -500,7 +500,7 @@ func (m *BlocksCheckResponse) GetBlocksAvailability() []*BlockAvailability { type BlockAvailability struct { Cid []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - Status AvailabilityStatus `protobuf:"varint,2,opt,name=status,proto3,enum=anyFile.AvailabilityStatus" json:"status,omitempty"` + Status AvailabilityStatus `protobuf:"varint,2,opt,name=status,proto3,enum=filesync.AvailabilityStatus" json:"status,omitempty"` } func (m *BlockAvailability) Reset() { *m = BlockAvailability{} } @@ -719,22 +719,22 @@ func (m *CheckResponse) GetSpaceIds() []string { } func init() { - proto.RegisterEnum("anyFile.ErrCodes", ErrCodes_name, ErrCodes_value) - proto.RegisterEnum("anyFile.AvailabilityStatus", AvailabilityStatus_name, AvailabilityStatus_value) - proto.RegisterEnum("anyFile.CIDError", CIDError_name, CIDError_value) - proto.RegisterType((*BlockGetRequest)(nil), "anyFile.BlockGetRequest") - proto.RegisterType((*BlockGetResponse)(nil), "anyFile.BlockGetResponse") - proto.RegisterType((*BlockPushRequest)(nil), "anyFile.BlockPushRequest") - proto.RegisterType((*BlockPushResponse)(nil), "anyFile.BlockPushResponse") - proto.RegisterType((*BlocksDeleteRequest)(nil), "anyFile.BlocksDeleteRequest") - proto.RegisterType((*BlocksDeleteResponse)(nil), "anyFile.BlocksDeleteResponse") - proto.RegisterType((*BlocksCheckRequest)(nil), "anyFile.BlocksCheckRequest") - proto.RegisterType((*BlocksCheckResponse)(nil), "anyFile.BlocksCheckResponse") - proto.RegisterType((*BlockAvailability)(nil), "anyFile.BlockAvailability") - proto.RegisterType((*BlocksBindRequest)(nil), "anyFile.BlocksBindRequest") - proto.RegisterType((*BlocksBindResponse)(nil), "anyFile.BlocksBindResponse") - proto.RegisterType((*CheckRequest)(nil), "anyFile.CheckRequest") - proto.RegisterType((*CheckResponse)(nil), "anyFile.CheckResponse") + proto.RegisterEnum("filesync.ErrCodes", ErrCodes_name, ErrCodes_value) + proto.RegisterEnum("filesync.AvailabilityStatus", AvailabilityStatus_name, AvailabilityStatus_value) + proto.RegisterEnum("filesync.CIDError", CIDError_name, CIDError_value) + proto.RegisterType((*BlockGetRequest)(nil), "filesync.BlockGetRequest") + proto.RegisterType((*BlockGetResponse)(nil), "filesync.BlockGetResponse") + proto.RegisterType((*BlockPushRequest)(nil), "filesync.BlockPushRequest") + proto.RegisterType((*BlockPushResponse)(nil), "filesync.BlockPushResponse") + proto.RegisterType((*BlocksDeleteRequest)(nil), "filesync.BlocksDeleteRequest") + proto.RegisterType((*BlocksDeleteResponse)(nil), "filesync.BlocksDeleteResponse") + proto.RegisterType((*BlocksCheckRequest)(nil), "filesync.BlocksCheckRequest") + proto.RegisterType((*BlocksCheckResponse)(nil), "filesync.BlocksCheckResponse") + proto.RegisterType((*BlockAvailability)(nil), "filesync.BlockAvailability") + proto.RegisterType((*BlocksBindRequest)(nil), "filesync.BlocksBindRequest") + proto.RegisterType((*BlocksBindResponse)(nil), "filesync.BlocksBindResponse") + proto.RegisterType((*CheckRequest)(nil), "filesync.CheckRequest") + proto.RegisterType((*CheckResponse)(nil), "filesync.CheckResponse") } func init() { @@ -742,46 +742,46 @@ func init() { } var fileDescriptor_fd665a7e11c833d5 = []byte{ - // 621 bytes of a gzipped FileDescriptorProto + // 623 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcf, 0x4e, 0xdb, 0x4e, - 0x10, 0xce, 0x26, 0xf9, 0x01, 0x99, 0x40, 0x30, 0x43, 0x7e, 0xc8, 0x35, 0x6d, 0x14, 0x59, 0x6a, - 0x15, 0x51, 0x29, 0x54, 0x41, 0xea, 0x8d, 0x03, 0xf9, 0x03, 0xa4, 0x95, 0xa0, 0x32, 0xea, 0x85, - 0x4b, 0x65, 0xec, 0x45, 0x58, 0x18, 0x6f, 0xea, 0xdd, 0x54, 0xf0, 0x16, 0x7d, 0x8a, 0x3e, 0x0b, - 0x47, 0x8e, 0x3d, 0x56, 0xf0, 0x22, 0x95, 0xd7, 0xeb, 0x64, 0x9d, 0xba, 0xaa, 0xc4, 0x25, 0x99, - 0x9d, 0x3f, 0xdf, 0x7c, 0xfb, 0xed, 0x8c, 0xe1, 0x8d, 0xc7, 0x6e, 0x6e, 0x58, 0x74, 0x19, 0x84, - 0x74, 0x37, 0xf9, 0x99, 0xc4, 0x4c, 0xb0, 0x5d, 0xf9, 0xcb, 0xa5, 0xa3, 0x2b, 0x6d, 0x5c, 0x76, - 0xa3, 0xbb, 0xc3, 0x20, 0xa4, 0xf6, 0x3e, 0xac, 0xf7, 0x43, 0xe6, 0x5d, 0x1f, 0x51, 0xe1, 0xd0, - 0xaf, 0x53, 0xca, 0x05, 0x9a, 0xb0, 0xcc, 0x27, 0xae, 0x47, 0xc7, 0xbe, 0x49, 0xda, 0xa4, 0x53, - 0x73, 0xb2, 0x23, 0x1a, 0x50, 0xf1, 0x02, 0xdf, 0x2c, 0xb7, 0x49, 0x67, 0xd5, 0x49, 0x4c, 0xfb, - 0x0b, 0x18, 0xf3, 0x72, 0x3e, 0x61, 0x11, 0xa7, 0x59, 0x16, 0x99, 0x65, 0x21, 0x42, 0xd5, 0x77, - 0x85, 0xab, 0x0a, 0xa5, 0x8d, 0xaf, 0xa1, 0xea, 0x31, 0x9f, 0x9a, 0x95, 0x36, 0xe9, 0x34, 0x7a, - 0x1b, 0x5d, 0x45, 0xa8, 0x3b, 0x18, 0x0f, 0x47, 0x71, 0xcc, 0x62, 0x47, 0x86, 0x6d, 0x47, 0x35, - 0xf8, 0x34, 0xe5, 0x57, 0xcf, 0x20, 0x38, 0x6b, 0x5d, 0x99, 0xb7, 0xb6, 0x37, 0x61, 0x43, 0xc3, - 0x4c, 0x59, 0xdb, 0x03, 0xd8, 0x94, 0x4e, 0x3e, 0xa4, 0x21, 0x15, 0xf4, 0xdf, 0xbd, 0x10, 0xaa, - 0x5e, 0xe0, 0x73, 0xb3, 0xdc, 0xae, 0x24, 0xc8, 0x89, 0x6d, 0x6f, 0x41, 0x33, 0x0f, 0xa2, 0xc0, - 0xfb, 0x80, 0xa9, 0x7f, 0x70, 0x45, 0xbd, 0xeb, 0xe7, 0x61, 0xbb, 0x19, 0x41, 0x85, 0xa1, 0xd4, - 0xfe, 0x00, 0x78, 0x21, 0xdd, 0x07, 0xdf, 0xdc, 0x20, 0x74, 0x2f, 0x82, 0x30, 0x10, 0x77, 0x26, - 0x69, 0x57, 0x3a, 0xf5, 0x9e, 0x35, 0x53, 0x55, 0x56, 0xea, 0x19, 0x4e, 0x41, 0x95, 0x7d, 0xae, - 0x84, 0xd1, 0x9d, 0x05, 0xcf, 0xb9, 0x07, 0x4b, 0x5c, 0xb8, 0x62, 0xca, 0xa5, 0xd0, 0x8d, 0xde, - 0xf6, 0xac, 0x8d, 0x5e, 0x78, 0x26, 0x53, 0x1c, 0x95, 0x6a, 0x1f, 0x28, 0x6c, 0xde, 0x0f, 0x22, - 0xff, 0x79, 0x0a, 0x34, 0x33, 0x15, 0x53, 0x08, 0xa5, 0x6d, 0x03, 0x56, 0x75, 0x55, 0xed, 0xb7, - 0xb0, 0x96, 0x57, 0xc8, 0x82, 0x15, 0x85, 0xca, 0xa5, 0x2e, 0x35, 0x67, 0x76, 0xde, 0xd9, 0x87, - 0x95, 0x51, 0x1c, 0x0f, 0x98, 0x4f, 0x39, 0x36, 0x00, 0x3e, 0x47, 0xf4, 0x76, 0x42, 0x3d, 0x41, - 0x7d, 0xa3, 0x84, 0xeb, 0x50, 0x1f, 0x8c, 0x87, 0x27, 0x4c, 0x1c, 0xb2, 0x69, 0xe4, 0x1b, 0x04, - 0x0d, 0xa8, 0xcb, 0xd1, 0x3c, 0xbd, 0xbc, 0xe4, 0x54, 0x18, 0xf7, 0x64, 0xa7, 0x0f, 0xf8, 0xe7, - 0x95, 0x71, 0x0d, 0x6a, 0x27, 0x4c, 0x8c, 0x6e, 0x03, 0x2e, 0xb8, 0x51, 0x42, 0x80, 0x25, 0x65, - 0x13, 0xdc, 0x80, 0xb5, 0xd4, 0x1e, 0x47, 0x67, 0x09, 0x07, 0xa3, 0xbc, 0x73, 0x0c, 0x2b, 0xd9, - 0xcc, 0x27, 0x14, 0x32, 0xfb, 0xf4, 0xda, 0x28, 0x61, 0x13, 0x8c, 0xec, 0xac, 0xf1, 0xd8, 0x02, - 0xcc, 0xbc, 0x1a, 0xe1, 0x72, 0xef, 0x47, 0x05, 0xaa, 0xc9, 0x33, 0xe0, 0x10, 0x6a, 0xa9, 0x50, - 0x47, 0x54, 0xa0, 0x99, 0x1f, 0x82, 0xf9, 0xa2, 0x5b, 0x2f, 0x0a, 0x22, 0xa9, 0x66, 0x1d, 0xf2, - 0x8e, 0x60, 0x5f, 0xa1, 0x24, 0x6b, 0x82, 0x0b, 0xb9, 0xda, 0x3a, 0x5a, 0x56, 0x51, 0x48, 0x69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4c, 0x21, 0xb5, 0x4f, 0x2e, 0x8c, 0x02, 0x36, 0xc0, 0x48, 0xcf, 0x1a, 0x8f, 0x0d, + 0xc0, 0xd4, 0xab, 0x11, 0x2e, 0x76, 0x7f, 0x95, 0xa0, 0x7c, 0xe8, 0x07, 0x14, 0x0f, 0xa1, 0x9a, + 0x08, 0x75, 0x44, 0x05, 0x3e, 0x9f, 0x1b, 0x83, 0x6c, 0xd9, 0x4d, 0x33, 0x2f, 0x94, 0xa8, 0xd6, + 0x26, 0xaf, 0x08, 0x0e, 0x14, 0x4e, 0xbc, 0x2a, 0x38, 0x9f, 0xac, 0xed, 0xa4, 0xb9, 0x99, 0x1b, + 0x53, 0xfa, 0xbf, 0x87, 0x9a, 0x36, 0xba, 0xb8, 0x35, 0x97, 0x3b, 0xb3, 0x15, 0xe6, 0x8b, 0x27, + 0xa2, 0x0a, 0xeb, 0x08, 0x20, 0x1b, 0x01, 0x9c, 0x6f, 0xab, 0xcf, 0x96, 0xb9, 0x95, 0x1f, 0x54, + 0x40, 0x1f, 0x61, 0x59, 0xdf, 0x55, 0x7c, 0xd4, 0x77, 0xe6, 0x21, 0x30, 0xad, 0xa7, 0xc2, 0x0a, + 0xee, 0x2d, 0xfc, 0x97, 0xdc, 0x6e, 0x43, 0x7b, 0xcb, 0xf4, 0x7b, 0x3d, 0x7b, 0xe4, 0x4f, 0x2a, + 0x7b, 0x9d, 0x9b, 0x3b, 0x8b, 0xdc, 0xde, 0x59, 0xe4, 0xcf, 0x9d, 0x45, 0x7e, 0xde, 0x5b, 0x85, + 0xdb, 0x7b, 0xab, 0xf0, 0xfb, 0xde, 0x2a, 0x7c, 0x69, 0xe4, 0xbd, 0xe7, 0xe3, 0x25, 0xf9, 0xf3, + 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x15, 0xd1, 0x3a, 0x81, 0xee, 0x05, 0x00, 0x00, } func (m *BlockGetRequest) Marshal() (dAtA []byte, err error) { diff --git a/commonfile/fileproto/file_drpc.pb.go b/commonfile/fileproto/file_drpc.pb.go index d513694f..be82842c 100644 --- a/commonfile/fileproto/file_drpc.pb.go +++ b/commonfile/fileproto/file_drpc.pb.go @@ -59,7 +59,7 @@ func NewDRPCFileClient(cc drpc.Conn) DRPCFileClient { func (c *drpcFileClient) DRPCConn() drpc.Conn { return c.cc } func (c *drpcFileClient) BlocksGet(ctx context.Context) (DRPCFile_BlocksGetClient, error) { - stream, err := c.cc.NewStream(ctx, "/anyFile.File/BlocksGet", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}) + stream, err := c.cc.NewStream(ctx, "/filesync.File/BlocksGet", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}) if err != nil { return nil, err } @@ -95,7 +95,7 @@ func (x *drpcFile_BlocksGetClient) RecvMsg(m *BlockGetResponse) error { func (c *drpcFileClient) BlockPush(ctx context.Context, in *BlockPushRequest) (*BlockPushResponse, error) { out := new(BlockPushResponse) - err := c.cc.Invoke(ctx, "/anyFile.File/BlockPush", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, in, out) + err := c.cc.Invoke(ctx, "/filesync.File/BlockPush", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, in, out) if err != nil { return nil, err } @@ -104,7 +104,7 @@ func (c *drpcFileClient) BlockPush(ctx context.Context, in *BlockPushRequest) (* func (c *drpcFileClient) BlocksCheck(ctx context.Context, in *BlocksCheckRequest) (*BlocksCheckResponse, error) { out := new(BlocksCheckResponse) - err := c.cc.Invoke(ctx, "/anyFile.File/BlocksCheck", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, in, out) + err := c.cc.Invoke(ctx, "/filesync.File/BlocksCheck", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, in, out) if err != nil { return nil, err } @@ -113,7 +113,7 @@ func (c *drpcFileClient) BlocksCheck(ctx context.Context, in *BlocksCheckRequest func (c *drpcFileClient) BlocksBind(ctx context.Context, in *BlocksBindRequest) (*BlocksBindResponse, error) { out := new(BlocksBindResponse) - err := c.cc.Invoke(ctx, "/anyFile.File/BlocksBind", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, in, out) + err := c.cc.Invoke(ctx, "/filesync.File/BlocksBind", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, in, out) if err != nil { return nil, err } @@ -122,7 +122,7 @@ func (c *drpcFileClient) BlocksBind(ctx context.Context, in *BlocksBindRequest) func (c *drpcFileClient) BlocksDelete(ctx context.Context, in *BlocksDeleteRequest) (*BlocksDeleteResponse, error) { out := new(BlocksDeleteResponse) - err := c.cc.Invoke(ctx, "/anyFile.File/BlocksDelete", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, in, out) + err := c.cc.Invoke(ctx, "/filesync.File/BlocksDelete", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, in, out) if err != nil { return nil, err } @@ -131,7 +131,7 @@ func (c *drpcFileClient) BlocksDelete(ctx context.Context, in *BlocksDeleteReque func (c *drpcFileClient) Check(ctx context.Context, in *CheckRequest) (*CheckResponse, error) { out := new(CheckResponse) - err := c.cc.Invoke(ctx, "/anyFile.File/Check", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, in, out) + err := c.cc.Invoke(ctx, "/filesync.File/Check", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, in, out) if err != nil { return nil, err } @@ -180,7 +180,7 @@ func (DRPCFileDescription) NumMethods() int { return 6 } func (DRPCFileDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) { switch n { case 0: - return "/anyFile.File/BlocksGet", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, + return "/filesync.File/BlocksGet", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return nil, srv.(DRPCFileServer). BlocksGet( @@ -188,7 +188,7 @@ func (DRPCFileDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, ) }, DRPCFileServer.BlocksGet, true case 1: - return "/anyFile.File/BlockPush", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, + return "/filesync.File/BlockPush", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCFileServer). BlockPush( @@ -197,7 +197,7 @@ func (DRPCFileDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, ) }, DRPCFileServer.BlockPush, true case 2: - return "/anyFile.File/BlocksCheck", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, + return "/filesync.File/BlocksCheck", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCFileServer). BlocksCheck( @@ -206,7 +206,7 @@ func (DRPCFileDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, ) }, DRPCFileServer.BlocksCheck, true case 3: - return "/anyFile.File/BlocksBind", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, + return "/filesync.File/BlocksBind", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCFileServer). BlocksBind( @@ -215,7 +215,7 @@ func (DRPCFileDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, ) }, DRPCFileServer.BlocksBind, true case 4: - return "/anyFile.File/BlocksDelete", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, + return "/filesync.File/BlocksDelete", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCFileServer). BlocksDelete( @@ -224,7 +224,7 @@ func (DRPCFileDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, ) }, DRPCFileServer.BlocksDelete, true case 5: - return "/anyFile.File/Check", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, + return "/filesync.File/Check", drpcEncoding_File_commonfile_fileproto_protos_file_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCFileServer). Check( diff --git a/commonfile/fileproto/protos/file.proto b/commonfile/fileproto/protos/file.proto index 47cfe50a..5b7369ef 100644 --- a/commonfile/fileproto/protos/file.proto +++ b/commonfile/fileproto/protos/file.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package anyFile; +package filesync; option go_package = "commonfile/fileproto";