go_micro_transport_grpc

package
v2.0.0-...-a649600 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransportEndpoints

func NewTransportEndpoints() []*api.Endpoint

func RegisterTransportHandler

func RegisterTransportHandler(s server.Server, hdlr TransportHandler, opts ...server.HandlerOption) error

Types

type TransportHandler

type TransportHandler interface {
	Stream(context.Context, Transport_StreamStream) error
}

type TransportService

type TransportService interface {
	Stream(ctx context.Context, opts ...client.CallOption) (Transport_StreamService, error)
}

func NewTransportService

func NewTransportService(name string, c client.Client) TransportService

type Transport_StreamService

type Transport_StreamService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*Message) error
	Recv() (*Message, error)
}

type Transport_StreamStream

type Transport_StreamStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*Message) error
	Recv() (*Message, error)
}

Jump to

Keyboard shortcuts

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