grpcweb

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BidiStream added in v0.2.5

type BidiStream interface {
	Send(ctx context.Context, req interface{}) error
	Receive(ctx context.Context, res interface{}) error
	CloseSend() error
}

type CallOption added in v0.2.5

type CallOption func(*callOptions)

func ForceCodec added in v0.2.5

func ForceCodec(codec encoding.Codec) CallOption

type ClientConn added in v0.2.5

type ClientConn struct {
	// contains filtered or unexported fields
}

func DialContext added in v0.2.5

func DialContext(host string, opts ...DialOption) (*ClientConn, error)

func (*ClientConn) Invoke added in v0.2.5

func (c *ClientConn) Invoke(ctx context.Context, method string, args, reply interface{}, opts ...CallOption) error

func (*ClientConn) NewBidiStream added in v0.2.5

func (c *ClientConn) NewBidiStream(desc *grpc.StreamDesc, method string, opts ...CallOption) (BidiStream, error)

func (*ClientConn) NewClientStream added in v0.2.5

func (c *ClientConn) NewClientStream(desc *grpc.StreamDesc, method string, opts ...CallOption) (ClientStream, error)

func (*ClientConn) NewServerStream added in v0.2.5

func (c *ClientConn) NewServerStream(desc *grpc.StreamDesc, method string, opts ...CallOption) (ServerStream, error)

type ClientStream added in v0.2.5

type ClientStream interface {
	Send(ctx context.Context, req interface{}) error
	CloseAndReceive(ctx context.Context, res interface{}) error
}

type DialOption added in v0.2.5

type DialOption func(*dialOptions)

func WithDefaultCallOptions added in v0.2.5

func WithDefaultCallOptions(opts ...CallOption) DialOption

func WithInsecure added in v0.2.5

func WithInsecure() DialOption

func WithTransportCredentials added in v0.2.5

func WithTransportCredentials(creds credentials.TransportCredentials) DialOption

type ServerStream added in v0.2.5

type ServerStream interface {
	Send(ctx context.Context, req interface{}) error
	Receive(ctx context.Context, res interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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