ems

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmsRpcService_CheckEmsRpc_FullMethodName = "/ems.EmsRpcService/CheckEmsRpc"
	EmsRpcService_SendEmsRpc_FullMethodName  = "/ems.EmsRpcService/SendEmsRpc"
)

Variables

View Source
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)

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) Descriptor() ([]byte, []int)

Deprecated: Use Cc.ProtoReflect.Descriptor instead.

func (*Cc) GetEmail

func (x *Cc) GetEmail() string

func (*Cc) GetName

func (x *Cc) GetName() string

func (*Cc) ProtoMessage

func (*Cc) ProtoMessage()

func (*Cc) ProtoReflect

func (x *Cc) ProtoReflect() protoreflect.Message

func (*Cc) Reset

func (x *Cc) Reset()

func (*Cc) String

func (x *Cc) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetData

func (x *Data) GetData() string

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use EmsReq.ProtoReflect.Descriptor instead.

func (*EmsReq) GetCc

func (x *EmsReq) GetCc() []*Cc

func (*EmsReq) GetHost

func (x *EmsReq) GetHost() string

func (*EmsReq) GetKey

func (x *EmsReq) GetKey() string

func (*EmsReq) GetPort

func (x *EmsReq) GetPort() string

func (*EmsReq) GetProtocol

func (x *EmsReq) GetProtocol() string

func (*EmsReq) GetRecipientEmail

func (x *EmsReq) GetRecipientEmail() []string

func (*EmsReq) GetSendBody

func (x *EmsReq) GetSendBody() string

func (*EmsReq) GetSendType

func (x *EmsReq) GetSendType() string

func (*EmsReq) GetSenderMail

func (x *EmsReq) GetSenderMail() string

func (*EmsReq) GetSenderName

func (x *EmsReq) GetSenderName() string

func (*EmsReq) GetSenderPwd

func (x *EmsReq) GetSenderPwd() string

func (*EmsReq) GetSubject

func (x *EmsReq) GetSubject() string

func (*EmsReq) ProtoMessage

func (*EmsReq) ProtoMessage()

func (*EmsReq) ProtoReflect

func (x *EmsReq) ProtoReflect() protoreflect.Message

func (*EmsReq) Reset

func (x *EmsReq) Reset()

func (*EmsReq) String

func (x *EmsReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use EmsResp.ProtoReflect.Descriptor instead.

func (*EmsResp) GetCode

func (x *EmsResp) GetCode() int32

func (*EmsResp) GetData

func (x *EmsResp) GetData() *Data

func (*EmsResp) GetMsg

func (x *EmsResp) GetMsg() string

func (*EmsResp) GetPath

func (x *EmsResp) GetPath() string

func (*EmsResp) GetRequestID

func (x *EmsResp) GetRequestID() string

func (*EmsResp) ProtoMessage

func (*EmsResp) ProtoMessage()

func (*EmsResp) ProtoReflect

func (x *EmsResp) ProtoReflect() protoreflect.Message

func (*EmsResp) Reset

func (x *EmsResp) Reset()

func (*EmsResp) String

func (x *EmsResp) String() string

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.

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.

Jump to

Keyboard shortcuts

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