pigeomail_api_pb

package
v0.0.0-...-415cd06 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package pigeomail_api_pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	PublicAPI_CreateTemporaryEMailV1_FullMethodName = "/pigeomail.PublicAPI/CreateTemporaryEMailV1"
)

Variables

View Source
var File_pigeomail_events_proto protoreflect.FileDescriptor
View Source
var File_private_api_proto protoreflect.FileDescriptor
View Source
var File_public_api_proto protoreflect.FileDescriptor
View Source
var PrivateAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pigeomail.PrivateAPI",
	HandlerType: (*PrivateAPIServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams:     []grpc.StreamDesc{},
	Metadata:    "private-api.proto",
}

PrivateAPI_ServiceDesc is the grpc.ServiceDesc for PrivateAPI 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 PublicAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pigeomail.PublicAPI",
	HandlerType: (*PublicAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateTemporaryEMailV1",
			Handler:    _PublicAPI_CreateTemporaryEMailV1_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "public-api.proto",
}

PublicAPI_ServiceDesc is the grpc.ServiceDesc for PublicAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPrivateAPIServer

func RegisterPrivateAPIServer(s grpc.ServiceRegistrar, srv PrivateAPIServer)

func RegisterPublicAPIHandler

func RegisterPublicAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterPublicAPIHandler registers the http handlers for service PublicAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterPublicAPIHandlerClient

func RegisterPublicAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PublicAPIClient) error

RegisterPublicAPIHandlerClient registers the http handlers for service PublicAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PublicAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PublicAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PublicAPIClient" to call the correct interceptors.

func RegisterPublicAPIHandlerFromEndpoint

func RegisterPublicAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterPublicAPIHandlerFromEndpoint is same as RegisterPublicAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterPublicAPIHandlerServer

func RegisterPublicAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PublicAPIServer) error

RegisterPublicAPIHandlerServer registers the http handlers for service PublicAPI to "mux". UnaryRPC :call PublicAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPublicAPIHandlerFromEndpoint instead.

func RegisterPublicAPIServer

func RegisterPublicAPIServer(s grpc.ServiceRegistrar, srv PublicAPIServer)

Types

type EMail

type EMail struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email     string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Subject   string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	Body      string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	Sender    string `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"`
	Recipient string `protobuf:"bytes,6,opt,name=recipient,proto3" json:"recipient,omitempty"`
	CreatedAt int64  `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*EMail) Descriptor deprecated

func (*EMail) Descriptor() ([]byte, []int)

Deprecated: Use EMail.ProtoReflect.Descriptor instead.

func (*EMail) GetBody

func (x *EMail) GetBody() string

func (*EMail) GetCreatedAt

func (x *EMail) GetCreatedAt() int64

func (*EMail) GetEmail

func (x *EMail) GetEmail() string

func (*EMail) GetId

func (x *EMail) GetId() string

func (*EMail) GetRecipient

func (x *EMail) GetRecipient() string

func (*EMail) GetSender

func (x *EMail) GetSender() string

func (*EMail) GetSubject

func (x *EMail) GetSubject() string

func (*EMail) ProtoMessage

func (*EMail) ProtoMessage()

func (*EMail) ProtoReflect

func (x *EMail) ProtoReflect() protoreflect.Message

func (*EMail) Reset

func (x *EMail) Reset()

func (*EMail) String

func (x *EMail) String() string

type EmptyMessage

type EmptyMessage struct {
	// contains filtered or unexported fields
}

func (*EmptyMessage) Descriptor deprecated

func (*EmptyMessage) Descriptor() ([]byte, []int)

Deprecated: Use EmptyMessage.ProtoReflect.Descriptor instead.

func (*EmptyMessage) ProtoMessage

func (*EmptyMessage) ProtoMessage()

func (*EmptyMessage) ProtoReflect

func (x *EmptyMessage) ProtoReflect() protoreflect.Message

func (*EmptyMessage) Reset

func (x *EmptyMessage) Reset()

func (*EmptyMessage) String

func (x *EmptyMessage) String() string

type PrivateAPIClient

type PrivateAPIClient interface {
}

PrivateAPIClient is the client API for PrivateAPI 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 NewPrivateAPIClient

func NewPrivateAPIClient(cc grpc.ClientConnInterface) PrivateAPIClient

type PrivateAPIServer

type PrivateAPIServer interface {
}

PrivateAPIServer is the server API for PrivateAPI service. All implementations should embed UnimplementedPrivateAPIServer for forward compatibility

type PublicAPIClient

type PublicAPIClient interface {
	CreateTemporaryEMailV1(ctx context.Context, in *PublicAPICreateTemporaryEMailV1Request, opts ...grpc.CallOption) (*PublicAPICreateTemporaryEMailV1Response, error)
}

PublicAPIClient is the client API for PublicAPI 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 NewPublicAPIClient

func NewPublicAPIClient(cc grpc.ClientConnInterface) PublicAPIClient

type PublicAPICreateTemporaryEMailV1Request

type PublicAPICreateTemporaryEMailV1Request struct {
	// contains filtered or unexported fields
}

func (*PublicAPICreateTemporaryEMailV1Request) Descriptor deprecated

func (*PublicAPICreateTemporaryEMailV1Request) Descriptor() ([]byte, []int)

Deprecated: Use PublicAPICreateTemporaryEMailV1Request.ProtoReflect.Descriptor instead.

func (*PublicAPICreateTemporaryEMailV1Request) ProtoMessage

func (*PublicAPICreateTemporaryEMailV1Request) ProtoReflect

func (*PublicAPICreateTemporaryEMailV1Request) Reset

func (*PublicAPICreateTemporaryEMailV1Request) String

type PublicAPICreateTemporaryEMailV1Response

type PublicAPICreateTemporaryEMailV1Response struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicAPICreateTemporaryEMailV1Response) Descriptor deprecated

func (*PublicAPICreateTemporaryEMailV1Response) Descriptor() ([]byte, []int)

Deprecated: Use PublicAPICreateTemporaryEMailV1Response.ProtoReflect.Descriptor instead.

func (*PublicAPICreateTemporaryEMailV1Response) GetEmail

func (*PublicAPICreateTemporaryEMailV1Response) ProtoMessage

func (*PublicAPICreateTemporaryEMailV1Response) ProtoReflect

func (*PublicAPICreateTemporaryEMailV1Response) Reset

func (*PublicAPICreateTemporaryEMailV1Response) String

type PublicAPIServer

type PublicAPIServer interface {
	CreateTemporaryEMailV1(context.Context, *PublicAPICreateTemporaryEMailV1Request) (*PublicAPICreateTemporaryEMailV1Response, error)
}

PublicAPIServer is the server API for PublicAPI service. All implementations should embed UnimplementedPublicAPIServer for forward compatibility

type PublicAPIStreamEMailV1Request

type PublicAPIStreamEMailV1Request struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicAPIStreamEMailV1Request) Descriptor deprecated

func (*PublicAPIStreamEMailV1Request) Descriptor() ([]byte, []int)

Deprecated: Use PublicAPIStreamEMailV1Request.ProtoReflect.Descriptor instead.

func (*PublicAPIStreamEMailV1Request) GetEmail

func (x *PublicAPIStreamEMailV1Request) GetEmail() string

func (*PublicAPIStreamEMailV1Request) ProtoMessage

func (*PublicAPIStreamEMailV1Request) ProtoMessage()

func (*PublicAPIStreamEMailV1Request) ProtoReflect

func (*PublicAPIStreamEMailV1Request) Reset

func (x *PublicAPIStreamEMailV1Request) Reset()

func (*PublicAPIStreamEMailV1Request) String

type SMTPMessageEventV1

type SMTPMessageEventV1 struct {
	From        string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To          string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Subject     string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	Body        string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	Html        string `protobuf:"bytes,5,opt,name=html,proto3" json:"html,omitempty"`
	ContentType string `protobuf:"bytes,6,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	Timestamp   int64  `protobuf:"varint,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*SMTPMessageEventV1) Descriptor deprecated

func (*SMTPMessageEventV1) Descriptor() ([]byte, []int)

Deprecated: Use SMTPMessageEventV1.ProtoReflect.Descriptor instead.

func (*SMTPMessageEventV1) GetBody

func (x *SMTPMessageEventV1) GetBody() string

func (*SMTPMessageEventV1) GetContentType

func (x *SMTPMessageEventV1) GetContentType() string

func (*SMTPMessageEventV1) GetFrom

func (x *SMTPMessageEventV1) GetFrom() string

func (*SMTPMessageEventV1) GetHtml

func (x *SMTPMessageEventV1) GetHtml() string

func (*SMTPMessageEventV1) GetSubject

func (x *SMTPMessageEventV1) GetSubject() string

func (*SMTPMessageEventV1) GetTimestamp

func (x *SMTPMessageEventV1) GetTimestamp() int64

func (*SMTPMessageEventV1) GetTo

func (x *SMTPMessageEventV1) GetTo() string

func (*SMTPMessageEventV1) ProtoMessage

func (*SMTPMessageEventV1) ProtoMessage()

func (*SMTPMessageEventV1) ProtoReflect

func (x *SMTPMessageEventV1) ProtoReflect() protoreflect.Message

func (*SMTPMessageEventV1) Reset

func (x *SMTPMessageEventV1) Reset()

func (*SMTPMessageEventV1) String

func (x *SMTPMessageEventV1) String() string

type UnimplementedPrivateAPIServer

type UnimplementedPrivateAPIServer struct {
}

UnimplementedPrivateAPIServer should be embedded to have forward compatible implementations.

type UnimplementedPublicAPIServer

type UnimplementedPublicAPIServer struct {
}

UnimplementedPublicAPIServer should be embedded to have forward compatible implementations.

type UnsafePrivateAPIServer

type UnsafePrivateAPIServer interface {
	// contains filtered or unexported methods
}

UnsafePrivateAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PrivateAPIServer will result in compilation errors.

type UnsafePublicAPIServer

type UnsafePublicAPIServer interface {
	// contains filtered or unexported methods
}

UnsafePublicAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PublicAPIServer will result in compilation errors.

Jump to

Keyboard shortcuts

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