Documentation ¶
Index ¶
- Variables
- func NewTransportEndpoints() []*apipb.Endpoint
- func RegisterTransportHandler(s server.Server, hdlr TransportHandler, opts ...server.HandlerOption) error
- func RegisterTransportServer(s *grpc.Server, srv TransportServer)
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (m *Message) XSize() (n int)
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type TransportClient
- type TransportHandler
- type TransportServer
- type TransportService
- type Transport_StreamClient
- type Transport_StreamServer
- type Transport_StreamService
- type Transport_StreamStream
- type UnimplementedTransportServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewTransportEndpoints ¶
API Endpoints for Transport service
func RegisterTransportHandler ¶
func RegisterTransportHandler(s server.Server, hdlr TransportHandler, opts ...server.HandlerOption) error
func RegisterTransportServer ¶
func RegisterTransportServer(s *grpc.Server, srv TransportServer)
Types ¶
type Message ¶
type Message struct { Header map[string]string `` /* 153-byte string literal not displayed */ Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) MarshalToSizedBuffer ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type TransportClient ¶
type TransportClient interface {
Stream(ctx context.Context, opts ...grpc.CallOption) (Transport_StreamClient, error)
}
TransportClient is the client API for Transport service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTransportClient ¶
func NewTransportClient(cc *grpc.ClientConn) TransportClient
type TransportHandler ¶
type TransportHandler interface {
Stream(context.Context, Transport_StreamStream) error
}
Server API for Transport service
type TransportServer ¶
type TransportServer interface {
Stream(Transport_StreamServer) error
}
TransportServer is the server API for Transport service.
type TransportService ¶
type TransportService interface {
Stream(ctx context.Context, opts ...client.CallOption) (Transport_StreamService, error)
}
Client API for Transport service
func NewTransportService ¶
func NewTransportService(name string, c client.Client) TransportService
type Transport_StreamClient ¶
type Transport_StreamServer ¶
type Transport_StreamService ¶
type Transport_StreamStream ¶
type UnimplementedTransportServer ¶
type UnimplementedTransportServer struct { }
UnimplementedTransportServer can be embedded to have forward compatible implementations.
func (*UnimplementedTransportServer) Stream ¶
func (*UnimplementedTransportServer) Stream(srv Transport_StreamServer) error
Click to show internal directories.
Click to hide internal directories.