Documentation ¶
Index ¶
- func RegisterEmailServer(s *grpc.Server, srv EmailServer)
- type EmailClient
- type EmailData
- func (*EmailData) Descriptor() ([]byte, []int)
- func (m *EmailData) GetEmail() string
- func (m *EmailData) GetText() string
- func (*EmailData) ProtoMessage()
- func (m *EmailData) Reset()
- func (m *EmailData) String() string
- func (m *EmailData) XXX_DiscardUnknown()
- func (m *EmailData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EmailData) XXX_Merge(src proto.Message)
- func (m *EmailData) XXX_Size() int
- func (m *EmailData) XXX_Unmarshal(b []byte) error
- type EmailServer
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type UnimplementedEmailServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEmailServer ¶
func RegisterEmailServer(s *grpc.Server, srv EmailServer)
Types ¶
type EmailClient ¶
type EmailClient interface {
SendSimpleEmail(ctx context.Context, in *EmailData, opts ...grpc.CallOption) (*Empty, error)
}
EmailClient is the client API for Email service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEmailClient ¶
func NewEmailClient(cc *grpc.ClientConn) EmailClient
type EmailData ¶
type EmailData struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EmailData) Descriptor ¶
func (*EmailData) ProtoMessage ¶
func (*EmailData) ProtoMessage()
func (*EmailData) XXX_DiscardUnknown ¶
func (m *EmailData) XXX_DiscardUnknown()
func (*EmailData) XXX_Marshal ¶
func (*EmailData) XXX_Unmarshal ¶
type EmailServer ¶
EmailServer is the server API for Email service.
type Empty ¶ added in v0.0.15
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶ added in v0.0.15
func (*Empty) ProtoMessage ¶ added in v0.0.15
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶ added in v0.0.15
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶ added in v0.0.15
func (*Empty) XXX_Unmarshal ¶ added in v0.0.15
type UnimplementedEmailServer ¶
type UnimplementedEmailServer struct { }
UnimplementedEmailServer can be embedded to have forward compatible implementations.
func (*UnimplementedEmailServer) SendSimpleEmail ¶
Click to show internal directories.
Click to hide internal directories.