conn

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL