Documentation
¶
Overview ¶
Code generated by Kitex v0.15.1. DO NOT EDIT.
Index ¶
- Variables
- func NewServer(handler pbapi.Echo, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- func NewServiceInfoForClient() *kitex.ServiceInfo
- func NewServiceInfoForStreamClient() *kitex.ServiceInfo
- func RegisterService(svr server.Server, handler pbapi.Echo, opts ...server.RegisterOption) error
- type BidirectionalEchoArgs
- type BidirectionalEchoResult
- func (p *BidirectionalEchoResult) GetResult() interface{}
- func (p *BidirectionalEchoResult) GetSuccess() *pbapi.Response
- func (p *BidirectionalEchoResult) IsSetSuccess() bool
- func (p *BidirectionalEchoResult) Marshal(out []byte) ([]byte, error)
- func (p *BidirectionalEchoResult) SetSuccess(x interface{})
- func (p *BidirectionalEchoResult) Unmarshal(in []byte) error
- type Client
- type Echo_BidirectionalEchoClient
- type Echo_StreamRequestEchoClient
- type Echo_StreamResponseEchoClient
- type StreamClient
- type StreamRequestEchoArgs
- type StreamRequestEchoResult
- func (p *StreamRequestEchoResult) GetResult() interface{}
- func (p *StreamRequestEchoResult) GetSuccess() *pbapi.Response
- func (p *StreamRequestEchoResult) IsSetSuccess() bool
- func (p *StreamRequestEchoResult) Marshal(out []byte) ([]byte, error)
- func (p *StreamRequestEchoResult) SetSuccess(x interface{})
- func (p *StreamRequestEchoResult) Unmarshal(in []byte) error
- type StreamResponseEchoArgs
- type StreamResponseEchoResult
- func (p *StreamResponseEchoResult) GetResult() interface{}
- func (p *StreamResponseEchoResult) GetSuccess() *pbapi.Response
- func (p *StreamResponseEchoResult) IsSetSuccess() bool
- func (p *StreamResponseEchoResult) Marshal(out []byte) ([]byte, error)
- func (p *StreamResponseEchoResult) SetSuccess(x interface{})
- func (p *StreamResponseEchoResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var BidirectionalEchoArgs_Req_DEFAULT *pbapi.Request
View Source
var BidirectionalEchoResult_Success_DEFAULT *pbapi.Response
View Source
var StreamRequestEchoArgs_Req_DEFAULT *pbapi.Request
View Source
var StreamRequestEchoResult_Success_DEFAULT *pbapi.Response
View Source
var StreamResponseEchoArgs_Req_DEFAULT *pbapi.Request
View Source
var StreamResponseEchoResult_Success_DEFAULT *pbapi.Response
Functions ¶
func NewServiceInfo ¶ added in v0.4.2
func NewServiceInfo() *kitex.ServiceInfo
NewServiceInfo creates a new ServiceInfo containing all methods
func NewServiceInfoForClient ¶ added in v0.4.2
func NewServiceInfoForClient() *kitex.ServiceInfo
NewServiceInfo creates a new ServiceInfo containing non-streaming methods
func NewServiceInfoForStreamClient ¶ added in v0.4.2
func NewServiceInfoForStreamClient() *kitex.ServiceInfo
func RegisterService ¶ added in v0.4.2
Types ¶
type BidirectionalEchoArgs ¶
func (*BidirectionalEchoArgs) GetFirstArgument ¶ added in v0.4.2
func (p *BidirectionalEchoArgs) GetFirstArgument() interface{}
func (*BidirectionalEchoArgs) GetReq ¶
func (p *BidirectionalEchoArgs) GetReq() *pbapi.Request
func (*BidirectionalEchoArgs) IsSetReq ¶
func (p *BidirectionalEchoArgs) IsSetReq() bool
func (*BidirectionalEchoArgs) Marshal ¶
func (p *BidirectionalEchoArgs) Marshal(out []byte) ([]byte, error)
func (*BidirectionalEchoArgs) Unmarshal ¶
func (p *BidirectionalEchoArgs) Unmarshal(in []byte) error
type BidirectionalEchoResult ¶
func (*BidirectionalEchoResult) GetResult ¶ added in v0.4.2
func (p *BidirectionalEchoResult) GetResult() interface{}
func (*BidirectionalEchoResult) GetSuccess ¶
func (p *BidirectionalEchoResult) GetSuccess() *pbapi.Response
func (*BidirectionalEchoResult) IsSetSuccess ¶
func (p *BidirectionalEchoResult) IsSetSuccess() bool
func (*BidirectionalEchoResult) Marshal ¶
func (p *BidirectionalEchoResult) Marshal(out []byte) ([]byte, error)
func (*BidirectionalEchoResult) SetSuccess ¶
func (p *BidirectionalEchoResult) SetSuccess(x interface{})
func (*BidirectionalEchoResult) Unmarshal ¶
func (p *BidirectionalEchoResult) Unmarshal(in []byte) error
type Client ¶
type Client interface {
StreamRequestEcho(ctx context.Context, callOptions ...callopt.Option) (stream Echo_StreamRequestEchoClient, err error)
StreamResponseEcho(ctx context.Context, Req *pbapi.Request, callOptions ...callopt.Option) (stream Echo_StreamResponseEchoClient, err error)
BidirectionalEcho(ctx context.Context, callOptions ...callopt.Option) (stream Echo_BidirectionalEchoClient, 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 StreamClient ¶ added in v0.4.2
type StreamClient interface {
StreamRequestEcho(ctx context.Context, callOptions ...streamcall.Option) (stream Echo_StreamRequestEchoClient, err error)
StreamResponseEcho(ctx context.Context, Req *pbapi.Request, callOptions ...streamcall.Option) (stream Echo_StreamResponseEchoClient, err error)
BidirectionalEcho(ctx context.Context, callOptions ...streamcall.Option) (stream Echo_BidirectionalEchoClient, err error)
}
StreamClient is designed to provide Interface for Streaming APIs.
func MustNewStreamClient ¶ added in v0.4.2
func MustNewStreamClient(destService string, opts ...streamclient.Option) StreamClient
MustNewStreamClient creates a stream client for the service's streaming APIs defined in IDL. It panics if any error occurs.
func NewStreamClient ¶ added in v0.4.2
func NewStreamClient(destService string, opts ...streamclient.Option) (StreamClient, error)
NewStreamClient creates a stream client for the service's streaming APIs defined in IDL.
type StreamRequestEchoArgs ¶
func (*StreamRequestEchoArgs) GetFirstArgument ¶ added in v0.4.2
func (p *StreamRequestEchoArgs) GetFirstArgument() interface{}
func (*StreamRequestEchoArgs) GetReq ¶
func (p *StreamRequestEchoArgs) GetReq() *pbapi.Request
func (*StreamRequestEchoArgs) IsSetReq ¶
func (p *StreamRequestEchoArgs) IsSetReq() bool
func (*StreamRequestEchoArgs) Marshal ¶
func (p *StreamRequestEchoArgs) Marshal(out []byte) ([]byte, error)
func (*StreamRequestEchoArgs) Unmarshal ¶
func (p *StreamRequestEchoArgs) Unmarshal(in []byte) error
type StreamRequestEchoResult ¶
func (*StreamRequestEchoResult) GetResult ¶ added in v0.4.2
func (p *StreamRequestEchoResult) GetResult() interface{}
func (*StreamRequestEchoResult) GetSuccess ¶
func (p *StreamRequestEchoResult) GetSuccess() *pbapi.Response
func (*StreamRequestEchoResult) IsSetSuccess ¶
func (p *StreamRequestEchoResult) IsSetSuccess() bool
func (*StreamRequestEchoResult) Marshal ¶
func (p *StreamRequestEchoResult) Marshal(out []byte) ([]byte, error)
func (*StreamRequestEchoResult) SetSuccess ¶
func (p *StreamRequestEchoResult) SetSuccess(x interface{})
func (*StreamRequestEchoResult) Unmarshal ¶
func (p *StreamRequestEchoResult) Unmarshal(in []byte) error
type StreamResponseEchoArgs ¶
func (*StreamResponseEchoArgs) GetFirstArgument ¶ added in v0.4.2
func (p *StreamResponseEchoArgs) GetFirstArgument() interface{}
func (*StreamResponseEchoArgs) GetReq ¶
func (p *StreamResponseEchoArgs) GetReq() *pbapi.Request
func (*StreamResponseEchoArgs) IsSetReq ¶
func (p *StreamResponseEchoArgs) IsSetReq() bool
func (*StreamResponseEchoArgs) Marshal ¶
func (p *StreamResponseEchoArgs) Marshal(out []byte) ([]byte, error)
func (*StreamResponseEchoArgs) Unmarshal ¶
func (p *StreamResponseEchoArgs) Unmarshal(in []byte) error
type StreamResponseEchoResult ¶
func (*StreamResponseEchoResult) GetResult ¶ added in v0.4.2
func (p *StreamResponseEchoResult) GetResult() interface{}
func (*StreamResponseEchoResult) GetSuccess ¶
func (p *StreamResponseEchoResult) GetSuccess() *pbapi.Response
func (*StreamResponseEchoResult) IsSetSuccess ¶
func (p *StreamResponseEchoResult) IsSetSuccess() bool
func (*StreamResponseEchoResult) Marshal ¶
func (p *StreamResponseEchoResult) Marshal(out []byte) ([]byte, error)
func (*StreamResponseEchoResult) SetSuccess ¶
func (p *StreamResponseEchoResult) SetSuccess(x interface{})
func (*StreamResponseEchoResult) Unmarshal ¶
func (p *StreamResponseEchoResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.