grpcframe

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientConnInvoke

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

func ClientConnNewStream

func ClientConnNewStream(cc *grpc.ClientConn, ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (grpc.ClientStream, error)

func ServerRegisterService

func ServerRegisterService(s *grpc.Server, sd *grpc.ServiceDesc, ss interface{})

func ServerServe added in v1.6.2

func ServerServe(s *grpc.Server, lis net.Listener) error

func WrapClientConnInvoke

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

func WrapClientConnNewStream

func WrapClientConnNewStream(cc *grpc.ClientConn, ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (grpc.ClientStream, error)

func WrapServerRegisterService

func WrapServerRegisterService(s *grpc.Server, sd *grpc.ServiceDesc, ss interface{})

func WrapServerServe added in v1.6.2

func WrapServerServe(s *grpc.Server, lis net.Listener) error

Types

type ClientStreamWrapper

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

func (*ClientStreamWrapper) CloseSend

func (w *ClientStreamWrapper) CloseSend() error

func (*ClientStreamWrapper) Context

func (w *ClientStreamWrapper) Context() context.Context

func (*ClientStreamWrapper) Header

func (w *ClientStreamWrapper) Header() (metadata.MD, error)

func (*ClientStreamWrapper) RecvMsg

func (w *ClientStreamWrapper) RecvMsg(m interface{}) error

func (*ClientStreamWrapper) SendMsg

func (w *ClientStreamWrapper) SendMsg(m interface{}) error

func (*ClientStreamWrapper) Trailer

func (w *ClientStreamWrapper) Trailer() metadata.MD

type StreamHandler

type StreamHandler func(srv interface{}, stream grpc.ServerStream) error

Jump to

Keyboard shortcuts

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