Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebClient ¶
type WebClient struct {
// contains filtered or unexported fields
}
WebClient is an adapter for a gRPC-Web client.
func NewWebClient ¶
func NewWebClient(cc *grpcweb.ClientConn) *WebClient
NewWebClient creates a new WebClient.
func (*WebClient) Invoke ¶
func (c *WebClient) Invoke(ctx context.Context, method string, args, reply any, _ ...grpc.CallOption) error
Invoke makes a unary gRPC call to the server.
func (*WebClient) NewStream ¶
func (c *WebClient) NewStream( ctx context.Context, desc *grpc.StreamDesc, method string, _ ...grpc.CallOption, ) (grpc.ClientStream, error)
NewStream creates a new client stream for making streaming gRPC calls to the server.
Click to show internal directories.
Click to hide internal directories.