Documentation ¶
Overview ¶
Code generated by Kitex v0.8.0. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler email.EmailService, opts ...server.Option) server.Invoker
- func NewServer(handler email.EmailService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type Client
- type SendArgs
- func (p *SendArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *SendArgs) FastWrite(buf []byte) (n int)
- func (p *SendArgs) GetFirstArgument() interface{}
- func (p *SendArgs) GetReq() *email.EmailReq
- func (p *SendArgs) IsSetReq() bool
- func (p *SendArgs) Marshal(out []byte) ([]byte, error)
- func (p *SendArgs) Size() (n int)
- func (p *SendArgs) Unmarshal(in []byte) error
- type SendResult
- func (p *SendResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *SendResult) FastWrite(buf []byte) (n int)
- func (p *SendResult) GetResult() interface{}
- func (p *SendResult) GetSuccess() *email.EmailResp
- func (p *SendResult) IsSetSuccess() bool
- func (p *SendResult) Marshal(out []byte) ([]byte, error)
- func (p *SendResult) SetSuccess(x interface{})
- func (p *SendResult) Size() (n int)
- func (p *SendResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var SendArgs_Req_DEFAULT *email.EmailReq
View Source
var SendResult_Success_DEFAULT *email.EmailResp
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
Types ¶
type Client ¶
type Client interface {
Send(ctx context.Context, Req *email.EmailReq, callOptions ...callopt.Option) (r *email.EmailResp, err error)
}
Client is designed to provide IDL-compatible methods with call-option parameter for kitex framework.
func MustNewClient ¶
MustNewClient creates a client for the service defined in IDL. It panics if any error occurs.
type SendArgs ¶
func (*SendArgs) GetFirstArgument ¶
func (p *SendArgs) GetFirstArgument() interface{}
type SendResult ¶
func (*SendResult) FastWrite ¶
func (p *SendResult) FastWrite(buf []byte) (n int)
func (*SendResult) GetResult ¶
func (p *SendResult) GetResult() interface{}
func (*SendResult) GetSuccess ¶
func (p *SendResult) GetSuccess() *email.EmailResp
func (*SendResult) IsSetSuccess ¶
func (p *SendResult) IsSetSuccess() bool
func (*SendResult) SetSuccess ¶
func (p *SendResult) SetSuccess(x interface{})
func (*SendResult) Size ¶
func (p *SendResult) Size() (n int)
func (*SendResult) Unmarshal ¶
func (p *SendResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.