Documentation ¶
Overview ¶
Package genericclient ...
Index ¶
- func StreamingServiceInfo(g generic.Generic) *serviceinfo.ServiceInfo
- type BidirectionalStreaming
- type Client
- func NewClient(destService string, g generic.Generic, opts ...client.Option) (Client, error)
- func NewClientWithServiceInfo(destService string, g generic.Generic, svcInfo *serviceinfo.ServiceInfo, ...) (Client, error)
- func NewStreamingClient(destService string, g generic.Generic, opts ...client.Option) (Client, error)
- func NewStreamingClientWithServiceInfo(destService string, g generic.Generic, svcInfo *serviceinfo.ServiceInfo, ...) (Client, error)
- type ClientStreaming
- type ServerStreaming
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamingServiceInfo ¶ added in v0.12.0
func StreamingServiceInfo(g generic.Generic) *serviceinfo.ServiceInfo
Types ¶
type BidirectionalStreaming ¶ added in v0.12.0
type BidirectionalStreaming interface { streaming.Stream Send(req interface{}) error Recv() (resp interface{}, err error) }
func NewBidirectionalStreaming ¶ added in v0.12.0
type Client ¶
type Client interface { generic.Closer // GenericCall generic call GenericCall(ctx context.Context, method string, request interface{}, callOptions ...callopt.Option) (response interface{}, err error) }
Client generic client
func NewClientWithServiceInfo ¶
func NewClientWithServiceInfo(destService string, g generic.Generic, svcInfo *serviceinfo.ServiceInfo, opts ...client.Option) (Client, error)
NewClientWithServiceInfo create a generic client with serviceInfo
func NewStreamingClient ¶ added in v0.12.0
func NewStreamingClientWithServiceInfo ¶ added in v0.12.0
func NewStreamingClientWithServiceInfo(destService string, g generic.Generic, svcInfo *serviceinfo.ServiceInfo, opts ...client.Option) (Client, error)
type ClientStreaming ¶ added in v0.12.0
type ClientStreaming interface { streaming.Stream Send(req interface{}) error CloseAndRecv() (resp interface{}, err error) }
func NewClientStreaming ¶ added in v0.12.0
type ServerStreaming ¶ added in v0.12.0
func NewServerStreaming ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.