Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterEmsRpcServiceServer(s grpc.ServiceRegistrar, srv EmsRpcServiceServer)
- type Cc
- type Data
- type EmsReq
- func (*EmsReq) Descriptor() ([]byte, []int)deprecated
- func (x *EmsReq) GetCc() []*Cc
- func (x *EmsReq) GetHost() string
- func (x *EmsReq) GetKey() string
- func (x *EmsReq) GetPort() string
- func (x *EmsReq) GetProtocol() string
- func (x *EmsReq) GetRecipientEmail() []string
- func (x *EmsReq) GetSendBody() string
- func (x *EmsReq) GetSendType() string
- func (x *EmsReq) GetSenderMail() string
- func (x *EmsReq) GetSenderName() string
- func (x *EmsReq) GetSenderPwd() string
- func (x *EmsReq) GetSubject() string
- func (*EmsReq) ProtoMessage()
- func (x *EmsReq) ProtoReflect() protoreflect.Message
- func (x *EmsReq) Reset()
- func (x *EmsReq) String() string
- type EmsResp
- func (*EmsResp) Descriptor() ([]byte, []int)deprecated
- func (x *EmsResp) GetCode() int32
- func (x *EmsResp) GetData() *Data
- func (x *EmsResp) GetMsg() string
- func (x *EmsResp) GetPath() string
- func (x *EmsResp) GetRequestID() string
- func (*EmsResp) ProtoMessage()
- func (x *EmsResp) ProtoReflect() protoreflect.Message
- func (x *EmsResp) Reset()
- func (x *EmsResp) String() string
- type EmsRpcServiceClient
- type EmsRpcServiceServer
- type UnimplementedEmsRpcServiceServer
- type UnsafeEmsRpcServiceServer
Constants ¶
const ( EmsRpcService_CheckEmsRpc_FullMethodName = "/ems.EmsRpcService/CheckEmsRpc" EmsRpcService_SendEmsRpc_FullMethodName = "/ems.EmsRpcService/SendEmsRpc" )
Variables ¶
var EmsRpcService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ems.EmsRpcService", HandlerType: (*EmsRpcServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CheckEmsRpc", Handler: _EmsRpcService_CheckEmsRpc_Handler, }, { MethodName: "SendEmsRpc", Handler: _EmsRpcService_SendEmsRpc_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "ems.proto", }
EmsRpcService_ServiceDesc is the grpc.ServiceDesc for EmsRpcService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_ems_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEmsRpcServiceServer ¶
func RegisterEmsRpcServiceServer(s grpc.ServiceRegistrar, srv EmsRpcServiceServer)
Types ¶
type Cc ¶
type Cc struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Cc) Descriptor
deprecated
func (*Cc) ProtoMessage ¶
func (*Cc) ProtoMessage()
func (*Cc) ProtoReflect ¶
func (x *Cc) ProtoReflect() protoreflect.Message
type Data ¶
type Data struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Data) Descriptor
deprecated
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type EmsReq ¶
type EmsReq struct { RecipientEmail []string `protobuf:"bytes,1,rep,name=recipient_email,json=recipientEmail,proto3" json:"recipient_email,omitempty"` Cc []*Cc `protobuf:"bytes,2,rep,name=cc,proto3" json:"cc,omitempty"` Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` SendType string `protobuf:"bytes,4,opt,name=send_type,json=sendType,proto3" json:"send_type,omitempty"` SendBody string `protobuf:"bytes,5,opt,name=send_body,json=sendBody,proto3" json:"send_body,omitempty"` SenderName string `protobuf:"bytes,6,opt,name=sender_name,json=senderName,proto3" json:"sender_name,omitempty"` SenderMail string `protobuf:"bytes,7,opt,name=sender_mail,json=senderMail,proto3" json:"sender_mail,omitempty"` SenderPwd string `protobuf:"bytes,8,opt,name=sender_pwd,json=senderPwd,proto3" json:"sender_pwd,omitempty"` Host string `protobuf:"bytes,9,opt,name=host,proto3" json:"host,omitempty"` Port string `protobuf:"bytes,10,opt,name=port,proto3" json:"port,omitempty"` Protocol string `protobuf:"bytes,11,opt,name=protocol,proto3" json:"protocol,omitempty"` Key string `protobuf:"bytes,12,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*EmsReq) Descriptor
deprecated
func (*EmsReq) GetProtocol ¶
func (*EmsReq) GetRecipientEmail ¶
func (*EmsReq) GetSendBody ¶
func (*EmsReq) GetSendType ¶
func (*EmsReq) GetSenderMail ¶
func (*EmsReq) GetSenderName ¶
func (*EmsReq) GetSenderPwd ¶
func (*EmsReq) GetSubject ¶
func (*EmsReq) ProtoMessage ¶
func (*EmsReq) ProtoMessage()
func (*EmsReq) ProtoReflect ¶
func (x *EmsReq) ProtoReflect() protoreflect.Message
type EmsResp ¶
type EmsResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *Data `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*EmsResp) Descriptor
deprecated
func (*EmsResp) GetRequestID ¶
func (*EmsResp) ProtoMessage ¶
func (*EmsResp) ProtoMessage()
func (*EmsResp) ProtoReflect ¶
func (x *EmsResp) ProtoReflect() protoreflect.Message
type EmsRpcServiceClient ¶
type EmsRpcServiceClient interface { CheckEmsRpc(ctx context.Context, in *EmsReq, opts ...grpc.CallOption) (*EmsResp, error) SendEmsRpc(ctx context.Context, in *EmsReq, opts ...grpc.CallOption) (*EmsResp, error) }
EmsRpcServiceClient is the client API for EmsRpcService 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 NewEmsRpcServiceClient ¶
func NewEmsRpcServiceClient(cc grpc.ClientConnInterface) EmsRpcServiceClient
type EmsRpcServiceServer ¶
type EmsRpcServiceServer interface { CheckEmsRpc(context.Context, *EmsReq) (*EmsResp, error) SendEmsRpc(context.Context, *EmsReq) (*EmsResp, error) // contains filtered or unexported methods }
EmsRpcServiceServer is the server API for EmsRpcService service. All implementations must embed UnimplementedEmsRpcServiceServer for forward compatibility
type UnimplementedEmsRpcServiceServer ¶
type UnimplementedEmsRpcServiceServer struct { }
UnimplementedEmsRpcServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedEmsRpcServiceServer) CheckEmsRpc ¶
func (UnimplementedEmsRpcServiceServer) SendEmsRpc ¶
type UnsafeEmsRpcServiceServer ¶
type UnsafeEmsRpcServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEmsRpcServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EmsRpcServiceServer will types in compilation errors.