Documentation ¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type SendMailByInstanceIdRequest
- func (*SendMailByInstanceIdRequest) Descriptor() ([]byte, []int)
- func (m *SendMailByInstanceIdRequest) GetCcToGroup() []string
- func (m *SendMailByInstanceIdRequest) GetCcToUser() []string
- func (m *SendMailByInstanceIdRequest) GetContentType() string
- func (m *SendMailByInstanceIdRequest) GetMessage() string
- func (m *SendMailByInstanceIdRequest) GetSendFromName() string
- func (m *SendMailByInstanceIdRequest) GetSendToGroup() []string
- func (m *SendMailByInstanceIdRequest) GetSendToUser() []string
- func (m *SendMailByInstanceIdRequest) GetSubject() string
- func (*SendMailByInstanceIdRequest) ProtoMessage()
- func (m *SendMailByInstanceIdRequest) Reset()
- func (m *SendMailByInstanceIdRequest) String() string
- func (this *SendMailByInstanceIdRequest) Validate() error
- func (m *SendMailByInstanceIdRequest) XXX_DiscardUnknown()
- func (m *SendMailByInstanceIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendMailByInstanceIdRequest) XXX_Merge(src proto.Message)
- func (m *SendMailByInstanceIdRequest) XXX_Size() int
- func (m *SendMailByInstanceIdRequest) XXX_Unmarshal(b []byte) error
- type SendMailByInstanceIdResponseWrapper
- func (*SendMailByInstanceIdResponseWrapper) Descriptor() ([]byte, []int)
- func (m *SendMailByInstanceIdResponseWrapper) GetCode() int32
- func (m *SendMailByInstanceIdResponseWrapper) GetCodeExplain() string
- func (m *SendMailByInstanceIdResponseWrapper) GetData() *types.Empty
- func (m *SendMailByInstanceIdResponseWrapper) GetError() string
- func (*SendMailByInstanceIdResponseWrapper) ProtoMessage()
- func (m *SendMailByInstanceIdResponseWrapper) Reset()
- func (m *SendMailByInstanceIdResponseWrapper) String() string
- func (this *SendMailByInstanceIdResponseWrapper) Validate() error
- func (m *SendMailByInstanceIdResponseWrapper) XXX_DiscardUnknown()
- func (m *SendMailByInstanceIdResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendMailByInstanceIdResponseWrapper) XXX_Merge(src proto.Message)
- func (m *SendMailByInstanceIdResponseWrapper) XXX_Size() int
- func (m *SendMailByInstanceIdResponseWrapper) XXX_Unmarshal(b []byte) error
- type SendMailRequest
- func (*SendMailRequest) Descriptor() ([]byte, []int)
- func (m *SendMailRequest) GetCc() string
- func (m *SendMailRequest) GetContentType() string
- func (m *SendMailRequest) GetMsg() string
- func (m *SendMailRequest) GetSendFrom() string
- func (m *SendMailRequest) GetSendFromName() string
- func (m *SendMailRequest) GetSendTo() string
- func (m *SendMailRequest) GetSubject() string
- func (*SendMailRequest) ProtoMessage()
- func (m *SendMailRequest) Reset()
- func (m *SendMailRequest) String() string
- func (this *SendMailRequest) Validate() error
- func (m *SendMailRequest) XXX_DiscardUnknown()
- func (m *SendMailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendMailRequest) XXX_Merge(src proto.Message)
- func (m *SendMailRequest) XXX_Size() int
- func (m *SendMailRequest) XXX_Unmarshal(b []byte) error
- type SendMailResponseWrapper
- func (*SendMailResponseWrapper) Descriptor() ([]byte, []int)
- func (m *SendMailResponseWrapper) GetCode() int32
- func (m *SendMailResponseWrapper) GetCodeExplain() string
- func (m *SendMailResponseWrapper) GetData() *types.Empty
- func (m *SendMailResponseWrapper) GetError() string
- func (*SendMailResponseWrapper) ProtoMessage()
- func (m *SendMailResponseWrapper) Reset()
- func (m *SendMailResponseWrapper) String() string
- func (this *SendMailResponseWrapper) Validate() error
- func (m *SendMailResponseWrapper) XXX_DiscardUnknown()
- func (m *SendMailResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendMailResponseWrapper) XXX_Merge(src proto.Message)
- func (m *SendMailResponseWrapper) XXX_Size() int
- func (m *SendMailResponseWrapper) XXX_Unmarshal(b []byte) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(s giraffe_micro.Server, srv Service)
Types ¶
type Client ¶
type Client interface { SendMail(ctx context.Context, in *SendMailRequest) (*types.Empty, error) SendMailByInstanceId(ctx context.Context, in *SendMailByInstanceIdRequest) (*types.Empty, error) }
Client 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 NewClient ¶
func NewClient(c giraffe_micro.Client) Client
type SendMailByInstanceIdRequest ¶
type SendMailByInstanceIdRequest struct { // //目标 user instanceId SendToUser []string `protobuf:"bytes,1,rep,name=send_to_user,json=sendToUser,proto3" json:"send_to_user" form:"send_to_user"` // //目标用户群组 SendToGroup []string `protobuf:"bytes,2,rep,name=send_to_group,json=sendToGroup,proto3" json:"send_to_group" form:"send_to_group"` // //邮件标题 Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject" form:"subject"` // //邮件内容 Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message" form:"message"` // //抄送 user instanceId CcToUser []string `protobuf:"bytes,5,rep,name=cc_to_user,json=ccToUser,proto3" json:"cc_to_user" form:"cc_to_user"` // //抄送 group instanceId CcToGroup []string `protobuf:"bytes,6,rep,name=cc_to_group,json=ccToGroup,proto3" json:"cc_to_group" form:"cc_to_group"` // //发送方名称 SendFromName string `protobuf:"bytes,7,opt,name=send_from_name,json=sendFromName,proto3" json:"send_from_name" form:"send_from_name"` // //发送内容类型,默认为text/plain ContentType string `protobuf:"bytes,8,opt,name=contentType,proto3" json:"contentType" form:"contentType"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SendMailByInstanceId请求
func (*SendMailByInstanceIdRequest) Descriptor ¶
func (*SendMailByInstanceIdRequest) Descriptor() ([]byte, []int)
func (*SendMailByInstanceIdRequest) GetCcToGroup ¶
func (m *SendMailByInstanceIdRequest) GetCcToGroup() []string
func (*SendMailByInstanceIdRequest) GetCcToUser ¶
func (m *SendMailByInstanceIdRequest) GetCcToUser() []string
func (*SendMailByInstanceIdRequest) GetContentType ¶
func (m *SendMailByInstanceIdRequest) GetContentType() string
func (*SendMailByInstanceIdRequest) GetMessage ¶
func (m *SendMailByInstanceIdRequest) GetMessage() string
func (*SendMailByInstanceIdRequest) GetSendFromName ¶
func (m *SendMailByInstanceIdRequest) GetSendFromName() string
func (*SendMailByInstanceIdRequest) GetSendToGroup ¶
func (m *SendMailByInstanceIdRequest) GetSendToGroup() []string
func (*SendMailByInstanceIdRequest) GetSendToUser ¶
func (m *SendMailByInstanceIdRequest) GetSendToUser() []string
func (*SendMailByInstanceIdRequest) GetSubject ¶
func (m *SendMailByInstanceIdRequest) GetSubject() string
func (*SendMailByInstanceIdRequest) ProtoMessage ¶
func (*SendMailByInstanceIdRequest) ProtoMessage()
func (*SendMailByInstanceIdRequest) Reset ¶
func (m *SendMailByInstanceIdRequest) Reset()
func (*SendMailByInstanceIdRequest) String ¶
func (m *SendMailByInstanceIdRequest) String() string
func (*SendMailByInstanceIdRequest) Validate ¶
func (this *SendMailByInstanceIdRequest) Validate() error
func (*SendMailByInstanceIdRequest) XXX_DiscardUnknown ¶
func (m *SendMailByInstanceIdRequest) XXX_DiscardUnknown()
func (*SendMailByInstanceIdRequest) XXX_Marshal ¶
func (m *SendMailByInstanceIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendMailByInstanceIdRequest) XXX_Merge ¶
func (m *SendMailByInstanceIdRequest) XXX_Merge(src proto.Message)
func (*SendMailByInstanceIdRequest) XXX_Size ¶
func (m *SendMailByInstanceIdRequest) XXX_Size() int
func (*SendMailByInstanceIdRequest) XXX_Unmarshal ¶
func (m *SendMailByInstanceIdRequest) XXX_Unmarshal(b []byte) error
type SendMailByInstanceIdResponseWrapper ¶
type SendMailByInstanceIdResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *types.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SendMailByInstanceIdApi返回
func (*SendMailByInstanceIdResponseWrapper) Descriptor ¶
func (*SendMailByInstanceIdResponseWrapper) Descriptor() ([]byte, []int)
func (*SendMailByInstanceIdResponseWrapper) GetCode ¶
func (m *SendMailByInstanceIdResponseWrapper) GetCode() int32
func (*SendMailByInstanceIdResponseWrapper) GetCodeExplain ¶
func (m *SendMailByInstanceIdResponseWrapper) GetCodeExplain() string
func (*SendMailByInstanceIdResponseWrapper) GetData ¶
func (m *SendMailByInstanceIdResponseWrapper) GetData() *types.Empty
func (*SendMailByInstanceIdResponseWrapper) GetError ¶
func (m *SendMailByInstanceIdResponseWrapper) GetError() string
func (*SendMailByInstanceIdResponseWrapper) ProtoMessage ¶
func (*SendMailByInstanceIdResponseWrapper) ProtoMessage()
func (*SendMailByInstanceIdResponseWrapper) Reset ¶
func (m *SendMailByInstanceIdResponseWrapper) Reset()
func (*SendMailByInstanceIdResponseWrapper) String ¶
func (m *SendMailByInstanceIdResponseWrapper) String() string
func (*SendMailByInstanceIdResponseWrapper) Validate ¶
func (this *SendMailByInstanceIdResponseWrapper) Validate() error
func (*SendMailByInstanceIdResponseWrapper) XXX_DiscardUnknown ¶
func (m *SendMailByInstanceIdResponseWrapper) XXX_DiscardUnknown()
func (*SendMailByInstanceIdResponseWrapper) XXX_Marshal ¶
func (m *SendMailByInstanceIdResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendMailByInstanceIdResponseWrapper) XXX_Merge ¶
func (m *SendMailByInstanceIdResponseWrapper) XXX_Merge(src proto.Message)
func (*SendMailByInstanceIdResponseWrapper) XXX_Size ¶
func (m *SendMailByInstanceIdResponseWrapper) XXX_Size() int
func (*SendMailByInstanceIdResponseWrapper) XXX_Unmarshal ¶
func (m *SendMailByInstanceIdResponseWrapper) XXX_Unmarshal(b []byte) error
type SendMailRequest ¶
type SendMailRequest struct { // //目标地址 SendTo string `protobuf:"bytes,1,opt,name=sendTo,proto3" json:"sendTo" form:"sendTo"` // //邮件标题 Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject" form:"subject"` // //邮件内容 Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg" form:"msg"` // //抄送 Cc string `protobuf:"bytes,4,opt,name=cc,proto3" json:"cc" form:"cc"` // //发送方地址 SendFrom string `protobuf:"bytes,5,opt,name=sendFrom,proto3" json:"sendFrom" form:"sendFrom"` // //发送方名称 SendFromName string `protobuf:"bytes,6,opt,name=sendFromName,proto3" json:"sendFromName" form:"sendFromName"` // //发送内容类型,默认为text/plain ContentType string `protobuf:"bytes,7,opt,name=contentType,proto3" json:"contentType" form:"contentType"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SendMail请求
func (*SendMailRequest) Descriptor ¶
func (*SendMailRequest) Descriptor() ([]byte, []int)
func (*SendMailRequest) GetCc ¶
func (m *SendMailRequest) GetCc() string
func (*SendMailRequest) GetContentType ¶
func (m *SendMailRequest) GetContentType() string
func (*SendMailRequest) GetMsg ¶
func (m *SendMailRequest) GetMsg() string
func (*SendMailRequest) GetSendFrom ¶
func (m *SendMailRequest) GetSendFrom() string
func (*SendMailRequest) GetSendFromName ¶
func (m *SendMailRequest) GetSendFromName() string
func (*SendMailRequest) GetSendTo ¶
func (m *SendMailRequest) GetSendTo() string
func (*SendMailRequest) GetSubject ¶
func (m *SendMailRequest) GetSubject() string
func (*SendMailRequest) ProtoMessage ¶
func (*SendMailRequest) ProtoMessage()
func (*SendMailRequest) Reset ¶
func (m *SendMailRequest) Reset()
func (*SendMailRequest) String ¶
func (m *SendMailRequest) String() string
func (*SendMailRequest) Validate ¶
func (this *SendMailRequest) Validate() error
func (*SendMailRequest) XXX_DiscardUnknown ¶
func (m *SendMailRequest) XXX_DiscardUnknown()
func (*SendMailRequest) XXX_Marshal ¶
func (m *SendMailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendMailRequest) XXX_Merge ¶
func (m *SendMailRequest) XXX_Merge(src proto.Message)
func (*SendMailRequest) XXX_Size ¶
func (m *SendMailRequest) XXX_Size() int
func (*SendMailRequest) XXX_Unmarshal ¶
func (m *SendMailRequest) XXX_Unmarshal(b []byte) error
type SendMailResponseWrapper ¶
type SendMailResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *types.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SendMailApi返回
func (*SendMailResponseWrapper) Descriptor ¶
func (*SendMailResponseWrapper) Descriptor() ([]byte, []int)
func (*SendMailResponseWrapper) GetCode ¶
func (m *SendMailResponseWrapper) GetCode() int32
func (*SendMailResponseWrapper) GetCodeExplain ¶
func (m *SendMailResponseWrapper) GetCodeExplain() string
func (*SendMailResponseWrapper) GetData ¶
func (m *SendMailResponseWrapper) GetData() *types.Empty
func (*SendMailResponseWrapper) GetError ¶
func (m *SendMailResponseWrapper) GetError() string
func (*SendMailResponseWrapper) ProtoMessage ¶
func (*SendMailResponseWrapper) ProtoMessage()
func (*SendMailResponseWrapper) Reset ¶
func (m *SendMailResponseWrapper) Reset()
func (*SendMailResponseWrapper) String ¶
func (m *SendMailResponseWrapper) String() string
func (*SendMailResponseWrapper) Validate ¶
func (this *SendMailResponseWrapper) Validate() error
func (*SendMailResponseWrapper) XXX_DiscardUnknown ¶
func (m *SendMailResponseWrapper) XXX_DiscardUnknown()
func (*SendMailResponseWrapper) XXX_Marshal ¶
func (m *SendMailResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendMailResponseWrapper) XXX_Merge ¶
func (m *SendMailResponseWrapper) XXX_Merge(src proto.Message)
func (*SendMailResponseWrapper) XXX_Size ¶
func (m *SendMailResponseWrapper) XXX_Size() int
func (*SendMailResponseWrapper) XXX_Unmarshal ¶
func (m *SendMailResponseWrapper) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.