Documentation
¶
Overview ¶
Code generated by Kitex v0.9.1. 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
- func NewServiceInfoForClient() *kitex.ServiceInfo
- func NewServiceInfoForStreamClient() *kitex.ServiceInfo
- func RegisterService(svr server.Server, handler email.EmailService, opts ...server.RegisterOption) error
- 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 ¶
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServer ¶
NewServer creates a server.Server with the given handler and options.
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
NewServiceInfo creates a new ServiceInfo containing all methods
func NewServiceInfoForClient ¶
func NewServiceInfoForClient() *kitex.ServiceInfo
NewServiceInfo creates a new ServiceInfo containing non-streaming methods
func NewServiceInfoForStreamClient ¶
func NewServiceInfoForStreamClient() *kitex.ServiceInfo
func RegisterService ¶
func RegisterService(svr server.Server, handler email.EmailService, opts ...server.RegisterOption) error
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 SendResult ¶
func (*SendResult) FastRead ¶
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) Marshal ¶
func (p *SendResult) Marshal(out []byte) ([]byte, error)
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.