Documentation ¶
Overview ¶
Package pigeomail_api_pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterPrivateAPIServer(s grpc.ServiceRegistrar, srv PrivateAPIServer)
- func RegisterPublicAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPublicAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PublicAPIClient) error
- func RegisterPublicAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPublicAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PublicAPIServer) error
- func RegisterPublicAPIServer(s grpc.ServiceRegistrar, srv PublicAPIServer)
- type EMail
- func (*EMail) Descriptor() ([]byte, []int)deprecated
- func (x *EMail) GetBody() string
- func (x *EMail) GetCreatedAt() int64
- func (x *EMail) GetEmail() string
- func (x *EMail) GetId() string
- func (x *EMail) GetRecipient() string
- func (x *EMail) GetSender() string
- func (x *EMail) GetSubject() string
- func (*EMail) ProtoMessage()
- func (x *EMail) ProtoReflect() protoreflect.Message
- func (x *EMail) Reset()
- func (x *EMail) String() string
- type EmptyMessage
- type PrivateAPIClient
- type PrivateAPIServer
- type PublicAPIClient
- type PublicAPICreateTemporaryEMailV1Request
- func (*PublicAPICreateTemporaryEMailV1Request) Descriptor() ([]byte, []int)deprecated
- func (*PublicAPICreateTemporaryEMailV1Request) ProtoMessage()
- func (x *PublicAPICreateTemporaryEMailV1Request) ProtoReflect() protoreflect.Message
- func (x *PublicAPICreateTemporaryEMailV1Request) Reset()
- func (x *PublicAPICreateTemporaryEMailV1Request) String() string
- type PublicAPICreateTemporaryEMailV1Response
- func (*PublicAPICreateTemporaryEMailV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *PublicAPICreateTemporaryEMailV1Response) GetEmail() string
- func (*PublicAPICreateTemporaryEMailV1Response) ProtoMessage()
- func (x *PublicAPICreateTemporaryEMailV1Response) ProtoReflect() protoreflect.Message
- func (x *PublicAPICreateTemporaryEMailV1Response) Reset()
- func (x *PublicAPICreateTemporaryEMailV1Response) String() string
- type PublicAPIServer
- type PublicAPIStreamEMailV1Request
- func (*PublicAPIStreamEMailV1Request) Descriptor() ([]byte, []int)deprecated
- func (x *PublicAPIStreamEMailV1Request) GetEmail() string
- func (*PublicAPIStreamEMailV1Request) ProtoMessage()
- func (x *PublicAPIStreamEMailV1Request) ProtoReflect() protoreflect.Message
- func (x *PublicAPIStreamEMailV1Request) Reset()
- func (x *PublicAPIStreamEMailV1Request) String() string
- type SMTPMessageEventV1
- func (*SMTPMessageEventV1) Descriptor() ([]byte, []int)deprecated
- func (x *SMTPMessageEventV1) GetBody() string
- func (x *SMTPMessageEventV1) GetContentType() string
- func (x *SMTPMessageEventV1) GetFrom() string
- func (x *SMTPMessageEventV1) GetHtml() string
- func (x *SMTPMessageEventV1) GetSubject() string
- func (x *SMTPMessageEventV1) GetTimestamp() int64
- func (x *SMTPMessageEventV1) GetTo() string
- func (*SMTPMessageEventV1) ProtoMessage()
- func (x *SMTPMessageEventV1) ProtoReflect() protoreflect.Message
- func (x *SMTPMessageEventV1) Reset()
- func (x *SMTPMessageEventV1) String() string
- type UnimplementedPrivateAPIServer
- type UnimplementedPublicAPIServer
- type UnsafePrivateAPIServer
- type UnsafePublicAPIServer
Constants ¶
const (
PublicAPI_CreateTemporaryEMailV1_FullMethodName = "/pigeomail.PublicAPI/CreateTemporaryEMailV1"
)
Variables ¶
var File_pigeomail_events_proto protoreflect.FileDescriptor
var File_private_api_proto protoreflect.FileDescriptor
var File_public_api_proto protoreflect.FileDescriptor
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)
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) GetCreatedAt ¶
func (*EMail) GetRecipient ¶
func (*EMail) GetSubject ¶
func (*EMail) ProtoMessage ¶
func (*EMail) ProtoMessage()
func (*EMail) ProtoReflect ¶
func (x *EMail) ProtoReflect() protoreflect.Message
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) ProtoMessage()
func (*PublicAPICreateTemporaryEMailV1Request) ProtoReflect ¶
func (x *PublicAPICreateTemporaryEMailV1Request) ProtoReflect() protoreflect.Message
func (*PublicAPICreateTemporaryEMailV1Request) Reset ¶
func (x *PublicAPICreateTemporaryEMailV1Request) Reset()
func (*PublicAPICreateTemporaryEMailV1Request) String ¶
func (x *PublicAPICreateTemporaryEMailV1Request) String() 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 (x *PublicAPICreateTemporaryEMailV1Response) GetEmail() string
func (*PublicAPICreateTemporaryEMailV1Response) ProtoMessage ¶
func (*PublicAPICreateTemporaryEMailV1Response) ProtoMessage()
func (*PublicAPICreateTemporaryEMailV1Response) ProtoReflect ¶
func (x *PublicAPICreateTemporaryEMailV1Response) ProtoReflect() protoreflect.Message
func (*PublicAPICreateTemporaryEMailV1Response) Reset ¶
func (x *PublicAPICreateTemporaryEMailV1Response) Reset()
func (*PublicAPICreateTemporaryEMailV1Response) String ¶
func (x *PublicAPICreateTemporaryEMailV1Response) String() 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 (x *PublicAPIStreamEMailV1Request) ProtoReflect() protoreflect.Message
func (*PublicAPIStreamEMailV1Request) Reset ¶
func (x *PublicAPIStreamEMailV1Request) Reset()
func (*PublicAPIStreamEMailV1Request) String ¶
func (x *PublicAPIStreamEMailV1Request) String() 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.
func (UnimplementedPublicAPIServer) CreateTemporaryEMailV1 ¶
func (UnimplementedPublicAPIServer) CreateTemporaryEMailV1(context.Context, *PublicAPICreateTemporaryEMailV1Request) (*PublicAPICreateTemporaryEMailV1Response, error)
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.