Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterExporterServer(s grpc.ServiceRegistrar, srv ExporterServer)
- type ExporterClient
- type ExporterServer
- type SendCaseRequest
- func (*SendCaseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendCaseRequest) GetAccountId() string
- func (x *SendCaseRequest) GetContactEmail() string
- func (x *SendCaseRequest) GetDescription() string
- func (x *SendCaseRequest) GetOrganization() string
- func (x *SendCaseRequest) GetOrigin() string
- func (x *SendCaseRequest) GetRateLimitName() string
- func (x *SendCaseRequest) GetRateLimitTier() string
- func (x *SendCaseRequest) GetSubject() string
- func (x *SendCaseRequest) GetUseCase() string
- func (*SendCaseRequest) ProtoMessage()
- func (x *SendCaseRequest) ProtoReflect() protoreflect.Message
- func (x *SendCaseRequest) Reset()
- func (x *SendCaseRequest) String() string
- type SendContactsRequest
- func (*SendContactsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendContactsRequest) GetEmails() []string
- func (*SendContactsRequest) ProtoMessage()
- func (x *SendContactsRequest) ProtoReflect() protoreflect.Message
- func (x *SendContactsRequest) Reset()
- func (x *SendContactsRequest) String() string
- type UnimplementedExporterServer
- type UnsafeExporterServer
Constants ¶
const ( Exporter_SendContacts_FullMethodName = "/email.Exporter/SendContacts" Exporter_SendCase_FullMethodName = "/email.Exporter/SendCase" )
Variables ¶
var Exporter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "email.Exporter", HandlerType: (*ExporterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendContacts", Handler: _Exporter_SendContacts_Handler, }, { MethodName: "SendCase", Handler: _Exporter_SendCase_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "exporter.proto", }
Exporter_ServiceDesc is the grpc.ServiceDesc for Exporter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_exporter_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExporterServer ¶
func RegisterExporterServer(s grpc.ServiceRegistrar, srv ExporterServer)
Types ¶
type ExporterClient ¶
type ExporterClient interface {
SendContacts(ctx context.Context, in *SendContactsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
SendCase(ctx context.Context, in *SendCaseRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
ExporterClient is the client API for Exporter 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.
func NewExporterClient ¶
func NewExporterClient(cc grpc.ClientConnInterface) ExporterClient
type ExporterServer ¶
type ExporterServer interface {
SendContacts(context.Context, *SendContactsRequest) (*emptypb.Empty, error)
SendCase(context.Context, *SendCaseRequest) (*emptypb.Empty, error)
// contains filtered or unexported methods
}
ExporterServer is the server API for Exporter service. All implementations must embed UnimplementedExporterServer for forward compatibility.
type SendCaseRequest ¶ added in v0.20251103.0
type SendCaseRequest struct {
Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
ContactEmail string `protobuf:"bytes,4,opt,name=contactEmail,proto3" json:"contactEmail,omitempty"`
Organization string `protobuf:"bytes,5,opt,name=organization,proto3" json:"organization,omitempty"`
AccountId string `protobuf:"bytes,6,opt,name=accountId,proto3" json:"accountId,omitempty"`
RateLimitName string `protobuf:"bytes,7,opt,name=rateLimitName,proto3" json:"rateLimitName,omitempty"`
RateLimitTier string `protobuf:"bytes,8,opt,name=rateLimitTier,proto3" json:"rateLimitTier,omitempty"`
UseCase string `protobuf:"bytes,9,opt,name=useCase,proto3" json:"useCase,omitempty"`
// contains filtered or unexported fields
}
func (*SendCaseRequest) Descriptor
deprecated
added in
v0.20251103.0
func (*SendCaseRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendCaseRequest.ProtoReflect.Descriptor instead.
func (*SendCaseRequest) GetAccountId ¶ added in v0.20251103.0
func (x *SendCaseRequest) GetAccountId() string
func (*SendCaseRequest) GetContactEmail ¶ added in v0.20251103.0
func (x *SendCaseRequest) GetContactEmail() string
func (*SendCaseRequest) GetDescription ¶ added in v0.20251103.0
func (x *SendCaseRequest) GetDescription() string
func (*SendCaseRequest) GetOrganization ¶ added in v0.20251103.0
func (x *SendCaseRequest) GetOrganization() string
func (*SendCaseRequest) GetOrigin ¶ added in v0.20251103.0
func (x *SendCaseRequest) GetOrigin() string
func (*SendCaseRequest) GetRateLimitName ¶ added in v0.20251103.0
func (x *SendCaseRequest) GetRateLimitName() string
func (*SendCaseRequest) GetRateLimitTier ¶ added in v0.20251103.0
func (x *SendCaseRequest) GetRateLimitTier() string
func (*SendCaseRequest) GetSubject ¶ added in v0.20251103.0
func (x *SendCaseRequest) GetSubject() string
func (*SendCaseRequest) GetUseCase ¶ added in v0.20251103.0
func (x *SendCaseRequest) GetUseCase() string
func (*SendCaseRequest) ProtoMessage ¶ added in v0.20251103.0
func (*SendCaseRequest) ProtoMessage()
func (*SendCaseRequest) ProtoReflect ¶ added in v0.20251103.0
func (x *SendCaseRequest) ProtoReflect() protoreflect.Message
func (*SendCaseRequest) Reset ¶ added in v0.20251103.0
func (x *SendCaseRequest) Reset()
func (*SendCaseRequest) String ¶ added in v0.20251103.0
func (x *SendCaseRequest) String() string
type SendContactsRequest ¶
type SendContactsRequest struct {
Emails []string `protobuf:"bytes,1,rep,name=emails,proto3" json:"emails,omitempty"`
// contains filtered or unexported fields
}
func (*SendContactsRequest) Descriptor
deprecated
func (*SendContactsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendContactsRequest.ProtoReflect.Descriptor instead.
func (*SendContactsRequest) GetEmails ¶
func (x *SendContactsRequest) GetEmails() []string
func (*SendContactsRequest) ProtoMessage ¶
func (*SendContactsRequest) ProtoMessage()
func (*SendContactsRequest) ProtoReflect ¶
func (x *SendContactsRequest) ProtoReflect() protoreflect.Message
func (*SendContactsRequest) Reset ¶
func (x *SendContactsRequest) Reset()
func (*SendContactsRequest) String ¶
func (x *SendContactsRequest) String() string
type UnimplementedExporterServer ¶
type UnimplementedExporterServer struct{}
UnimplementedExporterServer 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.
func (UnimplementedExporterServer) SendCase ¶ added in v0.20251103.0
func (UnimplementedExporterServer) SendCase(context.Context, *SendCaseRequest) (*emptypb.Empty, error)
func (UnimplementedExporterServer) SendContacts ¶
func (UnimplementedExporterServer) SendContacts(context.Context, *SendContactsRequest) (*emptypb.Empty, error)
type UnsafeExporterServer ¶
type UnsafeExporterServer interface {
// contains filtered or unexported methods
}
UnsafeExporterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExporterServer will result in compilation errors.