proto

package
v0.20251007.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Exporter_SendContacts_FullMethodName = "/email.Exporter/SendContacts"
)

Variables

View Source
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)

View Source
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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL