Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterExporterServer(s grpc.ServiceRegistrar, srv ExporterServer)
- type ExporterClient
- type ExporterServer
- 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"
)
Variables ¶
var Exporter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "email.Exporter", HandlerType: (*ExporterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendContacts", Handler: _Exporter_SendContacts_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)
}
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)
// contains filtered or unexported methods
}
ExporterServer is the server API for Exporter service. All implementations must embed UnimplementedExporterServer for forward compatibility.
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) 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.