From 15856087222378dba26cca13e6bd38bcb9892761 Mon Sep 17 00:00:00 2001 From: "Federico M. Facca" Date: Wed, 4 Oct 2023 18:16:59 +0200 Subject: [PATCH] fix lint issues from buf --- pkg/conf/{ => v1}/conf2.pb.go | 154 ++++++++++----------- pkg/conf/{ => v1}/conf2_test.go | 0 pkg/data/{ => v1}/data.pb.go | 234 ++++++++++++++++---------------- pkg/data/{ => v1}/data_test.go | 0 pkg/task/{ => v1}/task.pb.go | 170 +++++++++++------------ pkg/task/{ => v1}/task_test.go | 0 proto/conf/{ => v1}/conf2.proto | 0 proto/data/{ => v1}/data.proto | 0 proto/task/{ => v1}/task.proto | 0 9 files changed, 279 insertions(+), 279 deletions(-) rename pkg/conf/{ => v1}/conf2.pb.go (58%) rename pkg/conf/{ => v1}/conf2_test.go (100%) rename pkg/data/{ => v1}/data.pb.go (52%) rename pkg/data/{ => v1}/data_test.go (100%) rename pkg/task/{ => v1}/task.pb.go (56%) rename pkg/task/{ => v1}/task_test.go (100%) rename proto/conf/{ => v1}/conf2.proto (100%) rename proto/data/{ => v1}/data.proto (100%) rename proto/task/{ => v1}/task.proto (100%) diff --git a/pkg/conf/conf2.pb.go b/pkg/conf/v1/conf2.pb.go similarity index 58% rename from pkg/conf/conf2.pb.go rename to pkg/conf/v1/conf2.pb.go index a6c2867..f1c8607 100644 --- a/pkg/conf/conf2.pb.go +++ b/pkg/conf/v1/conf2.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.30.0 // protoc v3.21.12 -// source: conf/conf2.proto +// source: conf/v1/conf2.proto package conf @@ -33,7 +33,7 @@ type Conf2Frame struct { func (x *Conf2Frame) Reset() { *x = Conf2Frame{} if protoimpl.UnsafeEnabled { - mi := &file_conf_conf2_proto_msgTypes[0] + mi := &file_conf_v1_conf2_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -46,7 +46,7 @@ func (x *Conf2Frame) String() string { func (*Conf2Frame) ProtoMessage() {} func (x *Conf2Frame) ProtoReflect() protoreflect.Message { - mi := &file_conf_conf2_proto_msgTypes[0] + mi := &file_conf_v1_conf2_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -59,7 +59,7 @@ func (x *Conf2Frame) ProtoReflect() protoreflect.Message { // Deprecated: Use Conf2Frame.ProtoReflect.Descriptor instead. func (*Conf2Frame) Descriptor() ([]byte, []int) { - return file_conf_conf2_proto_rawDescGZIP(), []int{0} + return file_conf_v1_conf2_proto_rawDescGZIP(), []int{0} } func (x *Conf2Frame) GetHeader() *Conf2Header { @@ -100,7 +100,7 @@ type Conf2Header struct { func (x *Conf2Header) Reset() { *x = Conf2Header{} if protoimpl.UnsafeEnabled { - mi := &file_conf_conf2_proto_msgTypes[1] + mi := &file_conf_v1_conf2_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -113,7 +113,7 @@ func (x *Conf2Header) String() string { func (*Conf2Header) ProtoMessage() {} func (x *Conf2Header) ProtoReflect() protoreflect.Message { - mi := &file_conf_conf2_proto_msgTypes[1] + mi := &file_conf_v1_conf2_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -126,7 +126,7 @@ func (x *Conf2Header) ProtoReflect() protoreflect.Message { // Deprecated: Use Conf2Header.ProtoReflect.Descriptor instead. func (*Conf2Header) Descriptor() ([]byte, []int) { - return file_conf_conf2_proto_rawDescGZIP(), []int{1} + return file_conf_v1_conf2_proto_rawDescGZIP(), []int{1} } func (x *Conf2Header) GetSYNC() uint32 { @@ -200,7 +200,7 @@ type Config struct { func (x *Config) Reset() { *x = Config{} if protoimpl.UnsafeEnabled { - mi := &file_conf_conf2_proto_msgTypes[2] + mi := &file_conf_v1_conf2_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -213,7 +213,7 @@ func (x *Config) String() string { func (*Config) ProtoMessage() {} func (x *Config) ProtoReflect() protoreflect.Message { - mi := &file_conf_conf2_proto_msgTypes[2] + mi := &file_conf_v1_conf2_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -226,7 +226,7 @@ func (x *Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Config.ProtoReflect.Descriptor instead. func (*Config) Descriptor() ([]byte, []int) { - return file_conf_conf2_proto_rawDescGZIP(), []int{2} + return file_conf_v1_conf2_proto_rawDescGZIP(), []int{2} } func (x *Config) GetSTN() string { @@ -313,71 +313,71 @@ func (x *Config) GetCFGCNT() uint32 { return 0 } -var File_conf_conf2_proto protoreflect.FileDescriptor - -var file_conf_conf2_proto_rawDesc = []byte{ - 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x32, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x76, 0x31, 0x22, 0x82, 0x01, 0x0a, 0x0a, - 0x43, 0x6f, 0x6e, 0x66, 0x32, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6e, - 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x32, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x52, 0x41, 0x54, 0x45, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x44, 0x41, 0x54, 0x41, 0x52, 0x41, 0x54, 0x45, - 0x22, 0xb9, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x32, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x12, 0x12, 0x0a, 0x04, 0x53, 0x59, 0x4e, 0x43, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, - 0x53, 0x59, 0x4e, 0x43, 0x12, 0x1c, 0x0a, 0x09, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x53, 0x49, 0x5a, - 0x45, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x53, 0x49, - 0x5a, 0x45, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x44, 0x43, 0x4f, 0x44, 0x45, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x06, 0x49, 0x44, 0x43, 0x4f, 0x44, 0x45, 0x12, 0x10, 0x0a, 0x03, 0x53, 0x4f, - 0x43, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x53, 0x4f, 0x43, 0x12, 0x18, 0x0a, 0x07, - 0x46, 0x52, 0x41, 0x43, 0x53, 0x45, 0x43, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x46, - 0x52, 0x41, 0x43, 0x53, 0x45, 0x43, 0x12, 0x1b, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x42, - 0x41, 0x53, 0x45, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x54, 0x49, 0x4d, 0x45, 0x42, - 0x41, 0x53, 0x45, 0x12, 0x17, 0x0a, 0x07, 0x4e, 0x55, 0x4d, 0x5f, 0x50, 0x4d, 0x55, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x4e, 0x55, 0x4d, 0x50, 0x4d, 0x55, 0x22, 0x98, 0x02, 0x0a, - 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x53, 0x54, 0x4e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x53, 0x54, 0x4e, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x44, 0x43, - 0x4f, 0x44, 0x45, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x49, 0x44, 0x43, 0x4f, 0x44, - 0x45, 0x12, 0x16, 0x0a, 0x06, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x06, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x48, 0x4e, - 0x4d, 0x52, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x50, 0x48, 0x4e, 0x4d, 0x52, 0x12, - 0x14, 0x0a, 0x05, 0x41, 0x4e, 0x4e, 0x4d, 0x52, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, - 0x41, 0x4e, 0x4e, 0x4d, 0x52, 0x12, 0x14, 0x0a, 0x05, 0x44, 0x47, 0x4e, 0x4d, 0x52, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x44, 0x47, 0x4e, 0x4d, 0x52, 0x12, 0x14, 0x0a, 0x05, 0x43, - 0x48, 0x4e, 0x41, 0x4d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x43, 0x48, 0x4e, 0x41, - 0x4d, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x48, 0x55, 0x4e, 0x49, 0x54, 0x18, 0x08, 0x20, 0x03, 0x28, - 0x0d, 0x52, 0x06, 0x50, 0x48, 0x55, 0x4e, 0x49, 0x54, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x4e, 0x55, - 0x4e, 0x49, 0x54, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x41, 0x4e, 0x55, 0x4e, 0x49, - 0x54, 0x12, 0x18, 0x0a, 0x07, 0x44, 0x49, 0x47, 0x55, 0x4e, 0x49, 0x54, 0x18, 0x0a, 0x20, 0x03, - 0x28, 0x0d, 0x52, 0x07, 0x44, 0x49, 0x47, 0x55, 0x4e, 0x49, 0x54, 0x12, 0x12, 0x0a, 0x04, 0x46, - 0x4e, 0x4f, 0x4d, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x46, 0x4e, 0x4f, 0x4d, 0x12, - 0x16, 0x0a, 0x06, 0x43, 0x46, 0x47, 0x43, 0x4e, 0x54, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x06, 0x43, 0x46, 0x47, 0x43, 0x4e, 0x54, 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x2f, 0x63, 0x6f, 0x6e, - 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_conf_v1_conf2_proto protoreflect.FileDescriptor + +var file_conf_v1_conf2_proto_rawDesc = []byte{ + 0x0a, 0x13, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x32, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x76, 0x31, 0x22, 0x82, + 0x01, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x66, 0x32, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, + 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x32, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x07, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x63, + 0x6f, 0x6e, 0x66, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x52, + 0x41, 0x54, 0x45, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x44, 0x41, 0x54, 0x41, 0x52, + 0x41, 0x54, 0x45, 0x22, 0xb9, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x32, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x59, 0x4e, 0x43, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x04, 0x53, 0x59, 0x4e, 0x43, 0x12, 0x1c, 0x0a, 0x09, 0x46, 0x52, 0x41, 0x4d, 0x45, + 0x53, 0x49, 0x5a, 0x45, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x46, 0x52, 0x41, 0x4d, + 0x45, 0x53, 0x49, 0x5a, 0x45, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x44, 0x43, 0x4f, 0x44, 0x45, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x49, 0x44, 0x43, 0x4f, 0x44, 0x45, 0x12, 0x10, 0x0a, + 0x03, 0x53, 0x4f, 0x43, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x53, 0x4f, 0x43, 0x12, + 0x18, 0x0a, 0x07, 0x46, 0x52, 0x41, 0x43, 0x53, 0x45, 0x43, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x07, 0x46, 0x52, 0x41, 0x43, 0x53, 0x45, 0x43, 0x12, 0x1b, 0x0a, 0x09, 0x54, 0x49, 0x4d, + 0x45, 0x5f, 0x42, 0x41, 0x53, 0x45, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x54, 0x49, + 0x4d, 0x45, 0x42, 0x41, 0x53, 0x45, 0x12, 0x17, 0x0a, 0x07, 0x4e, 0x55, 0x4d, 0x5f, 0x50, 0x4d, + 0x55, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x4e, 0x55, 0x4d, 0x50, 0x4d, 0x55, 0x22, + 0x98, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x53, 0x54, + 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x53, 0x54, 0x4e, 0x12, 0x16, 0x0a, 0x06, + 0x49, 0x44, 0x43, 0x4f, 0x44, 0x45, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x49, 0x44, + 0x43, 0x4f, 0x44, 0x45, 0x12, 0x16, 0x0a, 0x06, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x12, 0x14, 0x0a, 0x05, + 0x50, 0x48, 0x4e, 0x4d, 0x52, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x50, 0x48, 0x4e, + 0x4d, 0x52, 0x12, 0x14, 0x0a, 0x05, 0x41, 0x4e, 0x4e, 0x4d, 0x52, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x05, 0x41, 0x4e, 0x4e, 0x4d, 0x52, 0x12, 0x14, 0x0a, 0x05, 0x44, 0x47, 0x4e, 0x4d, + 0x52, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x44, 0x47, 0x4e, 0x4d, 0x52, 0x12, 0x14, + 0x0a, 0x05, 0x43, 0x48, 0x4e, 0x41, 0x4d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x43, + 0x48, 0x4e, 0x41, 0x4d, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x48, 0x55, 0x4e, 0x49, 0x54, 0x18, 0x08, + 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x50, 0x48, 0x55, 0x4e, 0x49, 0x54, 0x12, 0x16, 0x0a, 0x06, + 0x41, 0x4e, 0x55, 0x4e, 0x49, 0x54, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x41, 0x4e, + 0x55, 0x4e, 0x49, 0x54, 0x12, 0x18, 0x0a, 0x07, 0x44, 0x49, 0x47, 0x55, 0x4e, 0x49, 0x54, 0x18, + 0x0a, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x44, 0x49, 0x47, 0x55, 0x4e, 0x49, 0x54, 0x12, 0x12, + 0x0a, 0x04, 0x46, 0x4e, 0x4f, 0x4d, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x46, 0x4e, + 0x4f, 0x4d, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x46, 0x47, 0x43, 0x4e, 0x54, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x06, 0x43, 0x46, 0x47, 0x43, 0x4e, 0x54, 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x2f, + 0x63, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_conf_conf2_proto_rawDescOnce sync.Once - file_conf_conf2_proto_rawDescData = file_conf_conf2_proto_rawDesc + file_conf_v1_conf2_proto_rawDescOnce sync.Once + file_conf_v1_conf2_proto_rawDescData = file_conf_v1_conf2_proto_rawDesc ) -func file_conf_conf2_proto_rawDescGZIP() []byte { - file_conf_conf2_proto_rawDescOnce.Do(func() { - file_conf_conf2_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_conf2_proto_rawDescData) +func file_conf_v1_conf2_proto_rawDescGZIP() []byte { + file_conf_v1_conf2_proto_rawDescOnce.Do(func() { + file_conf_v1_conf2_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_conf2_proto_rawDescData) }) - return file_conf_conf2_proto_rawDescData + return file_conf_v1_conf2_proto_rawDescData } -var file_conf_conf2_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_conf_conf2_proto_goTypes = []interface{}{ +var file_conf_v1_conf2_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_conf_v1_conf2_proto_goTypes = []interface{}{ (*Conf2Frame)(nil), // 0: conf.v1.Conf2Frame (*Conf2Header)(nil), // 1: conf.v1.Conf2Header (*Config)(nil), // 2: conf.v1.Config } -var file_conf_conf2_proto_depIdxs = []int32{ +var file_conf_v1_conf2_proto_depIdxs = []int32{ 1, // 0: conf.v1.Conf2Frame.header:type_name -> conf.v1.Conf2Header 2, // 1: conf.v1.Conf2Frame.configs:type_name -> conf.v1.Config 2, // [2:2] is the sub-list for method output_type @@ -387,13 +387,13 @@ var file_conf_conf2_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_conf_conf2_proto_init() } -func file_conf_conf2_proto_init() { - if File_conf_conf2_proto != nil { +func init() { file_conf_v1_conf2_proto_init() } +func file_conf_v1_conf2_proto_init() { + if File_conf_v1_conf2_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_conf_conf2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_conf_v1_conf2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Conf2Frame); i { case 0: return &v.state @@ -405,7 +405,7 @@ func file_conf_conf2_proto_init() { return nil } } - file_conf_conf2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_conf_v1_conf2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Conf2Header); i { case 0: return &v.state @@ -417,7 +417,7 @@ func file_conf_conf2_proto_init() { return nil } } - file_conf_conf2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_conf_v1_conf2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Config); i { case 0: return &v.state @@ -434,18 +434,18 @@ func file_conf_conf2_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_conf_conf2_proto_rawDesc, + RawDescriptor: file_conf_v1_conf2_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_conf_conf2_proto_goTypes, - DependencyIndexes: file_conf_conf2_proto_depIdxs, - MessageInfos: file_conf_conf2_proto_msgTypes, + GoTypes: file_conf_v1_conf2_proto_goTypes, + DependencyIndexes: file_conf_v1_conf2_proto_depIdxs, + MessageInfos: file_conf_v1_conf2_proto_msgTypes, }.Build() - File_conf_conf2_proto = out.File - file_conf_conf2_proto_rawDesc = nil - file_conf_conf2_proto_goTypes = nil - file_conf_conf2_proto_depIdxs = nil + File_conf_v1_conf2_proto = out.File + file_conf_v1_conf2_proto_rawDesc = nil + file_conf_v1_conf2_proto_goTypes = nil + file_conf_v1_conf2_proto_depIdxs = nil } diff --git a/pkg/conf/conf2_test.go b/pkg/conf/v1/conf2_test.go similarity index 100% rename from pkg/conf/conf2_test.go rename to pkg/conf/v1/conf2_test.go diff --git a/pkg/data/data.pb.go b/pkg/data/v1/data.pb.go similarity index 52% rename from pkg/data/data.pb.go rename to pkg/data/v1/data.pb.go index d04a83e..2d1702f 100644 --- a/pkg/data/data.pb.go +++ b/pkg/data/v1/data.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.30.0 // protoc v3.21.12 -// source: data/data.proto +// source: data/v1/data.proto package data @@ -173,11 +173,11 @@ func (x DataType) String() string { } func (DataType) Descriptor() protoreflect.EnumDescriptor { - return file_data_data_proto_enumTypes[0].Descriptor() + return file_data_v1_data_proto_enumTypes[0].Descriptor() } func (DataType) Type() protoreflect.EnumType { - return &file_data_data_proto_enumTypes[0] + return &file_data_v1_data_proto_enumTypes[0] } func (x DataType) Number() protoreflect.EnumNumber { @@ -186,7 +186,7 @@ func (x DataType) Number() protoreflect.EnumNumber { // Deprecated: Use DataType.Descriptor instead. func (DataType) EnumDescriptor() ([]byte, []int) { - return file_data_data_proto_rawDescGZIP(), []int{0} + return file_data_v1_data_proto_rawDescGZIP(), []int{0} } type Data struct { @@ -202,7 +202,7 @@ type Data struct { func (x *Data) Reset() { *x = Data{} if protoimpl.UnsafeEnabled { - mi := &file_data_data_proto_msgTypes[0] + mi := &file_data_v1_data_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -215,7 +215,7 @@ func (x *Data) String() string { func (*Data) ProtoMessage() {} func (x *Data) ProtoReflect() protoreflect.Message { - mi := &file_data_data_proto_msgTypes[0] + mi := &file_data_v1_data_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -228,7 +228,7 @@ func (x *Data) ProtoReflect() protoreflect.Message { // Deprecated: Use Data.ProtoReflect.Descriptor instead. func (*Data) Descriptor() ([]byte, []int) { - return file_data_data_proto_rawDescGZIP(), []int{0} + return file_data_v1_data_proto_rawDescGZIP(), []int{0} } func (x *Data) GetDataType() DataType { @@ -264,7 +264,7 @@ type DataSet struct { func (x *DataSet) Reset() { *x = DataSet{} if protoimpl.UnsafeEnabled { - mi := &file_data_data_proto_msgTypes[1] + mi := &file_data_v1_data_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -277,7 +277,7 @@ func (x *DataSet) String() string { func (*DataSet) ProtoMessage() {} func (x *DataSet) ProtoReflect() protoreflect.Message { - mi := &file_data_data_proto_msgTypes[1] + mi := &file_data_v1_data_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -290,7 +290,7 @@ func (x *DataSet) ProtoReflect() protoreflect.Message { // Deprecated: Use DataSet.ProtoReflect.Descriptor instead. func (*DataSet) Descriptor() ([]byte, []int) { - return file_data_data_proto_rawDescGZIP(), []int{1} + return file_data_v1_data_proto_rawDescGZIP(), []int{1} } func (x *DataSet) GetProducerId() string { @@ -307,111 +307,111 @@ func (x *DataSet) GetData() map[string]*Data { return nil } -var File_data_data_proto protoreflect.FileDescriptor - -var file_data_data_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x07, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x22, 0x7a, 0x0a, 0x04, 0x44, 0x61, - 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x64, 0x41, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x64, 0x41, - 0x74, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, - 0x48, 0x00, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x07, 0x44, 0x61, 0x74, 0x61, 0x53, - 0x65, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x49, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, - 0x65, 0x74, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x1a, 0x46, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x23, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x94, 0x07, 0x0a, 0x08, 0x44, - 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x43, 0x54, 0x49, 0x56, - 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4e, 0x47, - 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55, 0x54, 0x4f, 0x4d, 0x41, 0x54, 0x49, - 0x43, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x03, - 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, - 0x45, 0x10, 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x5f, 0x53, - 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x4e, 0x45, 0x47, 0x41, 0x54, 0x49, 0x56, 0x45, - 0x10, 0x05, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x45, - 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x56, 0x45, 0x10, - 0x06, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x45, 0x51, - 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x07, 0x12, 0x0e, 0x0a, 0x0a, - 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x08, 0x12, 0x11, 0x0a, 0x0d, - 0x44, 0x41, 0x54, 0x41, 0x5f, 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x09, 0x12, - 0x10, 0x0a, 0x0c, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x52, 0x54, 0x49, 0x4e, 0x47, 0x10, - 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x4e, 0x45, 0x52, 0x47, 0x59, 0x10, 0x0b, 0x12, 0x0d, 0x0a, - 0x09, 0x46, 0x52, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x59, 0x10, 0x0c, 0x12, 0x10, 0x0a, 0x0c, - 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x10, 0x0d, 0x12, 0x18, - 0x0a, 0x14, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x56, - 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x10, 0x0e, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x43, 0x41, - 0x4c, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0f, 0x12, 0x13, 0x0a, - 0x0f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x55, 0x4e, 0x54, - 0x10, 0x10, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x4c, 0x41, 0x54, - 0x45, 0x4e, 0x43, 0x59, 0x10, 0x11, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, - 0x56, 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x10, 0x12, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x48, 0x41, - 0x53, 0x4f, 0x52, 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x10, 0x13, 0x12, 0x12, 0x0a, - 0x0e, 0x50, 0x48, 0x41, 0x53, 0x4f, 0x52, 0x5f, 0x56, 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x10, - 0x14, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x4d, 0x55, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x15, 0x12, - 0x14, 0x0a, 0x10, 0x50, 0x4d, 0x55, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x51, 0x55, 0x41, 0x4c, - 0x49, 0x54, 0x59, 0x10, 0x16, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x4d, 0x55, 0x5f, 0x54, 0x52, 0x49, - 0x47, 0x47, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x17, 0x12, - 0x09, 0x0a, 0x05, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x18, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x4f, - 0x57, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x19, 0x12, 0x0c, 0x0a, 0x08, - 0x50, 0x52, 0x45, 0x53, 0x53, 0x55, 0x52, 0x45, 0x10, 0x1a, 0x12, 0x1f, 0x0a, 0x1b, 0x52, 0x41, - 0x54, 0x45, 0x5f, 0x4f, 0x46, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x4f, 0x46, 0x5f, - 0x46, 0x52, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x59, 0x10, 0x1b, 0x12, 0x12, 0x0a, 0x0e, 0x52, - 0x45, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x1c, 0x12, - 0x13, 0x0a, 0x0f, 0x53, 0x57, 0x49, 0x54, 0x43, 0x48, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, - 0x4f, 0x4e, 0x10, 0x1d, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x41, 0x50, 0x5f, 0x50, 0x4f, 0x53, 0x49, - 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x1e, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x45, 0x4d, 0x50, 0x45, 0x52, - 0x41, 0x54, 0x55, 0x52, 0x45, 0x10, 0x1f, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x48, 0x52, 0x45, 0x45, - 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x50, 0x4f, - 0x57, 0x45, 0x52, 0x10, 0x20, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x48, 0x52, 0x45, 0x45, 0x5f, 0x50, - 0x48, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x10, 0x21, 0x12, 0x15, - 0x0a, 0x11, 0x54, 0x48, 0x52, 0x45, 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x4f, - 0x57, 0x45, 0x52, 0x10, 0x22, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x48, 0x52, 0x45, 0x45, 0x5f, 0x50, - 0x48, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x43, 0x54, 0x4f, - 0x52, 0x10, 0x23, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x48, 0x52, 0x45, 0x45, 0x5f, 0x50, 0x48, 0x41, - 0x53, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, - 0x52, 0x10, 0x24, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x52, - 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x10, 0x25, 0x12, 0x11, 0x0a, 0x0d, 0x55, 0x4e, 0x4c, 0x4f, 0x43, - 0x4b, 0x45, 0x44, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x26, 0x12, 0x1d, 0x0a, 0x19, 0x56, 0x4f, - 0x4c, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x4e, - 0x45, 0x47, 0x41, 0x54, 0x49, 0x56, 0x45, 0x10, 0x27, 0x12, 0x1d, 0x0a, 0x19, 0x56, 0x4f, 0x4c, - 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x4f, - 0x53, 0x49, 0x54, 0x49, 0x56, 0x45, 0x10, 0x28, 0x12, 0x19, 0x0a, 0x15, 0x56, 0x4f, 0x4c, 0x54, - 0x41, 0x47, 0x45, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x5a, 0x45, 0x52, - 0x4f, 0x10, 0x29, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x43, 0x52, 0x45, 0x54, 0x45, 0x10, - 0x2a, 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, +var File_data_v1_data_proto protoreflect.FileDescriptor + +var file_data_v1_data_proto_rawDesc = []byte{ + 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x22, 0x7a, 0x0a, + 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x64, + 0x41, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, + 0x65, 0x64, 0x41, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, + 0x08, 0x0a, 0x06, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x07, 0x44, 0x61, + 0x74, 0x61, 0x53, 0x65, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, + 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, + 0x63, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, + 0x74, 0x61, 0x53, 0x65, 0x74, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x46, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x94, 0x07, + 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x43, + 0x54, 0x49, 0x56, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, + 0x41, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55, 0x54, 0x4f, 0x4d, + 0x41, 0x54, 0x49, 0x43, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, + 0x4e, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x5f, 0x43, 0x48, + 0x41, 0x4e, 0x47, 0x45, 0x10, 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, + 0x54, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x4e, 0x45, 0x47, 0x41, 0x54, + 0x49, 0x56, 0x45, 0x10, 0x05, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, + 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, + 0x56, 0x45, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x5f, + 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x07, 0x12, + 0x0e, 0x0a, 0x0a, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x08, 0x12, + 0x11, 0x0a, 0x0d, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x09, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x52, 0x54, 0x49, + 0x4e, 0x47, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x4e, 0x45, 0x52, 0x47, 0x59, 0x10, 0x0b, + 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x52, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x59, 0x10, 0x0c, 0x12, + 0x10, 0x0a, 0x0c, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x10, + 0x0d, 0x12, 0x18, 0x0a, 0x14, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x4c, 0x49, 0x4e, + 0x45, 0x5f, 0x56, 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x10, 0x0e, 0x12, 0x13, 0x0a, 0x0f, 0x4c, + 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0f, + 0x12, 0x13, 0x0a, 0x0f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, + 0x55, 0x4e, 0x54, 0x10, 0x10, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, + 0x4c, 0x41, 0x54, 0x45, 0x4e, 0x43, 0x59, 0x10, 0x11, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, 0x41, + 0x53, 0x45, 0x5f, 0x56, 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x10, 0x12, 0x12, 0x12, 0x0a, 0x0e, + 0x50, 0x48, 0x41, 0x53, 0x4f, 0x52, 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x10, 0x13, + 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x48, 0x41, 0x53, 0x4f, 0x52, 0x5f, 0x56, 0x4f, 0x4c, 0x54, 0x41, + 0x47, 0x45, 0x10, 0x14, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x4d, 0x55, 0x5f, 0x53, 0x59, 0x4e, 0x43, + 0x10, 0x15, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x4d, 0x55, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x51, + 0x55, 0x41, 0x4c, 0x49, 0x54, 0x59, 0x10, 0x16, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x4d, 0x55, 0x5f, + 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44, + 0x10, 0x17, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x18, 0x12, 0x10, 0x0a, + 0x0c, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x19, 0x12, + 0x0c, 0x0a, 0x08, 0x50, 0x52, 0x45, 0x53, 0x53, 0x55, 0x52, 0x45, 0x10, 0x1a, 0x12, 0x1f, 0x0a, + 0x1b, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x4f, 0x46, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, + 0x4f, 0x46, 0x5f, 0x46, 0x52, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x59, 0x10, 0x1b, 0x12, 0x12, + 0x0a, 0x0e, 0x52, 0x45, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, + 0x10, 0x1c, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x57, 0x49, 0x54, 0x43, 0x48, 0x5f, 0x50, 0x4f, 0x53, + 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x1d, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x41, 0x50, 0x5f, 0x50, + 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x1e, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x45, 0x4d, + 0x50, 0x45, 0x52, 0x41, 0x54, 0x55, 0x52, 0x45, 0x10, 0x1f, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x48, + 0x52, 0x45, 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, + 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x20, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x48, 0x52, 0x45, + 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x10, + 0x21, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x48, 0x52, 0x45, 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, + 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x22, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x48, 0x52, 0x45, + 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, 0x46, 0x41, + 0x43, 0x54, 0x4f, 0x52, 0x10, 0x23, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x48, 0x52, 0x45, 0x45, 0x5f, + 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x50, + 0x4f, 0x57, 0x45, 0x52, 0x10, 0x24, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, + 0x52, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x10, 0x25, 0x12, 0x11, 0x0a, 0x0d, 0x55, 0x4e, + 0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x26, 0x12, 0x1d, 0x0a, + 0x19, 0x56, 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, + 0x45, 0x5f, 0x4e, 0x45, 0x47, 0x41, 0x54, 0x49, 0x56, 0x45, 0x10, 0x27, 0x12, 0x1d, 0x0a, 0x19, + 0x56, 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, + 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x56, 0x45, 0x10, 0x28, 0x12, 0x19, 0x0a, 0x15, 0x56, + 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, + 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x29, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x43, 0x52, 0x45, + 0x54, 0x45, 0x10, 0x2a, 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_data_data_proto_rawDescOnce sync.Once - file_data_data_proto_rawDescData = file_data_data_proto_rawDesc + file_data_v1_data_proto_rawDescOnce sync.Once + file_data_v1_data_proto_rawDescData = file_data_v1_data_proto_rawDesc ) -func file_data_data_proto_rawDescGZIP() []byte { - file_data_data_proto_rawDescOnce.Do(func() { - file_data_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_data_data_proto_rawDescData) +func file_data_v1_data_proto_rawDescGZIP() []byte { + file_data_v1_data_proto_rawDescOnce.Do(func() { + file_data_v1_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_data_v1_data_proto_rawDescData) }) - return file_data_data_proto_rawDescData + return file_data_v1_data_proto_rawDescData } -var file_data_data_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_data_data_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_data_data_proto_goTypes = []interface{}{ +var file_data_v1_data_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_data_v1_data_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_data_v1_data_proto_goTypes = []interface{}{ (DataType)(0), // 0: data.v1.DataType (*Data)(nil), // 1: data.v1.Data (*DataSet)(nil), // 2: data.v1.DataSet nil, // 3: data.v1.DataSet.DataEntry } -var file_data_data_proto_depIdxs = []int32{ +var file_data_v1_data_proto_depIdxs = []int32{ 0, // 0: data.v1.Data.dataType:type_name -> data.v1.DataType 3, // 1: data.v1.DataSet.data:type_name -> data.v1.DataSet.DataEntry 1, // 2: data.v1.DataSet.DataEntry.value:type_name -> data.v1.Data @@ -422,13 +422,13 @@ var file_data_data_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_data_data_proto_init() } -func file_data_data_proto_init() { - if File_data_data_proto != nil { +func init() { file_data_v1_data_proto_init() } +func file_data_v1_data_proto_init() { + if File_data_v1_data_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_data_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_data_v1_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Data); i { case 0: return &v.state @@ -440,7 +440,7 @@ func file_data_data_proto_init() { return nil } } - file_data_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_data_v1_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DataSet); i { case 0: return &v.state @@ -453,24 +453,24 @@ func file_data_data_proto_init() { } } } - file_data_data_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_data_v1_data_proto_msgTypes[0].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_data_data_proto_rawDesc, + RawDescriptor: file_data_v1_data_proto_rawDesc, NumEnums: 1, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_data_data_proto_goTypes, - DependencyIndexes: file_data_data_proto_depIdxs, - EnumInfos: file_data_data_proto_enumTypes, - MessageInfos: file_data_data_proto_msgTypes, + GoTypes: file_data_v1_data_proto_goTypes, + DependencyIndexes: file_data_v1_data_proto_depIdxs, + EnumInfos: file_data_v1_data_proto_enumTypes, + MessageInfos: file_data_v1_data_proto_msgTypes, }.Build() - File_data_data_proto = out.File - file_data_data_proto_rawDesc = nil - file_data_data_proto_goTypes = nil - file_data_data_proto_depIdxs = nil + File_data_v1_data_proto = out.File + file_data_v1_data_proto_rawDesc = nil + file_data_v1_data_proto_goTypes = nil + file_data_v1_data_proto_depIdxs = nil } diff --git a/pkg/data/data_test.go b/pkg/data/v1/data_test.go similarity index 100% rename from pkg/data/data_test.go rename to pkg/data/v1/data_test.go diff --git a/pkg/task/task.pb.go b/pkg/task/v1/task.pb.go similarity index 56% rename from pkg/task/task.pb.go rename to pkg/task/v1/task.pb.go index 8031ec8..9988c7d 100644 --- a/pkg/task/task.pb.go +++ b/pkg/task/v1/task.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.30.0 // protoc v3.21.12 -// source: task/task.proto +// source: task/v1/task.proto package task @@ -56,11 +56,11 @@ func (x TaskType) String() string { } func (TaskType) Descriptor() protoreflect.EnumDescriptor { - return file_task_task_proto_enumTypes[0].Descriptor() + return file_task_v1_task_proto_enumTypes[0].Descriptor() } func (TaskType) Type() protoreflect.EnumType { - return &file_task_task_proto_enumTypes[0] + return &file_task_v1_task_proto_enumTypes[0] } func (x TaskType) Number() protoreflect.EnumNumber { @@ -69,7 +69,7 @@ func (x TaskType) Number() protoreflect.EnumNumber { // Deprecated: Use TaskType.Descriptor instead. func (TaskType) EnumDescriptor() ([]byte, []int) { - return file_task_task_proto_rawDescGZIP(), []int{0} + return file_task_v1_task_proto_rawDescGZIP(), []int{0} } type NotificationType int32 @@ -105,11 +105,11 @@ func (x NotificationType) String() string { } func (NotificationType) Descriptor() protoreflect.EnumDescriptor { - return file_task_task_proto_enumTypes[1].Descriptor() + return file_task_v1_task_proto_enumTypes[1].Descriptor() } func (NotificationType) Type() protoreflect.EnumType { - return &file_task_task_proto_enumTypes[1] + return &file_task_v1_task_proto_enumTypes[1] } func (x NotificationType) Number() protoreflect.EnumNumber { @@ -118,7 +118,7 @@ func (x NotificationType) Number() protoreflect.EnumNumber { // Deprecated: Use NotificationType.Descriptor instead. func (NotificationType) EnumDescriptor() ([]byte, []int) { - return file_task_task_proto_rawDescGZIP(), []int{1} + return file_task_v1_task_proto_rawDescGZIP(), []int{1} } type Task struct { @@ -136,7 +136,7 @@ type Task struct { func (x *Task) Reset() { *x = Task{} if protoimpl.UnsafeEnabled { - mi := &file_task_task_proto_msgTypes[0] + mi := &file_task_v1_task_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -149,7 +149,7 @@ func (x *Task) String() string { func (*Task) ProtoMessage() {} func (x *Task) ProtoReflect() protoreflect.Message { - mi := &file_task_task_proto_msgTypes[0] + mi := &file_task_v1_task_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -162,7 +162,7 @@ func (x *Task) ProtoReflect() protoreflect.Message { // Deprecated: Use Task.ProtoReflect.Descriptor instead. func (*Task) Descriptor() ([]byte, []int) { - return file_task_task_proto_rawDescGZIP(), []int{0} + return file_task_v1_task_proto_rawDescGZIP(), []int{0} } func (x *Task) GetId() string { @@ -216,7 +216,7 @@ type Notification struct { func (x *Notification) Reset() { *x = Notification{} if protoimpl.UnsafeEnabled { - mi := &file_task_task_proto_msgTypes[1] + mi := &file_task_v1_task_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -229,7 +229,7 @@ func (x *Notification) String() string { func (*Notification) ProtoMessage() {} func (x *Notification) ProtoReflect() protoreflect.Message { - mi := &file_task_task_proto_msgTypes[1] + mi := &file_task_v1_task_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -242,7 +242,7 @@ func (x *Notification) ProtoReflect() protoreflect.Message { // Deprecated: Use Notification.ProtoReflect.Descriptor instead. func (*Notification) Descriptor() ([]byte, []int) { - return file_task_task_proto_rawDescGZIP(), []int{1} + return file_task_v1_task_proto_rawDescGZIP(), []int{1} } func (x *Notification) GetId() string { @@ -287,75 +287,75 @@ func (x *Notification) GetTimestampID() int64 { return 0 } -var File_task_task_proto protoreflect.FileDescriptor - -var file_task_task_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x76, 0x31, 0x22, 0xd7, 0x01, 0x0a, 0x04, 0x54, - 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, - 0x12, 0x29, 0x0a, 0x0d, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, - 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x65, 0x61, 0x73, 0x75, - 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x25, 0x0a, 0x0b, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, - 0x48, 0x01, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x49, 0x44, 0x88, - 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x49, 0x44, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x49, 0x44, 0x22, 0x91, 0x02, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x45, 0x0a, 0x10, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x19, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x10, 0x6e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x0d, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x6d, - 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, - 0x25, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x49, 0x44, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x49, 0x44, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6d, 0x65, 0x61, 0x73, 0x75, - 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x49, 0x44, 0x2a, 0x3e, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4c, 0x4c, 0x45, 0x43, 0x54, 0x49, - 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x4f, 0x50, 0x4f, 0x4c, 0x4f, 0x47, 0x59, - 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x54, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x09, 0x0a, - 0x05, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x03, 0x2a, 0x4d, 0x0a, 0x10, 0x4e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, - 0x44, 0x41, 0x54, 0x41, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x00, 0x12, - 0x12, 0x0a, 0x0e, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x5f, - 0x31, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x49, 0x4d, 0x45, - 0x4f, 0x55, 0x54, 0x5f, 0x32, 0x10, 0x02, 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x2f, 0x74, 0x61, 0x73, - 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_task_v1_task_proto protoreflect.FileDescriptor + +var file_task_v1_task_proto_rawDesc = []byte{ + 0x0a, 0x12, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x76, 0x31, 0x22, 0xd7, 0x01, + 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x29, 0x0a, 0x0d, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x65, + 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x25, + 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x49, 0x44, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x49, 0x44, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x49, 0x44, 0x22, 0x91, 0x02, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x45, 0x0a, 0x10, 0x6e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x10, 0x6e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x18, 0x0a, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x0d, 0x6d, 0x65, 0x61, 0x73, 0x75, + 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x0d, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x88, + 0x01, 0x01, 0x12, 0x25, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x49, + 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x49, 0x44, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6d, 0x65, + 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x49, 0x44, 0x2a, 0x3e, 0x0a, 0x08, 0x54, + 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4c, 0x4c, 0x45, + 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x4f, 0x50, 0x4f, 0x4c, + 0x4f, 0x47, 0x59, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x54, 0x41, 0x54, 0x45, 0x10, 0x02, + 0x12, 0x09, 0x0a, 0x05, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x03, 0x2a, 0x4d, 0x0a, 0x10, 0x4e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x11, 0x0a, 0x0d, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, + 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x4f, + 0x55, 0x54, 0x5f, 0x31, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, + 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x5f, 0x32, 0x10, 0x02, 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x2f, + 0x74, 0x61, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_task_task_proto_rawDescOnce sync.Once - file_task_task_proto_rawDescData = file_task_task_proto_rawDesc + file_task_v1_task_proto_rawDescOnce sync.Once + file_task_v1_task_proto_rawDescData = file_task_v1_task_proto_rawDesc ) -func file_task_task_proto_rawDescGZIP() []byte { - file_task_task_proto_rawDescOnce.Do(func() { - file_task_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_task_task_proto_rawDescData) +func file_task_v1_task_proto_rawDescGZIP() []byte { + file_task_v1_task_proto_rawDescOnce.Do(func() { + file_task_v1_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_task_v1_task_proto_rawDescData) }) - return file_task_task_proto_rawDescData + return file_task_v1_task_proto_rawDescData } -var file_task_task_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_task_task_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_task_task_proto_goTypes = []interface{}{ +var file_task_v1_task_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_task_v1_task_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_task_v1_task_proto_goTypes = []interface{}{ (TaskType)(0), // 0: task.v1.TaskType (NotificationType)(0), // 1: task.v1.NotificationType (*Task)(nil), // 2: task.v1.Task (*Notification)(nil), // 3: task.v1.Notification } -var file_task_task_proto_depIdxs = []int32{ +var file_task_v1_task_proto_depIdxs = []int32{ 0, // 0: task.v1.Task.taskType:type_name -> task.v1.TaskType 1, // 1: task.v1.Notification.notificationType:type_name -> task.v1.NotificationType 2, // [2:2] is the sub-list for method output_type @@ -365,13 +365,13 @@ var file_task_task_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_task_task_proto_init() } -func file_task_task_proto_init() { - if File_task_task_proto != nil { +func init() { file_task_v1_task_proto_init() } +func file_task_v1_task_proto_init() { + if File_task_v1_task_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_task_task_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_task_v1_task_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Task); i { case 0: return &v.state @@ -383,7 +383,7 @@ func file_task_task_proto_init() { return nil } } - file_task_task_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_task_v1_task_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Notification); i { case 0: return &v.state @@ -396,25 +396,25 @@ func file_task_task_proto_init() { } } } - file_task_task_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_task_task_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_task_v1_task_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_task_v1_task_proto_msgTypes[1].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_task_task_proto_rawDesc, + RawDescriptor: file_task_v1_task_proto_rawDesc, NumEnums: 2, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_task_task_proto_goTypes, - DependencyIndexes: file_task_task_proto_depIdxs, - EnumInfos: file_task_task_proto_enumTypes, - MessageInfos: file_task_task_proto_msgTypes, + GoTypes: file_task_v1_task_proto_goTypes, + DependencyIndexes: file_task_v1_task_proto_depIdxs, + EnumInfos: file_task_v1_task_proto_enumTypes, + MessageInfos: file_task_v1_task_proto_msgTypes, }.Build() - File_task_task_proto = out.File - file_task_task_proto_rawDesc = nil - file_task_task_proto_goTypes = nil - file_task_task_proto_depIdxs = nil + File_task_v1_task_proto = out.File + file_task_v1_task_proto_rawDesc = nil + file_task_v1_task_proto_goTypes = nil + file_task_v1_task_proto_depIdxs = nil } diff --git a/pkg/task/task_test.go b/pkg/task/v1/task_test.go similarity index 100% rename from pkg/task/task_test.go rename to pkg/task/v1/task_test.go diff --git a/proto/conf/conf2.proto b/proto/conf/v1/conf2.proto similarity index 100% rename from proto/conf/conf2.proto rename to proto/conf/v1/conf2.proto diff --git a/proto/data/data.proto b/proto/data/v1/data.proto similarity index 100% rename from proto/data/data.proto rename to proto/data/v1/data.proto diff --git a/proto/task/task.proto b/proto/task/v1/task.proto similarity index 100% rename from proto/task/task.proto rename to proto/task/v1/task.proto