Documentation
¶
Index ¶
- func RegisterNotificatorServer(s *grpc.Server, srv NotificatorServer)
- type NotificatorClient
- type NotificatorServer
- type SendEmailReply
- func (*SendEmailReply) Descriptor() ([]byte, []int)
- func (m *SendEmailReply) GetId() string
- func (*SendEmailReply) ProtoMessage()
- func (m *SendEmailReply) Reset()
- func (m *SendEmailReply) String() string
- func (m *SendEmailReply) XXX_DiscardUnknown()
- func (m *SendEmailReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SendEmailReply) XXX_Merge(src proto.Message)
- func (m *SendEmailReply) XXX_Size() int
- func (m *SendEmailReply) XXX_Unmarshal(b []byte) error
- type SendEmailRequest
- func (*SendEmailRequest) Descriptor() ([]byte, []int)
- func (m *SendEmailRequest) GetContent() string
- func (m *SendEmailRequest) GetEmail() string
- func (*SendEmailRequest) ProtoMessage()
- func (m *SendEmailRequest) Reset()
- func (m *SendEmailRequest) String() string
- func (m *SendEmailRequest) XXX_DiscardUnknown()
- func (m *SendEmailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SendEmailRequest) XXX_Merge(src proto.Message)
- func (m *SendEmailRequest) XXX_Size() int
- func (m *SendEmailRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNotificatorServer ¶
func RegisterNotificatorServer(s *grpc.Server, srv NotificatorServer)
Types ¶
type NotificatorClient ¶
type NotificatorClient interface {
SendEmail(ctx context.Context, in *SendEmailRequest, opts ...grpc.CallOption) (*SendEmailReply, error)
}
NotificatorClient is the client API for Notificator service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNotificatorClient ¶
func NewNotificatorClient(cc *grpc.ClientConn) NotificatorClient
type NotificatorServer ¶
type NotificatorServer interface {
SendEmail(context.Context, *SendEmailRequest) (*SendEmailReply, error)
}
NotificatorServer is the server API for Notificator service.
type SendEmailReply ¶
type SendEmailReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendEmailReply) Descriptor ¶
func (*SendEmailReply) Descriptor() ([]byte, []int)
func (*SendEmailReply) GetId ¶
func (m *SendEmailReply) GetId() string
func (*SendEmailReply) ProtoMessage ¶
func (*SendEmailReply) ProtoMessage()
func (*SendEmailReply) Reset ¶
func (m *SendEmailReply) Reset()
func (*SendEmailReply) String ¶
func (m *SendEmailReply) String() string
func (*SendEmailReply) XXX_DiscardUnknown ¶
func (m *SendEmailReply) XXX_DiscardUnknown()
func (*SendEmailReply) XXX_Marshal ¶
func (m *SendEmailReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendEmailReply) XXX_Merge ¶
func (dst *SendEmailReply) XXX_Merge(src proto.Message)
func (*SendEmailReply) XXX_Size ¶
func (m *SendEmailReply) XXX_Size() int
func (*SendEmailReply) XXX_Unmarshal ¶
func (m *SendEmailReply) XXX_Unmarshal(b []byte) error
type SendEmailRequest ¶
type SendEmailRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendEmailRequest) Descriptor ¶
func (*SendEmailRequest) Descriptor() ([]byte, []int)
func (*SendEmailRequest) GetContent ¶
func (m *SendEmailRequest) GetContent() string
func (*SendEmailRequest) GetEmail ¶
func (m *SendEmailRequest) GetEmail() string
func (*SendEmailRequest) ProtoMessage ¶
func (*SendEmailRequest) ProtoMessage()
func (*SendEmailRequest) Reset ¶
func (m *SendEmailRequest) Reset()
func (*SendEmailRequest) String ¶
func (m *SendEmailRequest) String() string
func (*SendEmailRequest) XXX_DiscardUnknown ¶
func (m *SendEmailRequest) XXX_DiscardUnknown()
func (*SendEmailRequest) XXX_Marshal ¶
func (m *SendEmailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendEmailRequest) XXX_Merge ¶
func (dst *SendEmailRequest) XXX_Merge(src proto.Message)
func (*SendEmailRequest) XXX_Size ¶
func (m *SendEmailRequest) XXX_Size() int
func (*SendEmailRequest) XXX_Unmarshal ¶
func (m *SendEmailRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.