Documentation ¶
Index ¶
- Variables
- func NewInvoker(handler pbapi.Echo, opts ...server.Option) server.Invoker
- func NewServer(handler pbapi.Echo, opts ...server.Option) server.Server
- type BidirectionalEchoArgs
- type BidirectionalEchoResult
- 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 StreamRequestEchoArgs
- type StreamRequestEchoResult
- 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) 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 NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
Types ¶
type BidirectionalEchoArgs ¶
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) 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 StreamRequestEchoArgs ¶
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) 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) 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) 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.