email

package
v0.0.0-...-c34d2c7 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: MIT Imports: 6 Imported by: 0

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)
}

Directories

Path Synopsis
Package main implements a gRPC server that handles Staffjoy emails.
Package main implements a gRPC server that handles Staffjoy emails.

Jump to

Keyboard shortcuts

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