Documentation ¶
Overview ¶
Package email is a generated protocol buffer package.
It is generated from these files:
email.proto
It has these top-level messages:
EmailRequest
Index ¶
Constants ¶
View Source
const ( // ServerPort tells the gRPC server what port to listen on ServerPort = ":1000" // Endpoint defines the DNS of the account server for clients // to access the server in Kubernetes. Endpoint = "emailserver-service" + ServerPort )
Variables ¶
This section is empty.
Functions ¶
func RegisterEmailServiceServer ¶
func RegisterEmailServiceServer(s *grpc.Server, srv EmailServiceServer)
Types ¶
type EmailRequest ¶
type EmailRequest struct { To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` HtmlBody string `protobuf:"bytes,3,opt,name=html_body,json=htmlBody,proto3" json:"html_body,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` }
func (*EmailRequest) Descriptor ¶
func (*EmailRequest) Descriptor() ([]byte, []int)
func (*EmailRequest) ProtoMessage ¶
func (*EmailRequest) ProtoMessage()
func (*EmailRequest) Reset ¶
func (m *EmailRequest) Reset()
func (*EmailRequest) String ¶
func (m *EmailRequest) String() string
type EmailServiceClient ¶
type EmailServiceClient interface {
Send(ctx context.Context, in *EmailRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
}
func NewClient ¶
func NewClient() (EmailServiceClient, func() error, error)
NewClient returns a gRPC client for interacting with the email. After calling it, run a defer close on the close function
func NewEmailServiceClient ¶
func NewEmailServiceClient(cc *grpc.ClientConn) EmailServiceClient
type EmailServiceServer ¶
type EmailServiceServer interface {
Send(context.Context, *EmailRequest) (*google_protobuf.Empty, error)
}
Click to show internal directories.
Click to hide internal directories.