From b9790d23222a0574f204946ca30fde599460b065 Mon Sep 17 00:00:00 2001 From: Iurii Panarin Date: Sat, 11 Jul 2020 23:40:56 +0200 Subject: [PATCH 1/5] feat(notification): add notification server --- generated/proto/v1/shared.pb.go | 73 ++ .../proto/v1/squzy_incident_server.pb.go | 255 +++-- .../proto/v1/squzy_notification_server.pb.go | 931 ++++++++++++++++++ proto | 2 +- 4 files changed, 1124 insertions(+), 137 deletions(-) create mode 100644 generated/proto/v1/shared.pb.go create mode 100644 generated/proto/v1/squzy_notification_server.pb.go diff --git a/generated/proto/v1/shared.pb.go b/generated/proto/v1/shared.pb.go new file mode 100644 index 0000000..d226c24 --- /dev/null +++ b/generated/proto/v1/shared.pb.go @@ -0,0 +1,73 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: proto/v1/shared.proto + +package api + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// 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.ProtoPackageIsVersion3 // please upgrade the proto package + +type ComponentOwnerType int32 + +const ( + ComponentOwnerType_COMPONENT_OWNER_TYPE_UNSPECIFIED ComponentOwnerType = 0 + ComponentOwnerType_COMPONENT_OWNER_TYPE_SCHEDULER ComponentOwnerType = 1 + ComponentOwnerType_COMPONENT_OWNER_TYPE_AGENT ComponentOwnerType = 2 + ComponentOwnerType_COMPONENT_OWNER_TYPE_APPLICATION ComponentOwnerType = 3 +) + +var ComponentOwnerType_name = map[int32]string{ + 0: "COMPONENT_OWNER_TYPE_UNSPECIFIED", + 1: "COMPONENT_OWNER_TYPE_SCHEDULER", + 2: "COMPONENT_OWNER_TYPE_AGENT", + 3: "COMPONENT_OWNER_TYPE_APPLICATION", +} + +var ComponentOwnerType_value = map[string]int32{ + "COMPONENT_OWNER_TYPE_UNSPECIFIED": 0, + "COMPONENT_OWNER_TYPE_SCHEDULER": 1, + "COMPONENT_OWNER_TYPE_AGENT": 2, + "COMPONENT_OWNER_TYPE_APPLICATION": 3, +} + +func (x ComponentOwnerType) String() string { + return proto.EnumName(ComponentOwnerType_name, int32(x)) +} + +func (ComponentOwnerType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_becfdac99263608b, []int{0} +} + +func init() { + proto.RegisterEnum("squzy.v1.shared.ComponentOwnerType", ComponentOwnerType_name, ComponentOwnerType_value) +} + +func init() { proto.RegisterFile("proto/v1/shared.proto", fileDescriptor_becfdac99263608b) } + +var fileDescriptor_becfdac99263608b = []byte{ + // 176 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2d, 0x28, 0xca, 0x2f, + 0xc9, 0xd7, 0x2f, 0x33, 0xd4, 0x2f, 0xce, 0x48, 0x2c, 0x4a, 0x4d, 0xd1, 0x03, 0xf3, 0x85, 0xf8, + 0x8b, 0x0b, 0x4b, 0xab, 0x2a, 0xf5, 0xca, 0x0c, 0xf5, 0x20, 0xc2, 0x5a, 0x4b, 0x18, 0xb9, 0x84, + 0x9c, 0xf3, 0x73, 0x0b, 0xf2, 0xf3, 0x52, 0xf3, 0x4a, 0xfc, 0xcb, 0xf3, 0x52, 0x8b, 0x42, 0x2a, + 0x0b, 0x52, 0x85, 0x54, 0xb8, 0x14, 0x9c, 0xfd, 0x7d, 0x03, 0xfc, 0xfd, 0x5c, 0xfd, 0x42, 0xe2, + 0xfd, 0xc3, 0xfd, 0x5c, 0x83, 0xe2, 0x43, 0x22, 0x03, 0x5c, 0xe3, 0x43, 0xfd, 0x82, 0x03, 0x5c, + 0x9d, 0x3d, 0xdd, 0x3c, 0x5d, 0x5d, 0x04, 0x18, 0x84, 0x94, 0xb8, 0xe4, 0xb0, 0xaa, 0x0a, 0x76, + 0xf6, 0x70, 0x75, 0x09, 0xf5, 0x71, 0x0d, 0x12, 0x60, 0x14, 0x92, 0xe3, 0x92, 0xc2, 0xaa, 0xc6, + 0xd1, 0xdd, 0xd5, 0x2f, 0x44, 0x80, 0x09, 0xa7, 0x4d, 0x8e, 0x01, 0x01, 0x3e, 0x9e, 0xce, 0x8e, + 0x21, 0x9e, 0xfe, 0x7e, 0x02, 0xcc, 0x4e, 0xac, 0x51, 0xcc, 0x89, 0x05, 0x99, 0x49, 0x6c, 0x60, + 0x5f, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x55, 0x9a, 0xb2, 0x6a, 0xde, 0x00, 0x00, 0x00, +} diff --git a/generated/proto/v1/squzy_incident_server.pb.go b/generated/proto/v1/squzy_incident_server.pb.go index a1230d8..cc52cc2 100644 --- a/generated/proto/v1/squzy_incident_server.pb.go +++ b/generated/proto/v1/squzy_incident_server.pb.go @@ -91,43 +91,12 @@ func (RuleStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor_78f0380f235b443b, []int{1} } -type RuleOwnerType int32 - -const ( - RuleOwnerType_INCIDENT_OWNER_TYPE_UNSPECIFIED RuleOwnerType = 0 - RuleOwnerType_INCIDENT_OWNER_TYPE_SCHEDULER RuleOwnerType = 1 - RuleOwnerType_INCIDENT_OWNER_TYPE_AGENT RuleOwnerType = 2 - RuleOwnerType_INCIDENT_OWNER_TYPE_APPLICATION RuleOwnerType = 3 -) - -var RuleOwnerType_name = map[int32]string{ - 0: "INCIDENT_OWNER_TYPE_UNSPECIFIED", - 1: "INCIDENT_OWNER_TYPE_SCHEDULER", - 2: "INCIDENT_OWNER_TYPE_AGENT", - 3: "INCIDENT_OWNER_TYPE_APPLICATION", -} - -var RuleOwnerType_value = map[string]int32{ - "INCIDENT_OWNER_TYPE_UNSPECIFIED": 0, - "INCIDENT_OWNER_TYPE_SCHEDULER": 1, - "INCIDENT_OWNER_TYPE_AGENT": 2, - "INCIDENT_OWNER_TYPE_APPLICATION": 3, -} - -func (x RuleOwnerType) String() string { - return proto.EnumName(RuleOwnerType_name, int32(x)) -} - -func (RuleOwnerType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_78f0380f235b443b, []int{2} -} - type ValidateRuleRequest struct { - OwnerType RuleOwnerType `protobuf:"varint,1,opt,name=owner_type,json=ownerType,proto3,enum=squzy.v1.incident.RuleOwnerType" json:"owner_type,omitempty"` - Rule string `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + OwnerType ComponentOwnerType `protobuf:"varint,1,opt,name=owner_type,json=ownerType,proto3,enum=squzy.v1.shared.ComponentOwnerType" json:"owner_type,omitempty"` + Rule string `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ValidateRuleRequest) Reset() { *m = ValidateRuleRequest{} } @@ -155,11 +124,11 @@ func (m *ValidateRuleRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ValidateRuleRequest proto.InternalMessageInfo -func (m *ValidateRuleRequest) GetOwnerType() RuleOwnerType { +func (m *ValidateRuleRequest) GetOwnerType() ComponentOwnerType { if m != nil { return m.OwnerType } - return RuleOwnerType_INCIDENT_OWNER_TYPE_UNSPECIFIED + return ComponentOwnerType_COMPONENT_OWNER_TYPE_UNSPECIFIED } func (m *ValidateRuleRequest) GetRule() string { @@ -539,14 +508,15 @@ func (m *RuleIdRequest) GetRuleId() string { } type CreateRuleRequest struct { - Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - AutoClose bool `protobuf:"varint,3,opt,name=auto_close,json=autoClose,proto3" json:"auto_close,omitempty"` - OwnerType RuleOwnerType `protobuf:"varint,4,opt,name=owner_type,json=ownerType,proto3,enum=squzy.v1.incident.RuleOwnerType" json:"owner_type,omitempty"` - OwnerId string `protobuf:"bytes,5,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + AutoClose bool `protobuf:"varint,3,opt,name=auto_close,json=autoClose,proto3" json:"auto_close,omitempty"` + OwnerType ComponentOwnerType `protobuf:"varint,4,opt,name=owner_type,json=ownerType,proto3,enum=squzy.v1.shared.ComponentOwnerType" json:"owner_type,omitempty"` + OwnerId string `protobuf:"bytes,5,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + Notification bool `protobuf:"varint,6,opt,name=notification,proto3" json:"notification,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateRuleRequest) Reset() { *m = CreateRuleRequest{} } @@ -595,11 +565,11 @@ func (m *CreateRuleRequest) GetAutoClose() bool { return false } -func (m *CreateRuleRequest) GetOwnerType() RuleOwnerType { +func (m *CreateRuleRequest) GetOwnerType() ComponentOwnerType { if m != nil { return m.OwnerType } - return RuleOwnerType_INCIDENT_OWNER_TYPE_UNSPECIFIED + return ComponentOwnerType_COMPONENT_OWNER_TYPE_UNSPECIFIED } func (m *CreateRuleRequest) GetOwnerId() string { @@ -609,12 +579,19 @@ func (m *CreateRuleRequest) GetOwnerId() string { return "" } +func (m *CreateRuleRequest) GetNotification() bool { + if m != nil { + return m.Notification + } + return false +} + type GetRulesByOwnerIdRequest struct { - OwnerType RuleOwnerType `protobuf:"varint,1,opt,name=owner_type,json=ownerType,proto3,enum=squzy.v1.incident.RuleOwnerType" json:"owner_type,omitempty"` - OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + OwnerType ComponentOwnerType `protobuf:"varint,1,opt,name=owner_type,json=ownerType,proto3,enum=squzy.v1.shared.ComponentOwnerType" json:"owner_type,omitempty"` + OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRulesByOwnerIdRequest) Reset() { *m = GetRulesByOwnerIdRequest{} } @@ -642,11 +619,11 @@ func (m *GetRulesByOwnerIdRequest) XXX_DiscardUnknown() { var xxx_messageInfo_GetRulesByOwnerIdRequest proto.InternalMessageInfo -func (m *GetRulesByOwnerIdRequest) GetOwnerType() RuleOwnerType { +func (m *GetRulesByOwnerIdRequest) GetOwnerType() ComponentOwnerType { if m != nil { return m.OwnerType } - return RuleOwnerType_INCIDENT_OWNER_TYPE_UNSPECIFIED + return ComponentOwnerType_COMPONENT_OWNER_TYPE_UNSPECIFIED } func (m *GetRulesByOwnerIdRequest) GetOwnerId() string { @@ -657,16 +634,17 @@ func (m *GetRulesByOwnerIdRequest) GetOwnerId() string { } type Rule struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Rule string `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - AutoClose bool `protobuf:"varint,4,opt,name=auto_close,json=autoClose,proto3" json:"auto_close,omitempty"` - OwnerType RuleOwnerType `protobuf:"varint,5,opt,name=owner_type,json=ownerType,proto3,enum=squzy.v1.incident.RuleOwnerType" json:"owner_type,omitempty"` - OwnerId string `protobuf:"bytes,6,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - Status RuleStatus `protobuf:"varint,7,opt,name=status,proto3,enum=squzy.v1.incident.RuleStatus" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Rule string `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + AutoClose bool `protobuf:"varint,4,opt,name=auto_close,json=autoClose,proto3" json:"auto_close,omitempty"` + OwnerType ComponentOwnerType `protobuf:"varint,5,opt,name=owner_type,json=ownerType,proto3,enum=squzy.v1.shared.ComponentOwnerType" json:"owner_type,omitempty"` + OwnerId string `protobuf:"bytes,6,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + Status RuleStatus `protobuf:"varint,7,opt,name=status,proto3,enum=squzy.v1.incident.RuleStatus" json:"status,omitempty"` + Notification bool `protobuf:"varint,8,opt,name=notification,proto3" json:"notification,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Rule) Reset() { *m = Rule{} } @@ -722,11 +700,11 @@ func (m *Rule) GetAutoClose() bool { return false } -func (m *Rule) GetOwnerType() RuleOwnerType { +func (m *Rule) GetOwnerType() ComponentOwnerType { if m != nil { return m.OwnerType } - return RuleOwnerType_INCIDENT_OWNER_TYPE_UNSPECIFIED + return ComponentOwnerType_COMPONENT_OWNER_TYPE_UNSPECIFIED } func (m *Rule) GetOwnerId() string { @@ -743,6 +721,13 @@ func (m *Rule) GetStatus() RuleStatus { return RuleStatus_RULE_STATUS_UNSPECIFIED } +func (m *Rule) GetNotification() bool { + if m != nil { + return m.Notification + } + return false +} + type Rules struct { Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -785,7 +770,6 @@ func (m *Rules) GetRules() []*Rule { func init() { proto.RegisterEnum("squzy.v1.incident.IncidentStatus", IncidentStatus_name, IncidentStatus_value) proto.RegisterEnum("squzy.v1.incident.RuleStatus", RuleStatus_name, RuleStatus_value) - proto.RegisterEnum("squzy.v1.incident.RuleOwnerType", RuleOwnerType_name, RuleOwnerType_value) proto.RegisterType((*ValidateRuleRequest)(nil), "squzy.v1.incident.ValidateRuleRequest") proto.RegisterType((*ValidateRuleResponse)(nil), "squzy.v1.incident.ValidateRuleResponse") proto.RegisterType((*ValidateRuleResponse_Error)(nil), "squzy.v1.incident.ValidateRuleResponse.Error") @@ -805,74 +789,73 @@ func init() { } var fileDescriptor_78f0380f235b443b = []byte{ - // 1071 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x4e, 0xe3, 0xc6, - 0x17, 0xc7, 0x21, 0x09, 0xc9, 0x09, 0xa0, 0x30, 0xbb, 0x82, 0x10, 0x84, 0x80, 0xfc, 0xd1, 0x7f, - 0x11, 0xdb, 0x35, 0xda, 0xf4, 0x43, 0xad, 0x7a, 0x51, 0x85, 0xc4, 0x0b, 0xee, 0xb2, 0x49, 0x34, - 0x31, 0xac, 0xda, 0x1b, 0xcb, 0x1b, 0xcf, 0x06, 0x57, 0x89, 0x27, 0xeb, 0x99, 0xa4, 0x4a, 0x2f, - 0xfb, 0x16, 0x55, 0x9f, 0xa0, 0x2f, 0xd0, 0x8b, 0xde, 0xf6, 0x75, 0x7a, 0xd1, 0x47, 0xa8, 0x66, - 0xfc, 0x11, 0xc7, 0x38, 0xb4, 0x2b, 0xb8, 0x9b, 0x99, 0xf3, 0x3b, 0x9f, 0x73, 0x7e, 0x67, 0x06, - 0x8e, 0xc7, 0x1e, 0xe5, 0xf4, 0x6c, 0xfa, 0xf2, 0x8c, 0x7d, 0x98, 0xfc, 0x34, 0x33, 0x1d, 0xb7, - 0xef, 0xd8, 0xc4, 0xe5, 0x26, 0x23, 0xde, 0x94, 0x78, 0xaa, 0x14, 0xa3, 0x2d, 0x29, 0x54, 0xa7, - 0x2f, 0xd5, 0x50, 0x5e, 0xdd, 0x1b, 0x50, 0x3a, 0x18, 0x92, 0x33, 0x09, 0x78, 0x37, 0x79, 0x7f, - 0x46, 0x46, 0x63, 0x3e, 0xf3, 0xf1, 0xd5, 0x83, 0xa4, 0x90, 0x3b, 0x23, 0xc2, 0xb8, 0x35, 0x1a, - 0x07, 0x80, 0xa3, 0x84, 0x5b, 0x6b, 0x90, 0xf4, 0x59, 0x7d, 0x9e, 0x84, 0x8c, 0xc7, 0x43, 0xa7, - 0x6f, 0x71, 0x87, 0xba, 0xe6, 0x88, 0xba, 0x0e, 0xa7, 0x9e, 0xe3, 0x0e, 0x42, 0x87, 0x09, 0x70, - 0x12, 0x50, 0xfb, 0x01, 0x9e, 0xdc, 0x58, 0x43, 0xc7, 0xb6, 0x38, 0xc1, 0x93, 0x21, 0xc1, 0xe4, - 0xc3, 0x84, 0x30, 0x8e, 0xbe, 0x01, 0xa0, 0x3f, 0xba, 0xc4, 0x33, 0xf9, 0x6c, 0x4c, 0x2a, 0xca, - 0xa1, 0x72, 0xb2, 0x59, 0x3f, 0x54, 0xef, 0x64, 0xab, 0x0a, 0x9d, 0x8e, 0x00, 0x1a, 0xb3, 0x31, - 0xc1, 0x45, 0x1a, 0x2e, 0x11, 0x82, 0xac, 0x37, 0x19, 0x92, 0x4a, 0xe6, 0x50, 0x39, 0x29, 0x62, - 0xb9, 0xae, 0xfd, 0xa2, 0xc0, 0xd3, 0x45, 0x67, 0x6c, 0x4c, 0x5d, 0x46, 0xd0, 0x2e, 0x14, 0x1c, - 0x66, 0x4e, 0x85, 0x48, 0xfa, 0x2a, 0xe0, 0x35, 0x87, 0x49, 0x24, 0x6a, 0x42, 0x8e, 0x78, 0x1e, - 0xf5, 0xa4, 0xa1, 0x52, 0xfd, 0x45, 0x4a, 0x0c, 0x69, 0x26, 0x55, 0x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3, 0xcf, 0x9d, 0x69, 0x58, 0x8a, 0x07, 0x54, 0xf5, 0x35, 0x6c, 0xb6, 0x88, - 0xf5, 0x48, 0xc6, 0xb0, 0xf8, 0x25, 0x4c, 0xec, 0xd9, 0x23, 0xe6, 0xfa, 0x2e, 0x2f, 0xeb, 0xf9, - 0xe9, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x7a, 0xb9, 0xf4, 0xe6, 0x0b, 0x00, 0x00, + // 1045 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x4e, 0xe3, 0x46, + 0x14, 0xc6, 0x21, 0x09, 0xc9, 0x09, 0x20, 0x98, 0xdd, 0x82, 0x37, 0x08, 0x01, 0x29, 0xea, 0xa2, + 0xdd, 0xae, 0xd1, 0xa6, 0x3f, 0x6a, 0xd5, 0x2b, 0x48, 0xbc, 0x8b, 0xbb, 0xbb, 0x01, 0x4d, 0x02, + 0x95, 0x7a, 0x63, 0x79, 0xe3, 0x21, 0x58, 0x8a, 0x3d, 0x5e, 0xcf, 0x24, 0x55, 0x7a, 0xd9, 0x97, + 0xa8, 0xfa, 0x08, 0x7d, 0x85, 0xde, 0xf6, 0x39, 0xfa, 0x06, 0x7d, 0x88, 0x6a, 0xc6, 0xbf, 0x31, + 0x0e, 0x6d, 0x17, 0xee, 0x3c, 0x73, 0xbe, 0x73, 0xe6, 0x3b, 0x67, 0xe6, 0x3b, 0xc7, 0x70, 0xe8, + 0x07, 0x94, 0xd3, 0xe3, 0xe9, 0xcb, 0x63, 0xf6, 0x61, 0xf2, 0xf3, 0xcc, 0x74, 0xbc, 0xa1, 0x63, + 0x13, 0x8f, 0x9b, 0x8c, 0x04, 0x53, 0x12, 0x68, 0xd2, 0x8c, 0x36, 0xa5, 0x51, 0x9b, 0xbe, 0xd4, + 0x62, 0x7b, 0x73, 0x67, 0x44, 0xe9, 0x68, 0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, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/generated/proto/v1/squzy_notification_server.pb.go b/generated/proto/v1/squzy_notification_server.pb.go new file mode 100644 index 0000000..e63b071 --- /dev/null +++ b/generated/proto/v1/squzy_notification_server.pb.go @@ -0,0 +1,931 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: proto/v1/squzy_notification_server.proto + +package api + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// 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.ProtoPackageIsVersion3 // please upgrade the proto package + +type NotificationMethodType int32 + +const ( + NotificationMethodType_NOTIFICATION_METHOD_UNSPECIFIED NotificationMethodType = 0 + NotificationMethodType_NOTIFICATION_METHOD_WEBHOOK NotificationMethodType = 1 + NotificationMethodType_NOTIFICATION_METHOD_SLACK NotificationMethodType = 2 +) + +var NotificationMethodType_name = map[int32]string{ + 0: "NOTIFICATION_METHOD_UNSPECIFIED", + 1: "NOTIFICATION_METHOD_WEBHOOK", + 2: "NOTIFICATION_METHOD_SLACK", +} + +var NotificationMethodType_value = map[string]int32{ + "NOTIFICATION_METHOD_UNSPECIFIED": 0, + "NOTIFICATION_METHOD_WEBHOOK": 1, + "NOTIFICATION_METHOD_SLACK": 2, +} + +func (x NotificationMethodType) String() string { + return proto.EnumName(NotificationMethodType_name, int32(x)) +} + +func (NotificationMethodType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3df2e4fd1243c80f, []int{0} +} + +type NotificationMethodStatus int32 + +const ( + NotificationMethodStatus_NOTIFICATION_STATUS_UNSPECIFIED NotificationMethodStatus = 0 + NotificationMethodStatus_NOTIFICATION_STATUS_ACTIVE NotificationMethodStatus = 1 + NotificationMethodStatus_NOTIFICATION_STATUS_INACTIVE NotificationMethodStatus = 2 + NotificationMethodStatus_NOTIFICATION_STATUS_REMOVED NotificationMethodStatus = 3 +) + +var NotificationMethodStatus_name = map[int32]string{ + 0: "NOTIFICATION_STATUS_UNSPECIFIED", + 1: "NOTIFICATION_STATUS_ACTIVE", + 2: "NOTIFICATION_STATUS_INACTIVE", + 3: "NOTIFICATION_STATUS_REMOVED", +} + +var NotificationMethodStatus_value = map[string]int32{ + "NOTIFICATION_STATUS_UNSPECIFIED": 0, + "NOTIFICATION_STATUS_ACTIVE": 1, + "NOTIFICATION_STATUS_INACTIVE": 2, + "NOTIFICATION_STATUS_REMOVED": 3, +} + +func (x NotificationMethodStatus) String() string { + return proto.EnumName(NotificationMethodStatus_name, int32(x)) +} + +func (NotificationMethodStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3df2e4fd1243c80f, []int{1} +} + +type WebHookMethod struct { + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WebHookMethod) Reset() { *m = WebHookMethod{} } +func (m *WebHookMethod) String() string { return proto.CompactTextString(m) } +func (*WebHookMethod) ProtoMessage() {} +func (*WebHookMethod) Descriptor() ([]byte, []int) { + return fileDescriptor_3df2e4fd1243c80f, []int{0} +} + +func (m *WebHookMethod) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WebHookMethod.Unmarshal(m, b) +} +func (m *WebHookMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WebHookMethod.Marshal(b, m, deterministic) +} +func (m *WebHookMethod) XXX_Merge(src proto.Message) { + xxx_messageInfo_WebHookMethod.Merge(m, src) +} +func (m *WebHookMethod) XXX_Size() int { + return xxx_messageInfo_WebHookMethod.Size(m) +} +func (m *WebHookMethod) XXX_DiscardUnknown() { + xxx_messageInfo_WebHookMethod.DiscardUnknown(m) +} + +var xxx_messageInfo_WebHookMethod proto.InternalMessageInfo + +func (m *WebHookMethod) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +type SlackMethod struct { + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SlackMethod) Reset() { *m = SlackMethod{} } +func (m *SlackMethod) String() string { return proto.CompactTextString(m) } +func (*SlackMethod) ProtoMessage() {} +func (*SlackMethod) Descriptor() ([]byte, []int) { + return fileDescriptor_3df2e4fd1243c80f, []int{1} +} + +func (m *SlackMethod) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SlackMethod.Unmarshal(m, b) +} +func (m *SlackMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SlackMethod.Marshal(b, m, deterministic) +} +func (m *SlackMethod) XXX_Merge(src proto.Message) { + xxx_messageInfo_SlackMethod.Merge(m, src) +} +func (m *SlackMethod) XXX_Size() int { + return xxx_messageInfo_SlackMethod.Size(m) +} +func (m *SlackMethod) XXX_DiscardUnknown() { + xxx_messageInfo_SlackMethod.DiscardUnknown(m) +} + +var xxx_messageInfo_SlackMethod proto.InternalMessageInfo + +func (m *SlackMethod) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +type NotificationMethodRequest struct { + OwnerType ComponentOwnerType `protobuf:"varint,1,opt,name=owner_type,json=ownerType,proto3,enum=squzy.v1.shared.ComponentOwnerType" json:"owner_type,omitempty"` + OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + NotificationMethodId string `protobuf:"bytes,3,opt,name=notification_method_id,json=notificationMethodId,proto3" json:"notification_method_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NotificationMethodRequest) Reset() { *m = NotificationMethodRequest{} } +func (m *NotificationMethodRequest) String() string { return proto.CompactTextString(m) } +func (*NotificationMethodRequest) ProtoMessage() {} +func (*NotificationMethodRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_3df2e4fd1243c80f, []int{2} +} + +func (m *NotificationMethodRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NotificationMethodRequest.Unmarshal(m, b) +} +func (m *NotificationMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NotificationMethodRequest.Marshal(b, m, deterministic) +} +func (m *NotificationMethodRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotificationMethodRequest.Merge(m, src) +} +func (m *NotificationMethodRequest) XXX_Size() int { + return xxx_messageInfo_NotificationMethodRequest.Size(m) +} +func (m *NotificationMethodRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NotificationMethodRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NotificationMethodRequest proto.InternalMessageInfo + +func (m *NotificationMethodRequest) GetOwnerType() ComponentOwnerType { + if m != nil { + return m.OwnerType + } + return ComponentOwnerType_COMPONENT_OWNER_TYPE_UNSPECIFIED +} + +func (m *NotificationMethodRequest) GetOwnerId() string { + if m != nil { + return m.OwnerId + } + return "" +} + +func (m *NotificationMethodRequest) GetNotificationMethodId() string { + if m != nil { + return m.NotificationMethodId + } + return "" +} + +type GetListRequest struct { + OwnerType ComponentOwnerType `protobuf:"varint,1,opt,name=owner_type,json=ownerType,proto3,enum=squzy.v1.shared.ComponentOwnerType" json:"owner_type,omitempty"` + OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetListRequest) Reset() { *m = GetListRequest{} } +func (m *GetListRequest) String() string { return proto.CompactTextString(m) } +func (*GetListRequest) ProtoMessage() {} +func (*GetListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_3df2e4fd1243c80f, []int{3} +} + +func (m *GetListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetListRequest.Unmarshal(m, b) +} +func (m *GetListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetListRequest.Marshal(b, m, deterministic) +} +func (m *GetListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetListRequest.Merge(m, src) +} +func (m *GetListRequest) XXX_Size() int { + return xxx_messageInfo_GetListRequest.Size(m) +} +func (m *GetListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetListRequest proto.InternalMessageInfo + +func (m *GetListRequest) GetOwnerType() ComponentOwnerType { + if m != nil { + return m.OwnerType + } + return ComponentOwnerType_COMPONENT_OWNER_TYPE_UNSPECIFIED +} + +func (m *GetListRequest) GetOwnerId() string { + if m != nil { + return m.OwnerId + } + return "" +} + +type NotificationMethod struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Status NotificationMethodStatus `protobuf:"varint,2,opt,name=status,proto3,enum=squzy.v1.notification.NotificationMethodStatus" json:"status,omitempty"` + Type NotificationMethodType `protobuf:"varint,3,opt,name=type,proto3,enum=squzy.v1.notification.NotificationMethodType" json:"type,omitempty"` + // Types that are valid to be assigned to Method: + // *NotificationMethod_Slack + // *NotificationMethod_Webhook + Method isNotificationMethod_Method `protobuf_oneof:"method"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NotificationMethod) Reset() { *m = NotificationMethod{} } +func (m *NotificationMethod) String() string { return proto.CompactTextString(m) } +func (*NotificationMethod) ProtoMessage() {} +func (*NotificationMethod) Descriptor() ([]byte, []int) { + return fileDescriptor_3df2e4fd1243c80f, []int{4} +} + +func (m *NotificationMethod) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NotificationMethod.Unmarshal(m, b) +} +func (m *NotificationMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NotificationMethod.Marshal(b, m, deterministic) +} +func (m *NotificationMethod) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotificationMethod.Merge(m, src) +} +func (m *NotificationMethod) XXX_Size() int { + return xxx_messageInfo_NotificationMethod.Size(m) +} +func (m *NotificationMethod) XXX_DiscardUnknown() { + xxx_messageInfo_NotificationMethod.DiscardUnknown(m) +} + +var xxx_messageInfo_NotificationMethod proto.InternalMessageInfo + +func (m *NotificationMethod) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *NotificationMethod) GetStatus() NotificationMethodStatus { + if m != nil { + return m.Status + } + return NotificationMethodStatus_NOTIFICATION_STATUS_UNSPECIFIED +} + +func (m *NotificationMethod) GetType() NotificationMethodType { + if m != nil { + return m.Type + } + return NotificationMethodType_NOTIFICATION_METHOD_UNSPECIFIED +} + +type isNotificationMethod_Method interface { + isNotificationMethod_Method() +} + +type NotificationMethod_Slack struct { + Slack *SlackMethod `protobuf:"bytes,4,opt,name=slack,proto3,oneof"` +} + +type NotificationMethod_Webhook struct { + Webhook *WebHookMethod `protobuf:"bytes,5,opt,name=webhook,proto3,oneof"` +} + +func (*NotificationMethod_Slack) isNotificationMethod_Method() {} + +func (*NotificationMethod_Webhook) isNotificationMethod_Method() {} + +func (m *NotificationMethod) GetMethod() isNotificationMethod_Method { + if m != nil { + return m.Method + } + return nil +} + +func (m *NotificationMethod) GetSlack() *SlackMethod { + if x, ok := m.GetMethod().(*NotificationMethod_Slack); ok { + return x.Slack + } + return nil +} + +func (m *NotificationMethod) GetWebhook() *WebHookMethod { + if x, ok := m.GetMethod().(*NotificationMethod_Webhook); ok { + return x.Webhook + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NotificationMethod) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NotificationMethod_Slack)(nil), + (*NotificationMethod_Webhook)(nil), + } +} + +type NotificationMethodIdRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NotificationMethodIdRequest) Reset() { *m = NotificationMethodIdRequest{} } +func (m *NotificationMethodIdRequest) String() string { return proto.CompactTextString(m) } +func (*NotificationMethodIdRequest) ProtoMessage() {} +func (*NotificationMethodIdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_3df2e4fd1243c80f, []int{5} +} + +func (m *NotificationMethodIdRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NotificationMethodIdRequest.Unmarshal(m, b) +} +func (m *NotificationMethodIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NotificationMethodIdRequest.Marshal(b, m, deterministic) +} +func (m *NotificationMethodIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotificationMethodIdRequest.Merge(m, src) +} +func (m *NotificationMethodIdRequest) XXX_Size() int { + return xxx_messageInfo_NotificationMethodIdRequest.Size(m) +} +func (m *NotificationMethodIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NotificationMethodIdRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NotificationMethodIdRequest proto.InternalMessageInfo + +func (m *NotificationMethodIdRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type CreateNotificationMethodRequest struct { + Type NotificationMethodType `protobuf:"varint,1,opt,name=type,proto3,enum=squzy.v1.notification.NotificationMethodType" json:"type,omitempty"` + // Types that are valid to be assigned to Method: + // *CreateNotificationMethodRequest_Slack + // *CreateNotificationMethodRequest_Webhook + Method isCreateNotificationMethodRequest_Method `protobuf_oneof:"method"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateNotificationMethodRequest) Reset() { *m = CreateNotificationMethodRequest{} } +func (m *CreateNotificationMethodRequest) String() string { return proto.CompactTextString(m) } +func (*CreateNotificationMethodRequest) ProtoMessage() {} +func (*CreateNotificationMethodRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_3df2e4fd1243c80f, []int{6} +} + +func (m *CreateNotificationMethodRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateNotificationMethodRequest.Unmarshal(m, b) +} +func (m *CreateNotificationMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateNotificationMethodRequest.Marshal(b, m, deterministic) +} +func (m *CreateNotificationMethodRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateNotificationMethodRequest.Merge(m, src) +} +func (m *CreateNotificationMethodRequest) XXX_Size() int { + return xxx_messageInfo_CreateNotificationMethodRequest.Size(m) +} +func (m *CreateNotificationMethodRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateNotificationMethodRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateNotificationMethodRequest proto.InternalMessageInfo + +func (m *CreateNotificationMethodRequest) GetType() NotificationMethodType { + if m != nil { + return m.Type + } + return NotificationMethodType_NOTIFICATION_METHOD_UNSPECIFIED +} + +type isCreateNotificationMethodRequest_Method interface { + isCreateNotificationMethodRequest_Method() +} + +type CreateNotificationMethodRequest_Slack struct { + Slack *SlackMethod `protobuf:"bytes,2,opt,name=slack,proto3,oneof"` +} + +type CreateNotificationMethodRequest_Webhook struct { + Webhook *WebHookMethod `protobuf:"bytes,3,opt,name=webhook,proto3,oneof"` +} + +func (*CreateNotificationMethodRequest_Slack) isCreateNotificationMethodRequest_Method() {} + +func (*CreateNotificationMethodRequest_Webhook) isCreateNotificationMethodRequest_Method() {} + +func (m *CreateNotificationMethodRequest) GetMethod() isCreateNotificationMethodRequest_Method { + if m != nil { + return m.Method + } + return nil +} + +func (m *CreateNotificationMethodRequest) GetSlack() *SlackMethod { + if x, ok := m.GetMethod().(*CreateNotificationMethodRequest_Slack); ok { + return x.Slack + } + return nil +} + +func (m *CreateNotificationMethodRequest) GetWebhook() *WebHookMethod { + if x, ok := m.GetMethod().(*CreateNotificationMethodRequest_Webhook); ok { + return x.Webhook + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CreateNotificationMethodRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CreateNotificationMethodRequest_Slack)(nil), + (*CreateNotificationMethodRequest_Webhook)(nil), + } +} + +type GetListResponse struct { + Methods []*NotificationMethod `protobuf:"bytes,1,rep,name=methods,proto3" json:"methods,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetListResponse) Reset() { *m = GetListResponse{} } +func (m *GetListResponse) String() string { return proto.CompactTextString(m) } +func (*GetListResponse) ProtoMessage() {} +func (*GetListResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3df2e4fd1243c80f, []int{7} +} + +func (m *GetListResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetListResponse.Unmarshal(m, b) +} +func (m *GetListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetListResponse.Marshal(b, m, deterministic) +} +func (m *GetListResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetListResponse.Merge(m, src) +} +func (m *GetListResponse) XXX_Size() int { + return xxx_messageInfo_GetListResponse.Size(m) +} +func (m *GetListResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetListResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetListResponse proto.InternalMessageInfo + +func (m *GetListResponse) GetMethods() []*NotificationMethod { + if m != nil { + return m.Methods + } + return nil +} + +func init() { + proto.RegisterEnum("squzy.v1.notification.NotificationMethodType", NotificationMethodType_name, NotificationMethodType_value) + proto.RegisterEnum("squzy.v1.notification.NotificationMethodStatus", NotificationMethodStatus_name, NotificationMethodStatus_value) + proto.RegisterType((*WebHookMethod)(nil), "squzy.v1.notification.WebHookMethod") + proto.RegisterType((*SlackMethod)(nil), "squzy.v1.notification.SlackMethod") + proto.RegisterType((*NotificationMethodRequest)(nil), "squzy.v1.notification.NotificationMethodRequest") + proto.RegisterType((*GetListRequest)(nil), "squzy.v1.notification.GetListRequest") + proto.RegisterType((*NotificationMethod)(nil), "squzy.v1.notification.NotificationMethod") + proto.RegisterType((*NotificationMethodIdRequest)(nil), "squzy.v1.notification.NotificationMethodIdRequest") + proto.RegisterType((*CreateNotificationMethodRequest)(nil), "squzy.v1.notification.CreateNotificationMethodRequest") + proto.RegisterType((*GetListResponse)(nil), "squzy.v1.notification.GetListResponse") +} + +func init() { + proto.RegisterFile("proto/v1/squzy_notification_server.proto", fileDescriptor_3df2e4fd1243c80f) +} + +var fileDescriptor_3df2e4fd1243c80f = []byte{ + // 661 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xd1, 0x4f, 0xda, 0x5e, + 0x14, 0xb6, 0x54, 0x41, 0x8f, 0xf9, 0xf1, 0x23, 0x77, 0xd3, 0x54, 0xdc, 0x06, 0xab, 0xdb, 0xc2, + 0x4c, 0xc4, 0xc9, 0x96, 0x3d, 0xec, 0x69, 0xa5, 0x54, 0x69, 0x54, 0xba, 0x94, 0xaa, 0xcb, 0x5e, + 0x48, 0xb1, 0x67, 0xa3, 0x51, 0x7b, 0xb1, 0xbd, 0x60, 0x58, 0xe2, 0x3f, 0xb3, 0xbf, 0x60, 0x8f, + 0xfb, 0x93, 0xf6, 0xb0, 0x3f, 0x62, 0xe1, 0x16, 0x9c, 0x48, 0x1b, 0xd9, 0xdc, 0x78, 0xbb, 0xe4, + 0x7e, 0xdf, 0xf9, 0xce, 0xf9, 0xce, 0xc7, 0x05, 0x28, 0xb4, 0x7d, 0x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 0xba, 0x56, 0xc9, 0xcc, 0x90, 0x1c, 0xac, 0x46, + 0x81, 0x8e, 0xb4, 0x72, 0xd5, 0x30, 0x76, 0x33, 0x02, 0x79, 0x08, 0x2b, 0x51, 0x80, 0xfa, 0x9e, + 0xa2, 0xee, 0x66, 0x12, 0xeb, 0x5f, 0x04, 0x90, 0xe2, 0x42, 0x3e, 0xd6, 0x41, 0xdd, 0x52, 0xac, + 0x83, 0xfa, 0x8d, 0x0e, 0x1e, 0x41, 0x36, 0x0a, 0xa4, 0xa8, 0x96, 0x7e, 0xa8, 0x65, 0x04, 0x92, + 0x87, 0x07, 0x51, 0xf7, 0x7a, 0x6d, 0x80, 0x48, 0x8c, 0xcd, 0x30, 0x40, 0x98, 0xda, 0xbe, 0x71, + 0xa8, 0x55, 0x32, 0x62, 0xe9, 0x7b, 0x12, 0xee, 0x8d, 0x34, 0x69, 0x7b, 0xf6, 0x27, 0xf4, 0xc9, + 0x25, 0x48, 0x71, 0x09, 0x24, 0xaf, 0x63, 0x76, 0x71, 0x4b, 0x64, 0xb3, 0x93, 0xef, 0x90, 0xb4, + 0x20, 0xb5, 0x83, 0xac, 0xdc, 0xd3, 0x1d, 0x52, 0x9a, 0x98, 0xa5, 0xff, 0x89, 0xd2, 0x09, 0x40, + 0x05, 0x4f, 0x91, 0xe1, 0x34, 0xc4, 0x5c, 0x98, 0x57, 0x8e, 0x99, 0xdb, 0xb5, 0x19, 0x4e, 0x65, + 0x2e, 0x7b, 0x4a, 0x62, 0x4d, 0x10, 0x15, 0xc7, 0x21, 0x2f, 0x26, 0xff, 0x92, 0xfe, 0xbe, 0x06, + 0x42, 0xd2, 0xc4, 0x33, 0xda, 0xc5, 0x7f, 0x2b, 0xf3, 0x9e, 0x27, 0xaf, 0xff, 0x18, 0x91, 0xa7, + 0x31, 0xac, 0xd1, 0x9f, 0xdd, 0xec, 0xb3, 0xdb, 0x60, 0xe1, 0x9b, 0x56, 0x9e, 0xfb, 0x20, 0xda, + 0x6d, 0xb7, 0x99, 0xe4, 0xff, 0x5a, 0x5e, 0xfe, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x9d, 0xae, 0xb3, + 0x5d, 0x0f, 0x09, 0x00, 0x00, +} + +// 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 + +// NotificationManagerClient is the client API for NotificationManager service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type NotificationManagerClient interface { + // protolint:disable:next MAX_LINE_LENGTH + CreateNotificationMethod(ctx context.Context, in *CreateNotificationMethodRequest, opts ...grpc.CallOption) (*NotificationMethod, error) + GetById(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) + DeleteById(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) + Activate(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) + Deactivate(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) + Add(ctx context.Context, in *NotificationMethodRequest, opts ...grpc.CallOption) (*NotificationMethod, error) + Remove(ctx context.Context, in *NotificationMethodRequest, opts ...grpc.CallOption) (*NotificationMethod, error) + GetList(ctx context.Context, in *GetListRequest, opts ...grpc.CallOption) (*GetListResponse, error) +} + +type notificationManagerClient struct { + cc *grpc.ClientConn +} + +func NewNotificationManagerClient(cc *grpc.ClientConn) NotificationManagerClient { + return ¬ificationManagerClient{cc} +} + +func (c *notificationManagerClient) CreateNotificationMethod(ctx context.Context, in *CreateNotificationMethodRequest, opts ...grpc.CallOption) (*NotificationMethod, error) { + out := new(NotificationMethod) + err := c.cc.Invoke(ctx, "/squzy.v1.notification.NotificationManager/CreateNotificationMethod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *notificationManagerClient) GetById(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) { + out := new(NotificationMethod) + err := c.cc.Invoke(ctx, "/squzy.v1.notification.NotificationManager/GetById", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *notificationManagerClient) DeleteById(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) { + out := new(NotificationMethod) + err := c.cc.Invoke(ctx, "/squzy.v1.notification.NotificationManager/DeleteById", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *notificationManagerClient) Activate(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) { + out := new(NotificationMethod) + err := c.cc.Invoke(ctx, "/squzy.v1.notification.NotificationManager/Activate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *notificationManagerClient) Deactivate(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) { + out := new(NotificationMethod) + err := c.cc.Invoke(ctx, "/squzy.v1.notification.NotificationManager/Deactivate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *notificationManagerClient) Add(ctx context.Context, in *NotificationMethodRequest, opts ...grpc.CallOption) (*NotificationMethod, error) { + out := new(NotificationMethod) + err := c.cc.Invoke(ctx, "/squzy.v1.notification.NotificationManager/Add", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *notificationManagerClient) Remove(ctx context.Context, in *NotificationMethodRequest, opts ...grpc.CallOption) (*NotificationMethod, error) { + out := new(NotificationMethod) + err := c.cc.Invoke(ctx, "/squzy.v1.notification.NotificationManager/Remove", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *notificationManagerClient) GetList(ctx context.Context, in *GetListRequest, opts ...grpc.CallOption) (*GetListResponse, error) { + out := new(GetListResponse) + err := c.cc.Invoke(ctx, "/squzy.v1.notification.NotificationManager/GetList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// NotificationManagerServer is the server API for NotificationManager service. +type NotificationManagerServer interface { + // protolint:disable:next MAX_LINE_LENGTH + CreateNotificationMethod(context.Context, *CreateNotificationMethodRequest) (*NotificationMethod, error) + GetById(context.Context, *NotificationMethodIdRequest) (*NotificationMethod, error) + DeleteById(context.Context, *NotificationMethodIdRequest) (*NotificationMethod, error) + Activate(context.Context, *NotificationMethodIdRequest) (*NotificationMethod, error) + Deactivate(context.Context, *NotificationMethodIdRequest) (*NotificationMethod, error) + Add(context.Context, *NotificationMethodRequest) (*NotificationMethod, error) + Remove(context.Context, *NotificationMethodRequest) (*NotificationMethod, error) + GetList(context.Context, *GetListRequest) (*GetListResponse, error) +} + +// UnimplementedNotificationManagerServer can be embedded to have forward compatible implementations. +type UnimplementedNotificationManagerServer struct { +} + +func (*UnimplementedNotificationManagerServer) CreateNotificationMethod(ctx context.Context, req *CreateNotificationMethodRequest) (*NotificationMethod, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateNotificationMethod not implemented") +} +func (*UnimplementedNotificationManagerServer) GetById(ctx context.Context, req *NotificationMethodIdRequest) (*NotificationMethod, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetById not implemented") +} +func (*UnimplementedNotificationManagerServer) DeleteById(ctx context.Context, req *NotificationMethodIdRequest) (*NotificationMethod, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteById not implemented") +} +func (*UnimplementedNotificationManagerServer) Activate(ctx context.Context, req *NotificationMethodIdRequest) (*NotificationMethod, error) { + return nil, status.Errorf(codes.Unimplemented, "method Activate not implemented") +} +func (*UnimplementedNotificationManagerServer) Deactivate(ctx context.Context, req *NotificationMethodIdRequest) (*NotificationMethod, error) { + return nil, status.Errorf(codes.Unimplemented, "method Deactivate not implemented") +} +func (*UnimplementedNotificationManagerServer) Add(ctx context.Context, req *NotificationMethodRequest) (*NotificationMethod, error) { + return nil, status.Errorf(codes.Unimplemented, "method Add not implemented") +} +func (*UnimplementedNotificationManagerServer) Remove(ctx context.Context, req *NotificationMethodRequest) (*NotificationMethod, error) { + return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented") +} +func (*UnimplementedNotificationManagerServer) GetList(ctx context.Context, req *GetListRequest) (*GetListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetList not implemented") +} + +func RegisterNotificationManagerServer(s *grpc.Server, srv NotificationManagerServer) { + s.RegisterService(&_NotificationManager_serviceDesc, srv) +} + +func _NotificationManager_CreateNotificationMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateNotificationMethodRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationManagerServer).CreateNotificationMethod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/squzy.v1.notification.NotificationManager/CreateNotificationMethod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationManagerServer).CreateNotificationMethod(ctx, req.(*CreateNotificationMethodRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NotificationManager_GetById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NotificationMethodIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationManagerServer).GetById(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/squzy.v1.notification.NotificationManager/GetById", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationManagerServer).GetById(ctx, req.(*NotificationMethodIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NotificationManager_DeleteById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NotificationMethodIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationManagerServer).DeleteById(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/squzy.v1.notification.NotificationManager/DeleteById", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationManagerServer).DeleteById(ctx, req.(*NotificationMethodIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NotificationManager_Activate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NotificationMethodIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationManagerServer).Activate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/squzy.v1.notification.NotificationManager/Activate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationManagerServer).Activate(ctx, req.(*NotificationMethodIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NotificationManager_Deactivate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NotificationMethodIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationManagerServer).Deactivate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/squzy.v1.notification.NotificationManager/Deactivate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationManagerServer).Deactivate(ctx, req.(*NotificationMethodIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NotificationManager_Add_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NotificationMethodRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationManagerServer).Add(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/squzy.v1.notification.NotificationManager/Add", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationManagerServer).Add(ctx, req.(*NotificationMethodRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NotificationManager_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NotificationMethodRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationManagerServer).Remove(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/squzy.v1.notification.NotificationManager/Remove", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationManagerServer).Remove(ctx, req.(*NotificationMethodRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NotificationManager_GetList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationManagerServer).GetList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/squzy.v1.notification.NotificationManager/GetList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationManagerServer).GetList(ctx, req.(*GetListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _NotificationManager_serviceDesc = grpc.ServiceDesc{ + ServiceName: "squzy.v1.notification.NotificationManager", + HandlerType: (*NotificationManagerServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateNotificationMethod", + Handler: _NotificationManager_CreateNotificationMethod_Handler, + }, + { + MethodName: "GetById", + Handler: _NotificationManager_GetById_Handler, + }, + { + MethodName: "DeleteById", + Handler: _NotificationManager_DeleteById_Handler, + }, + { + MethodName: "Activate", + Handler: _NotificationManager_Activate_Handler, + }, + { + MethodName: "Deactivate", + Handler: _NotificationManager_Deactivate_Handler, + }, + { + MethodName: "Add", + Handler: _NotificationManager_Add_Handler, + }, + { + MethodName: "Remove", + Handler: _NotificationManager_Remove_Handler, + }, + { + MethodName: "GetList", + Handler: _NotificationManager_GetList_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "proto/v1/squzy_notification_server.proto", +} diff --git a/proto b/proto index e595bd2..6bd8a63 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit e595bd207360b3e277990b7239f69015f1736eaf +Subproject commit 6bd8a63566c7f94a418a8e8392ebf241dd419a5e From 650117ab97ba786348d38da11acc29914ccc4dcf Mon Sep 17 00:00:00 2001 From: Iurii Panarin Date: Tue, 14 Jul 2020 01:11:02 +0200 Subject: [PATCH 2/5] fix(gen): add generated --- .../proto/v1/squzy_notification_server.pb.go | 200 +++++++++++++----- proto | 2 +- 2 files changed, 150 insertions(+), 52 deletions(-) diff --git a/generated/proto/v1/squzy_notification_server.pb.go b/generated/proto/v1/squzy_notification_server.pb.go index e63b071..f7adbd7 100644 --- a/generated/proto/v1/squzy_notification_server.pb.go +++ b/generated/proto/v1/squzy_notification_server.pb.go @@ -7,6 +7,7 @@ import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" + empty "github.com/golang/protobuf/ptypes/empty" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -83,6 +84,61 @@ func (NotificationMethodStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor_3df2e4fd1243c80f, []int{1} } +type NotifyRequest struct { + IncidentId string `protobuf:"bytes,1,opt,name=incident_id,json=incidentId,proto3" json:"incident_id,omitempty"` + OwnerType ComponentOwnerType `protobuf:"varint,2,opt,name=owner_type,json=ownerType,proto3,enum=squzy.v1.shared.ComponentOwnerType" json:"owner_type,omitempty"` + OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NotifyRequest) Reset() { *m = NotifyRequest{} } +func (m *NotifyRequest) String() string { return proto.CompactTextString(m) } +func (*NotifyRequest) ProtoMessage() {} +func (*NotifyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_3df2e4fd1243c80f, []int{0} +} + +func (m *NotifyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NotifyRequest.Unmarshal(m, b) +} +func (m *NotifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NotifyRequest.Marshal(b, m, deterministic) +} +func (m *NotifyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotifyRequest.Merge(m, src) +} +func (m *NotifyRequest) XXX_Size() int { + return xxx_messageInfo_NotifyRequest.Size(m) +} +func (m *NotifyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NotifyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NotifyRequest proto.InternalMessageInfo + +func (m *NotifyRequest) GetIncidentId() string { + if m != nil { + return m.IncidentId + } + return "" +} + +func (m *NotifyRequest) GetOwnerType() ComponentOwnerType { + if m != nil { + return m.OwnerType + } + return ComponentOwnerType_COMPONENT_OWNER_TYPE_UNSPECIFIED +} + +func (m *NotifyRequest) GetOwnerId() string { + if m != nil { + return m.OwnerId + } + return "" +} + type WebHookMethod struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -94,7 +150,7 @@ func (m *WebHookMethod) Reset() { *m = WebHookMethod{} } func (m *WebHookMethod) String() string { return proto.CompactTextString(m) } func (*WebHookMethod) ProtoMessage() {} func (*WebHookMethod) Descriptor() ([]byte, []int) { - return fileDescriptor_3df2e4fd1243c80f, []int{0} + return fileDescriptor_3df2e4fd1243c80f, []int{1} } func (m *WebHookMethod) XXX_Unmarshal(b []byte) error { @@ -133,7 +189,7 @@ func (m *SlackMethod) Reset() { *m = SlackMethod{} } func (m *SlackMethod) String() string { return proto.CompactTextString(m) } func (*SlackMethod) ProtoMessage() {} func (*SlackMethod) Descriptor() ([]byte, []int) { - return fileDescriptor_3df2e4fd1243c80f, []int{1} + return fileDescriptor_3df2e4fd1243c80f, []int{2} } func (m *SlackMethod) XXX_Unmarshal(b []byte) error { @@ -174,7 +230,7 @@ func (m *NotificationMethodRequest) Reset() { *m = NotificationMethodReq func (m *NotificationMethodRequest) String() string { return proto.CompactTextString(m) } func (*NotificationMethodRequest) ProtoMessage() {} func (*NotificationMethodRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3df2e4fd1243c80f, []int{2} + return fileDescriptor_3df2e4fd1243c80f, []int{3} } func (m *NotificationMethodRequest) XXX_Unmarshal(b []byte) error { @@ -228,7 +284,7 @@ func (m *GetListRequest) Reset() { *m = GetListRequest{} } func (m *GetListRequest) String() string { return proto.CompactTextString(m) } func (*GetListRequest) ProtoMessage() {} func (*GetListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3df2e4fd1243c80f, []int{3} + return fileDescriptor_3df2e4fd1243c80f, []int{4} } func (m *GetListRequest) XXX_Unmarshal(b []byte) error { @@ -280,7 +336,7 @@ func (m *NotificationMethod) Reset() { *m = NotificationMethod{} } func (m *NotificationMethod) String() string { return proto.CompactTextString(m) } func (*NotificationMethod) ProtoMessage() {} func (*NotificationMethod) Descriptor() ([]byte, []int) { - return fileDescriptor_3df2e4fd1243c80f, []int{4} + return fileDescriptor_3df2e4fd1243c80f, []int{5} } func (m *NotificationMethod) XXX_Unmarshal(b []byte) error { @@ -378,7 +434,7 @@ func (m *NotificationMethodIdRequest) Reset() { *m = NotificationMethodI func (m *NotificationMethodIdRequest) String() string { return proto.CompactTextString(m) } func (*NotificationMethodIdRequest) ProtoMessage() {} func (*NotificationMethodIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3df2e4fd1243c80f, []int{5} + return fileDescriptor_3df2e4fd1243c80f, []int{6} } func (m *NotificationMethodIdRequest) XXX_Unmarshal(b []byte) error { @@ -421,7 +477,7 @@ func (m *CreateNotificationMethodRequest) Reset() { *m = CreateNotificat func (m *CreateNotificationMethodRequest) String() string { return proto.CompactTextString(m) } func (*CreateNotificationMethodRequest) ProtoMessage() {} func (*CreateNotificationMethodRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_3df2e4fd1243c80f, []int{6} + return fileDescriptor_3df2e4fd1243c80f, []int{7} } func (m *CreateNotificationMethodRequest) XXX_Unmarshal(b []byte) error { @@ -505,7 +561,7 @@ func (m *GetListResponse) Reset() { *m = GetListResponse{} } func (m *GetListResponse) String() string { return proto.CompactTextString(m) } func (*GetListResponse) ProtoMessage() {} func (*GetListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_3df2e4fd1243c80f, []int{7} + return fileDescriptor_3df2e4fd1243c80f, []int{8} } func (m *GetListResponse) XXX_Unmarshal(b []byte) error { @@ -536,6 +592,7 @@ func (m *GetListResponse) GetMethods() []*NotificationMethod { func init() { proto.RegisterEnum("squzy.v1.notification.NotificationMethodType", NotificationMethodType_name, NotificationMethodType_value) proto.RegisterEnum("squzy.v1.notification.NotificationMethodStatus", NotificationMethodStatus_name, NotificationMethodStatus_value) + proto.RegisterType((*NotifyRequest)(nil), "squzy.v1.notification.NotifyRequest") proto.RegisterType((*WebHookMethod)(nil), "squzy.v1.notification.WebHookMethod") proto.RegisterType((*SlackMethod)(nil), "squzy.v1.notification.SlackMethod") proto.RegisterType((*NotificationMethodRequest)(nil), "squzy.v1.notification.NotificationMethodRequest") @@ -551,49 +608,54 @@ func init() { } var fileDescriptor_3df2e4fd1243c80f = []byte{ - // 661 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xd1, 0x4f, 0xda, 0x5e, - 0x14, 0xb6, 0x54, 0x41, 0x8f, 0xf9, 0xf1, 0x23, 0x77, 0xd3, 0x54, 0xdc, 0x06, 0xab, 0xdb, 0xc2, - 0x4c, 0xc4, 0xc9, 0x96, 0x3d, 0xec, 0x69, 0xa5, 0x54, 0x69, 0x54, 0xba, 0x94,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, 0x0a, 0x2f, 0x03, 0x49, 0xc8, 0x8b, 0x85, - 0xc5, 0xd2, 0xf3, 0x89, 0x07, 0x34, 0x87, 0xcc, 0xf5, 0x4b, 0x58, 0x8e, 0x9e, 0x9f, 0xac, 0x41, - 0xae, 0x66, 0x58, 0xfa, 0xb6, 0xae, 0x2a, 0x96, 0x6e, 0xd4, 0x1a, 0xfb, 0x9a, 0x55, 0x35, 0x2a, - 0x8d, 0x83, 0x5a, 0xfd, 0x9d, 0xa6, 0xea, 0xdb, 0xba, 0x56, 0xc9, 0xcc, 0x90, 0x1c, 0xac, 0x46, - 0x81, 0x8e, 0xb4, 0x72, 0xd5, 0x30, 0x76, 0x33, 0x02, 0x79, 0x08, 0x2b, 0x51, 0x80, 0xfa, 0x9e, - 0xa2, 0xee, 0x66, 0x12, 0xeb, 0x5f, 0x04, 0x90, 0xe2, 0x42, 0x3e, 0xd6, 0x41, 0xdd, 0x52, 0xac, - 0x83, 0xfa, 0x8d, 0x0e, 0x1e, 0x41, 0x36, 0x0a, 0xa4, 0xa8, 0x96, 0x7e, 0xa8, 0x65, 0x04, 0x92, - 0x87, 0x07, 0x51, 0xf7, 0x7a, 0x6d, 0x80, 0x48, 0x8c, 0xcd, 0x30, 0x40, 0x98, 0xda, 0xbe, 0x71, - 0xa8, 0x55, 0x32, 0x62, 0xe9, 0x7b, 0x12, 0xee, 0x8d, 0x34, 0x69, 0x7b, 0xf6, 0x27, 0xf4, 0xc9, - 0x25, 0x48, 0x71, 0x09, 0x24, 0xaf, 0x63, 0x76, 0x71, 0x4b, 0x64, 0xb3, 0x93, 0xef, 0x90, 0xb4, - 0x20, 0xb5, 0x83, 0xac, 0xdc, 0xd3, 0x1d, 0x52, 0x9a, 0x98, 0xa5, 0xff, 0x89, 0xd2, 0x09, 0x40, - 0x05, 0x4f, 0x91, 0xe1, 0x34, 0xc4, 0x5c, 0x98, 0x57, 0x8e, 0x99, 0xdb, 0xb5, 0x19, 0x4e, 0x65, - 0x2e, 0x7b, 0x4a, 0x62, 0x4d, 0x10, 0x15, 0xc7, 0x21, 0x2f, 0x26, 0xff, 0x92, 0xfe, 0xbe, 0x06, - 0x42, 0xd2, 0xc4, 0x33, 0xda, 0xc5, 0x7f, 0x2b, 0xf3, 0x9e, 0x27, 0xaf, 0xff, 0x18, 0x91, 0xa7, - 0x31, 0xac, 0xd1, 0x9f, 0xdd, 0xec, 0xb3, 0xdb, 0x60, 0xe1, 0x9b, 0x56, 0x9e, 0xfb, 0x20, 0xda, - 0x6d, 0xb7, 0x99, 0xe4, 0xff, 0x5a, 0x5e, 0xfe, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x9d, 0xae, 0xb3, - 0x5d, 0x0f, 0x09, 0x00, 0x00, + // 737 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xdd, 0x52, 0xda, 0x50, + 0x10, 0x36, 0x89, 0x82, 0x2e, 0xa3, 0x65, 0x4e, 0xab, 0x13, 0xb1, 0x2d, 0x34, 0xda, 0x0e, 0x75, + 0xc6, 0x50, 0x69, 0xa7, 0x17, 0xbd, 0x2a, 0x3f, 0x51, 0x32, 0x2a, 0x74, 0x02, 0x6a, 0xa7, 0x37, + 0x4c, 0x20, 0xab, 0x64, 0x84, 0x1c, 0x4c, 0x0e, 0x38, 0x74, 0xc6, 0x67, 0xe8, 0x3b, 0xf4, 0x09, + 0xbc, 0xec, 0x43, 0xf5, 0x21, 0x3a, 0x24, 0x44, 0x45, 0x48, 0xa5, 0xb5, 0xe5, 0x2e, 0x9c, 0x7c, + 0xdf, 0xee, 0x7e, 0xbb, 0x1f, 0x27, 0x0b, 0xc9, 0xb6, 0x4d, 0x19, 0x4d, 0x75, 0xb7, 0x53, 0xce, + 0x79, 0xe7, 0x6b, 0xaf, 0x6a, 0x51, 0x66, 0x9e, 0x98, 0x75, 0x9d, 0x99, 0xd4, 0xaa, 0x3a, 0x68, + 0x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x08, 0x69, 0xd8, 0xa2, 0x5d, 0xfc, 0xbf, 0x69, 0x3e, 0xbb, 0xce, + 0xeb, 0x5f, 0x46, 0xe4, 0x65, 0x00, 0x6b, 0xf8, 0xb3, 0x1b, 0x7b, 0x75, 0x1f, 0x6c, 0x70, 0xa7, + 0xed, 0x40, 0xc8, 0x5b, 0x9c, 0xc8, 0xc6, 0xef, 0xca, 0xf1, 0xf7, 0xaa, 0xd8, 0x8a, 0xec, 0xad, + 0x67, 0xb2, 0xbf, 0x9e, 0xc9, 0x4a, 0x7f, 0x3d, 0xcb, 0xce, 0x7d, 0x11, 0xf4, 0xb6, 0x59, 0x0b, + 0xb9, 0xc7, 0x6f, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0xc1, 0x39, 0xd0, 0x7b, 0x06, 0x0a, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -617,6 +679,7 @@ type NotificationManagerClient interface { Add(ctx context.Context, in *NotificationMethodRequest, opts ...grpc.CallOption) (*NotificationMethod, error) Remove(ctx context.Context, in *NotificationMethodRequest, opts ...grpc.CallOption) (*NotificationMethod, error) GetList(ctx context.Context, in *GetListRequest, opts ...grpc.CallOption) (*GetListResponse, error) + Notify(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type notificationManagerClient struct { @@ -699,6 +762,15 @@ func (c *notificationManagerClient) GetList(ctx context.Context, in *GetListRequ return out, nil } +func (c *notificationManagerClient) Notify(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/squzy.v1.notification.NotificationManager/Notify", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // NotificationManagerServer is the server API for NotificationManager service. type NotificationManagerServer interface { // protolint:disable:next MAX_LINE_LENGTH @@ -710,6 +782,7 @@ type NotificationManagerServer interface { Add(context.Context, *NotificationMethodRequest) (*NotificationMethod, error) Remove(context.Context, *NotificationMethodRequest) (*NotificationMethod, error) GetList(context.Context, *GetListRequest) (*GetListResponse, error) + Notify(context.Context, *NotifyRequest) (*empty.Empty, error) } // UnimplementedNotificationManagerServer can be embedded to have forward compatible implementations. @@ -740,6 +813,9 @@ func (*UnimplementedNotificationManagerServer) Remove(ctx context.Context, req * func (*UnimplementedNotificationManagerServer) GetList(ctx context.Context, req *GetListRequest) (*GetListResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetList not implemented") } +func (*UnimplementedNotificationManagerServer) Notify(ctx context.Context, req *NotifyRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Notify not implemented") +} func RegisterNotificationManagerServer(s *grpc.Server, srv NotificationManagerServer) { s.RegisterService(&_NotificationManager_serviceDesc, srv) @@ -889,6 +965,24 @@ func _NotificationManager_GetList_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _NotificationManager_Notify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NotifyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationManagerServer).Notify(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/squzy.v1.notification.NotificationManager/Notify", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationManagerServer).Notify(ctx, req.(*NotifyRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _NotificationManager_serviceDesc = grpc.ServiceDesc{ ServiceName: "squzy.v1.notification.NotificationManager", HandlerType: (*NotificationManagerServer)(nil), @@ -925,6 +1019,10 @@ var _NotificationManager_serviceDesc = grpc.ServiceDesc{ MethodName: "GetList", Handler: _NotificationManager_GetList_Handler, }, + { + MethodName: "Notify", + Handler: _NotificationManager_Notify_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/v1/squzy_notification_server.proto", diff --git a/proto b/proto index 6bd8a63..f48b1e8 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 6bd8a63566c7f94a418a8e8392ebf241dd419a5e +Subproject commit f48b1e85573eac6bd7bbf6a9ac60d7fbcf57dbca From fca7d0fc4fdb915c344fcfa91d4ee44e666f7dbb Mon Sep 17 00:00:00 2001 From: Iurii Panarin Date: Sat, 18 Jul 2020 13:53:18 +0200 Subject: [PATCH 3/5] feat(method): add notification method --- .../proto/v1/squzy_notification_server.pb.go | 125 ++++++++++-------- proto | 2 +- 2 files changed, 72 insertions(+), 55 deletions(-) diff --git a/generated/proto/v1/squzy_notification_server.pb.go b/generated/proto/v1/squzy_notification_server.pb.go index f7adbd7..9e9d0e2 100644 --- a/generated/proto/v1/squzy_notification_server.pb.go +++ b/generated/proto/v1/squzy_notification_server.pb.go @@ -321,8 +321,9 @@ func (m *GetListRequest) GetOwnerId() string { type NotificationMethod struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Status NotificationMethodStatus `protobuf:"varint,2,opt,name=status,proto3,enum=squzy.v1.notification.NotificationMethodStatus" json:"status,omitempty"` - Type NotificationMethodType `protobuf:"varint,3,opt,name=type,proto3,enum=squzy.v1.notification.NotificationMethodType" json:"type,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Status NotificationMethodStatus `protobuf:"varint,3,opt,name=status,proto3,enum=squzy.v1.notification.NotificationMethodStatus" json:"status,omitempty"` + Type NotificationMethodType `protobuf:"varint,4,opt,name=type,proto3,enum=squzy.v1.notification.NotificationMethodType" json:"type,omitempty"` // Types that are valid to be assigned to Method: // *NotificationMethod_Slack // *NotificationMethod_Webhook @@ -364,6 +365,13 @@ func (m *NotificationMethod) GetId() string { return "" } +func (m *NotificationMethod) GetName() string { + if m != nil { + return m.Name + } + return "" +} + func (m *NotificationMethod) GetStatus() NotificationMethodStatus { if m != nil { return m.Status @@ -383,11 +391,11 @@ type isNotificationMethod_Method interface { } type NotificationMethod_Slack struct { - Slack *SlackMethod `protobuf:"bytes,4,opt,name=slack,proto3,oneof"` + Slack *SlackMethod `protobuf:"bytes,5,opt,name=slack,proto3,oneof"` } type NotificationMethod_Webhook struct { - Webhook *WebHookMethod `protobuf:"bytes,5,opt,name=webhook,proto3,oneof"` + Webhook *WebHookMethod `protobuf:"bytes,6,opt,name=webhook,proto3,oneof"` } func (*NotificationMethod_Slack) isNotificationMethod_Method() {} @@ -464,6 +472,7 @@ func (m *NotificationMethodIdRequest) GetId() string { type CreateNotificationMethodRequest struct { Type NotificationMethodType `protobuf:"varint,1,opt,name=type,proto3,enum=squzy.v1.notification.NotificationMethodType" json:"type,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Types that are valid to be assigned to Method: // *CreateNotificationMethodRequest_Slack // *CreateNotificationMethodRequest_Webhook @@ -505,16 +514,23 @@ func (m *CreateNotificationMethodRequest) GetType() NotificationMethodType { return NotificationMethodType_NOTIFICATION_METHOD_UNSPECIFIED } +func (m *CreateNotificationMethodRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + type isCreateNotificationMethodRequest_Method interface { isCreateNotificationMethodRequest_Method() } type CreateNotificationMethodRequest_Slack struct { - Slack *SlackMethod `protobuf:"bytes,2,opt,name=slack,proto3,oneof"` + Slack *SlackMethod `protobuf:"bytes,3,opt,name=slack,proto3,oneof"` } type CreateNotificationMethodRequest_Webhook struct { - Webhook *WebHookMethod `protobuf:"bytes,3,opt,name=webhook,proto3,oneof"` + Webhook *WebHookMethod `protobuf:"bytes,4,opt,name=webhook,proto3,oneof"` } func (*CreateNotificationMethodRequest_Slack) isCreateNotificationMethodRequest_Method() {} @@ -608,54 +624,55 @@ func init() { } var fileDescriptor_3df2e4fd1243c80f = []byte{ - // 737 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xdd, 0x52, 0xda, 0x50, - 0x10, 0x36, 0x89, 0x82, 0x2e, 0xa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0x0e, 0x10, 0xfc, 0x88, 0x86, 0x01, - 0x42, 0x53, 0x0e, 0x4a, 0x47, 0x4a, 0x3e, 0x2a, 0xa4, 0xaf, 0xc2, 0xf0, 0x78, 0xa8, 0x48, 0xdd, - 0xd2, 0x4f, 0xd1, 0x26, 0x97, 0x20, 0x06, 0x39, 0x90, 0xbc, 0x0f, 0x98, 0xc5, 0x3d, 0x96, 0x8d, - 0x4d, 0x3e, 0x43, 0xd2, 0x80, 0xf0, 0x2e, 0xb2, 0x6c, 0x4f, 0x35, 0x48, 0x7a, 0x62, 0x96, 0xfa, - 0x37, 0x99, 0xce, 0x00, 0xf2, 0xd8, 0x44, 0x86, 0xd3, 0x48, 0x66, 0xc2, 0x7c, 0xa6, 0xce, 0xcc, - 0xae, 0xce, 0x70, 0x2a, 0xba, 0xf4, 0x29, 0x25, 0xab, 0x81, 0x90, 0x31, 0x0c, 0xf2, 0x66, 0xf2, - 0x3f, 0xe9, 0x9f, 0xe7, 0x40, 0x08, 0x69, 0xd8, 0xa2, 0x5d, 0xfc, 0xbf, 0x69, 0x3e, 0xbb, 0xce, - 0xeb, 0x5f, 0x46, 0xe4, 0x65, 0x00, 0x6b, 0xf8, 0xb3, 0x1b, 0x7b, 0x75, 0x1f, 0x6c, 0x70, 0xa7, - 0xed, 0x40, 0xc8, 0x5b, 0x9c, 0xc8, 0xc6, 0xef, 0xca, 0xf1, 0xf7, 0xaa, 0xd8, 0x8a, 0xec, 0xad, - 0x67, 0xb2, 0xbf, 0x9e, 0xc9, 0x4a, 0x7f, 0x3d, 0xcb, 0xce, 0x7d, 0x11, 0xf4, 0xb6, 0x59, 0x0b, - 0xb9, 0xc7, 0x6f, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0xc1, 0x39, 0xd0, 0x7b, 0x06, 0x0a, 0x00, - 0x00, + // 755 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0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c, 0x6c, 0x35, 0xe8, 0xb0, 0x87, 0x05, 0x3e, 0xcd, 0x65, 0xe2, 0xb9, 0x4d, 0x69, 0x5c, + 0x92, 0x1b, 0xbe, 0x48, 0xba, 0x3d, 0x62, 0x62, 0x93, 0x56, 0x47, 0xd8, 0xfa, 0xb0, 0x87, 0xd5, + 0x65, 0xe2, 0x1d, 0xd1, 0x3a, 0x2c, 0x39, 0x31, 0x0c, 0x5d, 0x08, 0xb1, 0x0c, 0x51, 0xf6, 0x5b, + 0xd1, 0xc5, 0x17, 0xb0, 0x72, 0x8a, 0x9b, 0x65, 0x42, 0x2e, 0x8e, 0x30, 0x6d, 0x13, 0x1d, 0x25, + 0x20, 0xd4, 0xb7, 0x3a, 0x6e, 0x21, 0xa3, 0xa3, 0x98, 0x82, 0x58, 0xad, 0xa3, 0xb5, 0x82, 0x01, + 0x37, 0x1c, 0xac, 0x57, 0xee, 0xb4, 0xc6, 0x01, 0x7a, 0x0a, 0x27, 0x05, 0x70, 0x4f, 0x16, 0xc0, + 0x4f, 0x08, 0x40, 0xef, 0x60, 0x6d, 0x62, 0x74, 0x5d, 0x96, 0xfc, 0x56, 0xe9, 0x7f, 0xe6, 0x54, + 0x65, 0x8a, 0x2e, 0x12, 0x88, 0xef, 0x63, 0x7a, 0x68, 0xd8, 0x74, 0x3e, 0x65, 0x8a, 0x3f, 0x79, + 0x40, 0xd3, 0x3d, 0x42, 0x71, 0xe0, 0xc7, 0x53, 0xe7, 0x0d, 0x1d, 0x21, 0x08, 0x9b, 0x5a, 0x17, + 0xbb, 0x6c, 0x76, 0x46, 0xfb, 0x10, 0xb1, 0xa9, 0x46, 0xfb, 0x36, 0x53, 0x14, 0xcf, 0x65, 0x25, + 0x5f, 0x43, 0x4a, 0xd3, 0xe1, 0x6b, 0x8c, 0xa6, 0xba, 0x74, 0x94, 0x87, 0x30, 0x13, 0x17, 0x66, + 0x61, 0x76, 0x66, 0x0e, 0xc3, 0x64, 0x32, 0x2a, 0xfa, 0x00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 0x00, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x84, 0x73, 0xda, 0x2e, + 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/proto b/proto index f48b1e8..4c89db8 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit f48b1e85573eac6bd7bbf6a9ac60d7fbcf57dbca +Subproject commit 4c89db8aea0ed172c7150447ab85e7133c47a1e9 From a98159f6a335a585d4c9a4e2626f5033dac0e826 Mon Sep 17 00:00:00 2001 From: Iurii Panarin Date: Sat, 18 Jul 2020 14:13:05 +0200 Subject: [PATCH 4/5] feat(gen): generate --- .../proto/v1/squzy_notification_server.pb.go | 135 +++++++++++------- proto | 2 +- 2 files changed, 87 insertions(+), 50 deletions(-) diff --git a/generated/proto/v1/squzy_notification_server.pb.go b/generated/proto/v1/squzy_notification_server.pb.go index 9e9d0e2..a502efc 100644 --- a/generated/proto/v1/squzy_notification_server.pb.go +++ b/generated/proto/v1/squzy_notification_server.pb.go @@ -624,55 +624,56 @@ func init() { } var fileDescriptor_3df2e4fd1243c80f = []byte{ - // 755 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x6f, 0x4f, 0xda, 0x5c, - 0x14, 0xb7, 0x05, 0x41, 0x0f, 0x91, 0x87, 0xdc, 0xe7, 0xd1, 0x54, 0x7c, 0x36, 0x58, 0x75, 0x0b, - 0x33, 0xb1, 0x4c, 0xb6, 0xec, 0xc5, 0x5e, 0x8d, 0x3f, 0x55, 0x1a, 0x15, 0x96, 0x82, 0xba, 0xec, - 0x0d, 0x29, 0xf4, 0x2a, 0x8d, 0xd0, 0x8b, 0xed, 0x05, 0xc3, 0x12, 0x93, 0x7d, 0x83, 0x7d, 0x87, - 0x7d, 0x02, 0x3f, 0xc8, 0x3e, 0xd4, 0xc2, 0x6d, 0x8b, 0x22, 0xed, 0x64, 0x9a, 0xf1, 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 0x6e, 0x21, 0xa3, 0xa3, 0x98, 0x82, 0x58, 0xad, 0xa3, 0xb5, 0x82, 0x01, - 0x37, 0x1c, 0xac, 0x57, 0xee, 0xb4, 0xc6, 0x01, 0x7a, 0x0a, 0x27, 0x05, 0x70, 0x4f, 0x16, 0xc0, - 0x4f, 0x08, 0x40, 0xef, 0x60, 0x6d, 0x62, 0x74, 0x5d, 0x96, 0xfc, 0x56, 0xe9, 0x7f, 0xe6, 0x54, - 0x65, 0x8a, 0x2e, 0x12, 0x88, 0xef, 0x63, 0x7a, 0x68, 0xd8, 0x74, 0x3e, 0x65, 0x8a, 0x3f, 0x79, - 0x40, 0xd3, 0x3d, 0x42, 0x71, 0xe0, 0xc7, 0x53, 0xe7, 0x0d, 0x1d, 0x21, 0x08, 0x9b, 0x5a, 0x17, - 0xbb, 0x6c, 0x76, 0x46, 0xfb, 0x10, 0xb1, 0xa9, 0x46, 0xfb, 0x36, 0x53, 0x14, 0xcf, 0x65, 0x25, - 0x5f, 0x43, 0x4a, 0xd3, 0xe1, 0x6b, 0x8c, 0xa6, 0xba, 0x74, 0x94, 0x87, 0x30, 0x13, 0x17, 0x66, - 0x61, 0x76, 0x66, 0x0e, 0xc3, 0x64, 0x32, 0x2a, 0xfa, 0x00, 0x8b, 0xf6, 0xc8, 0x0b, 0xc2, 0x62, - 0x9a, 0xcb, 0xc4, 0x72, 0x62, 0x40, 0x8c, 0x3b, 0x7e, 0x29, 0x2f, 0xa8, 0x0e, 0x05, 0x7d, 0x84, - 0xe8, 0x15, 0x6e, 0xb6, 0x09, 0xb9, 0x10, 0x22, 0x8c, 0xbd, 0x15, 0xc0, 0x9e, 0x30, 0x64, 0x79, - 0x41, 0xf5, 0x68, 0x85, 0x25, 0x88, 0x38, 0xe3, 0x15, 0x77, 0x60, 0xa3, 0xe2, 0x33, 0x57, 0x6f, - 0x98, 0xf7, 0xda, 0x2a, 0x7e, 0xe3, 0x21, 0x55, 0xb4, 0xb0, 0x46, 0x71, 0xb0,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 0x33, 0x44, 0x6d, 0x88, 0xee, 0x63, 0x5a, 0x18, 0x2a, 0x3a, 0xca, 0xcd, 0xcc, 0x52, - 0x1e, 0x93, 0xe9, 0x02, 0xa0, 0x84, 0x3b, 0x98, 0xe2, 0x79, 0x24, 0x33, 0x60, 0x29, 0xdf, 0xa2, - 0xc6, 0x40, 0xa3, 0x78, 0x2e, 0xba, 0xb4, 0x39, 0x25, 0x6b, 0x42, 0x28, 0xaf, 0xeb, 0xe8, 0xcd, - 0xec, 0x7f, 0xd2, 0x3f, 0xcf, 0x81, 0x21, 0xa2, 0xe2, 0x2e, 0x19, 0xe0, 0xbf, 0x9b, 0xe6, 0x33, - 0x73, 0xde, 0xe8, 0x65, 0x84, 0x5e, 0x06, 0xb0, 0x26, 0x3f, 0xcf, 0xc9, 0x57, 0x0f, 0xc1, 0xdc, - 0x77, 0xda, 0x1e, 0x44, 0x9c, 0x05, 0x0b, 0x6d, 0xfd, 0xae, 0x1c, 0x6f, 0xff, 0x4a, 0xae, 0x49, - 0xce, 0x1a, 0x27, 0x79, 0x6b, 0x9c, 0x24, 0x8f, 0xd6, 0xb8, 0xc2, 0xe2, 0x97, 0x90, 0xd6, 0x33, - 0x9a, 0x11, 0x76, 0xfd, 0xf6, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x84, 0x73, 0xda, 0x2e, - 0x0a, 0x00, 0x00, + // 770 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x5d, 0x6f, 0xda, 0x48, + 0x14, 0x8d, 0x0d, 0x01, 0x72, 0x51, 0x58, 0x34, 0xbb, 0x41, 0x0e, 0xd9, 0x5d, 0x58, 0x27, 0x5b, + 0xd1, 0x48, 0x31, 0x0d, 0xad, 0xfa, 0xd0, 0xa7, 0xf2, 0xe1, 0x80, 0x95, 0x04, 0x2a, 0x43, 0x3e, + 0xd4, 0x17, 0x64, 0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76, 0x2c, 0x97, 0xe2, 0x81, 0xdc, 0x97, 0x08, 0xfc, 0x39, 0xd3, + 0xa4, 0x66, 0x6a, 0xe7, 0xd8, 0x42, 0xd7, 0x20, 0xf8, 0xa5, 0x12, 0xbd, 0xf5, 0xd9, 0xc5, 0x3d, + 0x31, 0x4e, 0x2e, 0xbe, 0x43, 0xd4, 0x81, 0x70, 0x19, 0xd3, 0xc2, 0x48, 0xd1, 0x51, 0x6e, 0x61, + 0x96, 0xf2, 0x90, 0x4a, 0xa7, 0x90, 0x28, 0x63, 0x3a, 0x7f, 0x60, 0xa3, 0x84, 0xe4, 0x5c, 0xa3, + 0x92, 0x7b, 0x8d, 0x4a, 0xf2, 0xf8, 0x1a, 0x4d, 0xbe, 0xf0, 0x11, 0xbf, 0x9b, 0xe1, 0x0b, 0x80, + 0x12, 0xee, 0x62, 0x8a, 0x9f, 0xc3, 0x86, 0x01, 0x91, 0x7c, 0x9b, 0x1a, 0x43, 0x8d, 0xe2, 0xa7, + 0x2e, 0xc5, 0x7c, 0x69, 0xcf, 0x54, 0xac, 0x05, 0x81, 0xbc, 0xae, 0xa3, 0x57, 0x8b, 0xff, 0xfd, + 0x7f, 0xbf, 0x06, 0x86, 0x90, 0x8a, 0x7b, 0x64, 0x88, 0x9f, 0xb6, 0xcc, 0x29, 0xcb, 0xf4, 0x38, + 0x22, 0xe8, 0xff, 0xfb, 0x22, 0xe4, 0x88, 0x2f, 0x9a, 0xb4, 0x3d, 0x08, 0x39, 0x9f, 0x6e, 0x68, + 0xeb, 0x57, 0xed, 0xb8, 0x5f, 0x76, 0x49, 0x9f, 0x64, 0x17, 0x96, 0x3f, 0x06, 0xb4, 0xbe, 0xd1, + 0x0a, 0xb1, 0xd7, 0xaf, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0xb3, 0x1c, 0x84, 0x86, 0x88, 0x0a, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -690,6 +691,7 @@ type NotificationManagerClient interface { // protolint:disable:next MAX_LINE_LENGTH CreateNotificationMethod(ctx context.Context, in *CreateNotificationMethodRequest, opts ...grpc.CallOption) (*NotificationMethod, error) GetById(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) + GetNotificationMethods(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetListResponse, error) DeleteById(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) Activate(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) Deactivate(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) @@ -725,6 +727,15 @@ func (c *notificationManagerClient) GetById(ctx context.Context, in *Notificatio return out, nil } +func (c *notificationManagerClient) GetNotificationMethods(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetListResponse, error) { + out := new(GetListResponse) + err := c.cc.Invoke(ctx, "/squzy.v1.notification.NotificationManager/GetNotificationMethods", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *notificationManagerClient) DeleteById(ctx context.Context, in *NotificationMethodIdRequest, opts ...grpc.CallOption) (*NotificationMethod, error) { out := new(NotificationMethod) err := c.cc.Invoke(ctx, "/squzy.v1.notification.NotificationManager/DeleteById", in, out, opts...) @@ -793,6 +804,7 @@ type NotificationManagerServer interface { // protolint:disable:next MAX_LINE_LENGTH CreateNotificationMethod(context.Context, *CreateNotificationMethodRequest) (*NotificationMethod, error) GetById(context.Context, *NotificationMethodIdRequest) (*NotificationMethod, error) + GetNotificationMethods(context.Context, *empty.Empty) (*GetListResponse, error) DeleteById(context.Context, *NotificationMethodIdRequest) (*NotificationMethod, error) Activate(context.Context, *NotificationMethodIdRequest) (*NotificationMethod, error) Deactivate(context.Context, *NotificationMethodIdRequest) (*NotificationMethod, error) @@ -812,6 +824,9 @@ func (*UnimplementedNotificationManagerServer) CreateNotificationMethod(ctx cont func (*UnimplementedNotificationManagerServer) GetById(ctx context.Context, req *NotificationMethodIdRequest) (*NotificationMethod, error) { return nil, status.Errorf(codes.Unimplemented, "method GetById not implemented") } +func (*UnimplementedNotificationManagerServer) GetNotificationMethods(ctx context.Context, req *empty.Empty) (*GetListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNotificationMethods not implemented") +} func (*UnimplementedNotificationManagerServer) DeleteById(ctx context.Context, req *NotificationMethodIdRequest) (*NotificationMethod, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteById not implemented") } @@ -874,6 +889,24 @@ func _NotificationManager_GetById_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _NotificationManager_GetNotificationMethods_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(empty.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationManagerServer).GetNotificationMethods(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/squzy.v1.notification.NotificationManager/GetNotificationMethods", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationManagerServer).GetNotificationMethods(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + func _NotificationManager_DeleteById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(NotificationMethodIdRequest) if err := dec(in); err != nil { @@ -1012,6 +1045,10 @@ var _NotificationManager_serviceDesc = grpc.ServiceDesc{ MethodName: "GetById", Handler: _NotificationManager_GetById_Handler, }, + { + MethodName: "GetNotificationMethods", + Handler: _NotificationManager_GetNotificationMethods_Handler, + }, { MethodName: "DeleteById", Handler: _NotificationManager_DeleteById_Handler, diff --git a/proto b/proto index 4c89db8..73df1b5 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 4c89db8aea0ed172c7150447ab85e7133c47a1e9 +Subproject commit 73df1b54cf18f3bd8f28d7b2670c86a6201b1128 From 4ea7e332ee31f1fe4f08bdb304b48235cd73807e Mon Sep 17 00:00:00 2001 From: Iurii Panarin Date: Sun, 19 Jul 2020 12:21:24 +0200 Subject: [PATCH 5/5] feat(notification): gen --- proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto b/proto index 73df1b5..8e729a7 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 73df1b54cf18f3bd8f28d7b2670c86a6201b1128 +Subproject commit 8e729a7296917a2b25abc108b8edad1df40edb8f