implement simple tui with humans data
This commit is contained in:
@@ -0,0 +1,554 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.35.1
|
||||
// protoc v5.28.3
|
||||
// source: aero/main.proto
|
||||
|
||||
package pbaero
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
_ "google.golang.org/protobuf/types/known/timestamppb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type MagicLinkEmailData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
MagicLink string `protobuf:"bytes,1,opt,name=magic_link,json=magicLink,proto3" json:"magic_link,omitempty"`
|
||||
}
|
||||
|
||||
func (x *MagicLinkEmailData) Reset() {
|
||||
*x = MagicLinkEmailData{}
|
||||
mi := &file_aero_main_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *MagicLinkEmailData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MagicLinkEmailData) ProtoMessage() {}
|
||||
|
||||
func (x *MagicLinkEmailData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_aero_main_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use MagicLinkEmailData.ProtoReflect.Descriptor instead.
|
||||
func (*MagicLinkEmailData) Descriptor() ([]byte, []int) {
|
||||
return file_aero_main_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *MagicLinkEmailData) GetMagicLink() string {
|
||||
if x != nil {
|
||||
return x.MagicLink
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GenericFlowyAdminAlertData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GenericFlowyAdminAlertData) Reset() {
|
||||
*x = GenericFlowyAdminAlertData{}
|
||||
mi := &file_aero_main_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GenericFlowyAdminAlertData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GenericFlowyAdminAlertData) ProtoMessage() {}
|
||||
|
||||
func (x *GenericFlowyAdminAlertData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_aero_main_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GenericFlowyAdminAlertData.ProtoReflect.Descriptor instead.
|
||||
func (*GenericFlowyAdminAlertData) Descriptor() ([]byte, []int) {
|
||||
return file_aero_main_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *GenericFlowyAdminAlertData) GetMessage() string {
|
||||
if x != nil {
|
||||
return x.Message
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type KeypadConnectCodeData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
||||
}
|
||||
|
||||
func (x *KeypadConnectCodeData) Reset() {
|
||||
*x = KeypadConnectCodeData{}
|
||||
mi := &file_aero_main_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *KeypadConnectCodeData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*KeypadConnectCodeData) ProtoMessage() {}
|
||||
|
||||
func (x *KeypadConnectCodeData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_aero_main_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use KeypadConnectCodeData.ProtoReflect.Descriptor instead.
|
||||
func (*KeypadConnectCodeData) Descriptor() ([]byte, []int) {
|
||||
return file_aero_main_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *KeypadConnectCodeData) GetCode() string {
|
||||
if x != nil {
|
||||
return x.Code
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type SimpleTextData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Send raw text-only emails
|
||||
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SimpleTextData) Reset() {
|
||||
*x = SimpleTextData{}
|
||||
mi := &file_aero_main_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SimpleTextData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SimpleTextData) ProtoMessage() {}
|
||||
|
||||
func (x *SimpleTextData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_aero_main_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SimpleTextData.ProtoReflect.Descriptor instead.
|
||||
func (*SimpleTextData) Descriptor() ([]byte, []int) {
|
||||
return file_aero_main_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *SimpleTextData) GetMessage() string {
|
||||
if x != nil {
|
||||
return x.Message
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type SimpleHtmlData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Html string `protobuf:"bytes,1,opt,name=html,proto3" json:"html,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SimpleHtmlData) Reset() {
|
||||
*x = SimpleHtmlData{}
|
||||
mi := &file_aero_main_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SimpleHtmlData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SimpleHtmlData) ProtoMessage() {}
|
||||
|
||||
func (x *SimpleHtmlData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_aero_main_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SimpleHtmlData.ProtoReflect.Descriptor instead.
|
||||
func (*SimpleHtmlData) Descriptor() ([]byte, []int) {
|
||||
return file_aero_main_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *SimpleHtmlData) GetHtml() string {
|
||||
if x != nil {
|
||||
return x.Html
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ShootEmailRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ToEmails []string `protobuf:"bytes,1,rep,name=to_emails,json=toEmails,proto3" json:"to_emails,omitempty"`
|
||||
Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
|
||||
// Types that are assignable to TemplateData:
|
||||
//
|
||||
// *ShootEmailRequest_MagicLinkData
|
||||
// *ShootEmailRequest_GenericFlowyAdminAlertData
|
||||
// *ShootEmailRequest_KeypadConnectCodeData
|
||||
// *ShootEmailRequest_SimpleTextData
|
||||
// *ShootEmailRequest_SimpleHtmlData
|
||||
TemplateData isShootEmailRequest_TemplateData `protobuf_oneof:"template_data"`
|
||||
}
|
||||
|
||||
func (x *ShootEmailRequest) Reset() {
|
||||
*x = ShootEmailRequest{}
|
||||
mi := &file_aero_main_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ShootEmailRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ShootEmailRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ShootEmailRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_aero_main_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ShootEmailRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ShootEmailRequest) Descriptor() ([]byte, []int) {
|
||||
return file_aero_main_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *ShootEmailRequest) GetToEmails() []string {
|
||||
if x != nil {
|
||||
return x.ToEmails
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ShootEmailRequest) GetSubject() string {
|
||||
if x != nil {
|
||||
return x.Subject
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ShootEmailRequest) GetTemplateData() isShootEmailRequest_TemplateData {
|
||||
if m != nil {
|
||||
return m.TemplateData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ShootEmailRequest) GetMagicLinkData() *MagicLinkEmailData {
|
||||
if x, ok := x.GetTemplateData().(*ShootEmailRequest_MagicLinkData); ok {
|
||||
return x.MagicLinkData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ShootEmailRequest) GetGenericFlowyAdminAlertData() *GenericFlowyAdminAlertData {
|
||||
if x, ok := x.GetTemplateData().(*ShootEmailRequest_GenericFlowyAdminAlertData); ok {
|
||||
return x.GenericFlowyAdminAlertData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ShootEmailRequest) GetKeypadConnectCodeData() *KeypadConnectCodeData {
|
||||
if x, ok := x.GetTemplateData().(*ShootEmailRequest_KeypadConnectCodeData); ok {
|
||||
return x.KeypadConnectCodeData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ShootEmailRequest) GetSimpleTextData() *SimpleTextData {
|
||||
if x, ok := x.GetTemplateData().(*ShootEmailRequest_SimpleTextData); ok {
|
||||
return x.SimpleTextData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ShootEmailRequest) GetSimpleHtmlData() *SimpleHtmlData {
|
||||
if x, ok := x.GetTemplateData().(*ShootEmailRequest_SimpleHtmlData); ok {
|
||||
return x.SimpleHtmlData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isShootEmailRequest_TemplateData interface {
|
||||
isShootEmailRequest_TemplateData()
|
||||
}
|
||||
|
||||
type ShootEmailRequest_MagicLinkData struct {
|
||||
MagicLinkData *MagicLinkEmailData `protobuf:"bytes,3,opt,name=magic_link_data,json=magicLinkData,proto3,oneof"`
|
||||
}
|
||||
|
||||
type ShootEmailRequest_GenericFlowyAdminAlertData struct {
|
||||
GenericFlowyAdminAlertData *GenericFlowyAdminAlertData `protobuf:"bytes,4,opt,name=generic_flowy_admin_alert_data,json=genericFlowyAdminAlertData,proto3,oneof"`
|
||||
}
|
||||
|
||||
type ShootEmailRequest_KeypadConnectCodeData struct {
|
||||
KeypadConnectCodeData *KeypadConnectCodeData `protobuf:"bytes,5,opt,name=keypad_connect_code_data,json=keypadConnectCodeData,proto3,oneof"`
|
||||
}
|
||||
|
||||
type ShootEmailRequest_SimpleTextData struct {
|
||||
SimpleTextData *SimpleTextData `protobuf:"bytes,6,opt,name=simple_text_data,json=simpleTextData,proto3,oneof"`
|
||||
}
|
||||
|
||||
type ShootEmailRequest_SimpleHtmlData struct {
|
||||
SimpleHtmlData *SimpleHtmlData `protobuf:"bytes,7,opt,name=simple_html_data,json=simpleHtmlData,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*ShootEmailRequest_MagicLinkData) isShootEmailRequest_TemplateData() {}
|
||||
|
||||
func (*ShootEmailRequest_GenericFlowyAdminAlertData) isShootEmailRequest_TemplateData() {}
|
||||
|
||||
func (*ShootEmailRequest_KeypadConnectCodeData) isShootEmailRequest_TemplateData() {}
|
||||
|
||||
func (*ShootEmailRequest_SimpleTextData) isShootEmailRequest_TemplateData() {}
|
||||
|
||||
func (*ShootEmailRequest_SimpleHtmlData) isShootEmailRequest_TemplateData() {}
|
||||
|
||||
type ShootEmailResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *ShootEmailResponse) Reset() {
|
||||
*x = ShootEmailResponse{}
|
||||
mi := &file_aero_main_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ShootEmailResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ShootEmailResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ShootEmailResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_aero_main_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ShootEmailResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ShootEmailResponse) Descriptor() ([]byte, []int) {
|
||||
return file_aero_main_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
var File_aero_main_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_aero_main_proto_rawDesc = []byte{
|
||||
0x0a, 0x0f, 0x61, 0x65, 0x72, 0x6f, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x12, 0x04, 0x61, 0x65, 0x72, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
|
||||
0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x12, 0x4d, 0x61, 0x67, 0x69,
|
||||
0x63, 0x4c, 0x69, 0x6e, 0x6b, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1d,
|
||||
0x0a, 0x0a, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x4c, 0x69, 0x6e, 0x6b, 0x22, 0x36, 0x0a,
|
||||
0x1a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41, 0x64, 0x6d,
|
||||
0x69, 0x6e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x6d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
|
||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x2b, 0x0a, 0x15, 0x4b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x43,
|
||||
0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12,
|
||||
0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f,
|
||||
0x64, 0x65, 0x22, 0x2a, 0x0a, 0x0e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x65, 0x78, 0x74,
|
||||
0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x24,
|
||||
0x0a, 0x0e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x48, 0x74, 0x6d, 0x6c, 0x44, 0x61, 0x74, 0x61,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x68, 0x74, 0x6d, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||||
0x68, 0x74, 0x6d, 0x6c, 0x22, 0xe3, 0x03, 0x0a, 0x11, 0x53, 0x68, 0x6f, 0x6f, 0x74, 0x45, 0x6d,
|
||||
0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f,
|
||||
0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74,
|
||||
0x6f, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65,
|
||||
0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63,
|
||||
0x74, 0x12, 0x42, 0x0a, 0x0f, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f,
|
||||
0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x65, 0x72,
|
||||
0x6f, 0x2e, 0x4d, 0x61, 0x67, 0x69, 0x63, 0x4c, 0x69, 0x6e, 0x6b, 0x45, 0x6d, 0x61, 0x69, 0x6c,
|
||||
0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x4c, 0x69, 0x6e,
|
||||
0x6b, 0x44, 0x61, 0x74, 0x61, 0x12, 0x66, 0x0a, 0x1e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63,
|
||||
0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x61, 0x6c, 0x65,
|
||||
0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
|
||||
0x61, 0x65, 0x72, 0x6f, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x46, 0x6c, 0x6f, 0x77,
|
||||
0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48,
|
||||
0x00, 0x52, 0x1a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41,
|
||||
0x64, 0x6d, 0x69, 0x6e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x56, 0x0a,
|
||||
0x18, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5f,
|
||||
0x63, 0x6f, 0x64, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x1b, 0x2e, 0x61, 0x65, 0x72, 0x6f, 0x2e, 0x4b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x43, 0x6f, 0x6e,
|
||||
0x6e, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x15,
|
||||
0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64,
|
||||
0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x10, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x5f,
|
||||
0x74, 0x65, 0x78, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x14, 0x2e, 0x61, 0x65, 0x72, 0x6f, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x65, 0x78,
|
||||
0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54,
|
||||
0x65, 0x78, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x10, 0x73, 0x69, 0x6d, 0x70, 0x6c,
|
||||
0x65, 0x5f, 0x68, 0x74, 0x6d, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x14, 0x2e, 0x61, 0x65, 0x72, 0x6f, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x48,
|
||||
0x74, 0x6d, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x69, 0x6d, 0x70, 0x6c,
|
||||
0x65, 0x48, 0x74, 0x6d, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x42, 0x0f, 0x0a, 0x0d, 0x74, 0x65, 0x6d,
|
||||
0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x68,
|
||||
0x6f, 0x6f, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x32, 0x4c, 0x0a, 0x07, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x41, 0x0a, 0x0a, 0x53,
|
||||
0x68, 0x6f, 0x6f, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x17, 0x2e, 0x61, 0x65, 0x72, 0x6f,
|
||||
0x2e, 0x53, 0x68, 0x6f, 0x6f, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x18, 0x2e, 0x61, 0x65, 0x72, 0x6f, 0x2e, 0x53, 0x68, 0x6f, 0x6f, 0x74, 0x45,
|
||||
0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x30,
|
||||
0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x6f,
|
||||
0x77, 0x79, 0x2d, 0x6c, 0x69, 0x76, 0x65, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2f, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x61, 0x65, 0x72, 0x6f, 0x3b, 0x70, 0x62, 0x61, 0x65, 0x72, 0x6f,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_aero_main_proto_rawDescOnce sync.Once
|
||||
file_aero_main_proto_rawDescData = file_aero_main_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_aero_main_proto_rawDescGZIP() []byte {
|
||||
file_aero_main_proto_rawDescOnce.Do(func() {
|
||||
file_aero_main_proto_rawDescData = protoimpl.X.CompressGZIP(file_aero_main_proto_rawDescData)
|
||||
})
|
||||
return file_aero_main_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_aero_main_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_aero_main_proto_goTypes = []any{
|
||||
(*MagicLinkEmailData)(nil), // 0: aero.MagicLinkEmailData
|
||||
(*GenericFlowyAdminAlertData)(nil), // 1: aero.GenericFlowyAdminAlertData
|
||||
(*KeypadConnectCodeData)(nil), // 2: aero.KeypadConnectCodeData
|
||||
(*SimpleTextData)(nil), // 3: aero.SimpleTextData
|
||||
(*SimpleHtmlData)(nil), // 4: aero.SimpleHtmlData
|
||||
(*ShootEmailRequest)(nil), // 5: aero.ShootEmailRequest
|
||||
(*ShootEmailResponse)(nil), // 6: aero.ShootEmailResponse
|
||||
}
|
||||
var file_aero_main_proto_depIdxs = []int32{
|
||||
0, // 0: aero.ShootEmailRequest.magic_link_data:type_name -> aero.MagicLinkEmailData
|
||||
1, // 1: aero.ShootEmailRequest.generic_flowy_admin_alert_data:type_name -> aero.GenericFlowyAdminAlertData
|
||||
2, // 2: aero.ShootEmailRequest.keypad_connect_code_data:type_name -> aero.KeypadConnectCodeData
|
||||
3, // 3: aero.ShootEmailRequest.simple_text_data:type_name -> aero.SimpleTextData
|
||||
4, // 4: aero.ShootEmailRequest.simple_html_data:type_name -> aero.SimpleHtmlData
|
||||
5, // 5: aero.Primary.ShootEmail:input_type -> aero.ShootEmailRequest
|
||||
6, // 6: aero.Primary.ShootEmail:output_type -> aero.ShootEmailResponse
|
||||
6, // [6:7] is the sub-list for method output_type
|
||||
5, // [5:6] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
5, // [5:5] is the sub-list for extension extendee
|
||||
0, // [0:5] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_aero_main_proto_init() }
|
||||
func file_aero_main_proto_init() {
|
||||
if File_aero_main_proto != nil {
|
||||
return
|
||||
}
|
||||
file_aero_main_proto_msgTypes[5].OneofWrappers = []any{
|
||||
(*ShootEmailRequest_MagicLinkData)(nil),
|
||||
(*ShootEmailRequest_GenericFlowyAdminAlertData)(nil),
|
||||
(*ShootEmailRequest_KeypadConnectCodeData)(nil),
|
||||
(*ShootEmailRequest_SimpleTextData)(nil),
|
||||
(*ShootEmailRequest_SimpleHtmlData)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_aero_main_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_aero_main_proto_goTypes,
|
||||
DependencyIndexes: file_aero_main_proto_depIdxs,
|
||||
MessageInfos: file_aero_main_proto_msgTypes,
|
||||
}.Build()
|
||||
File_aero_main_proto = out.File
|
||||
file_aero_main_proto_rawDesc = nil
|
||||
file_aero_main_proto_goTypes = nil
|
||||
file_aero_main_proto_depIdxs = nil
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc v5.28.3
|
||||
// source: aero/main.proto
|
||||
|
||||
package pbaero
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Primary_ShootEmail_FullMethodName = "/aero.Primary/ShootEmail"
|
||||
)
|
||||
|
||||
// PrimaryClient is the client API for Primary service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type PrimaryClient interface {
|
||||
ShootEmail(ctx context.Context, in *ShootEmailRequest, opts ...grpc.CallOption) (*ShootEmailResponse, error)
|
||||
}
|
||||
|
||||
type primaryClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewPrimaryClient(cc grpc.ClientConnInterface) PrimaryClient {
|
||||
return &primaryClient{cc}
|
||||
}
|
||||
|
||||
func (c *primaryClient) ShootEmail(ctx context.Context, in *ShootEmailRequest, opts ...grpc.CallOption) (*ShootEmailResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ShootEmailResponse)
|
||||
err := c.cc.Invoke(ctx, Primary_ShootEmail_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// PrimaryServer is the server API for Primary service.
|
||||
// All implementations must embed UnimplementedPrimaryServer
|
||||
// for forward compatibility.
|
||||
type PrimaryServer interface {
|
||||
ShootEmail(context.Context, *ShootEmailRequest) (*ShootEmailResponse, error)
|
||||
mustEmbedUnimplementedPrimaryServer()
|
||||
}
|
||||
|
||||
// UnimplementedPrimaryServer must be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedPrimaryServer struct{}
|
||||
|
||||
func (UnimplementedPrimaryServer) ShootEmail(context.Context, *ShootEmailRequest) (*ShootEmailResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ShootEmail not implemented")
|
||||
}
|
||||
func (UnimplementedPrimaryServer) mustEmbedUnimplementedPrimaryServer() {}
|
||||
func (UnimplementedPrimaryServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafePrimaryServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to PrimaryServer will
|
||||
// result in compilation errors.
|
||||
type UnsafePrimaryServer interface {
|
||||
mustEmbedUnimplementedPrimaryServer()
|
||||
}
|
||||
|
||||
func RegisterPrimaryServer(s grpc.ServiceRegistrar, srv PrimaryServer) {
|
||||
// If the following call pancis, it indicates UnimplementedPrimaryServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&Primary_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _Primary_ShootEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ShootEmailRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(PrimaryServer).ShootEmail(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Primary_ShootEmail_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(PrimaryServer).ShootEmail(ctx, req.(*ShootEmailRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// Primary_ServiceDesc is the grpc.ServiceDesc for Primary service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Primary_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "aero.Primary",
|
||||
HandlerType: (*PrimaryServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ShootEmail",
|
||||
Handler: _Primary_ShootEmail_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "aero/main.proto",
|
||||
}
|
||||
Reference in New Issue
Block a user