Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_transport_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTransportServer ¶
func RegisterTransportServer(s grpc.ServiceRegistrar, srv TransportServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { Headers map[string]string `` /* 155-byte string literal not displayed */ Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetHeaders ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type TransportClient ¶
type TransportClient interface { Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) 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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTransportClient ¶
func NewTransportClient(cc grpc.ClientConnInterface) TransportClient
type TransportServer ¶
type TransportServer interface { Ping(context.Context, *Empty) (*Empty, error) Stream(Transport_StreamServer) error // contains filtered or unexported methods }
TransportServer is the server API for Transport service. All implementations must embed UnimplementedTransportServer for forward compatibility
type Transport_StreamClient ¶
type Transport_StreamServer ¶
type UnimplementedTransportServer ¶
type UnimplementedTransportServer struct { }
UnimplementedTransportServer must be embedded to have forward compatible implementations.
func (UnimplementedTransportServer) Stream ¶
func (UnimplementedTransportServer) Stream(Transport_StreamServer) error
type UnsafeTransportServer ¶
type UnsafeTransportServer interface {
// contains filtered or unexported methods
}
UnsafeTransportServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransportServer will result in compilation errors.
Click to show internal directories.
Click to hide internal directories.