Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_wire_proto protoreflect.FileDescriptor
var Wire_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wire.Wire", HandlerType: (*WireServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Transmit", Handler: _Wire_Transmit_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "wire.proto", }
Wire_ServiceDesc is the grpc.ServiceDesc for Wire service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWireServer ¶
func RegisterWireServer(s grpc.ServiceRegistrar, srv WireServer)
Types ¶
type Packet ¶
type Packet struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Packet is a wrapper around bytes.
func (*Packet) Descriptor
deprecated
func (*Packet) ProtoMessage ¶
func (*Packet) ProtoMessage()
func (*Packet) ProtoReflect ¶
func (x *Packet) ProtoReflect() protoreflect.Message
type UnimplementedWireServer ¶
type UnimplementedWireServer struct { }
UnimplementedWireServer must be embedded to have forward compatible implementations.
func (UnimplementedWireServer) Transmit ¶
func (UnimplementedWireServer) Transmit(Wire_TransmitServer) error
type UnsafeWireServer ¶
type UnsafeWireServer interface {
// contains filtered or unexported methods
}
UnsafeWireServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WireServer will result in compilation errors.
type WireClient ¶
type WireClient interface { // Transmit sets up a bidirectional Packet stream. // Metadata can be configured to identify the destination. Transmit(ctx context.Context, opts ...grpc.CallOption) (Wire_TransmitClient, error) }
WireClient is the client API for Wire 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 NewWireClient ¶
func NewWireClient(cc grpc.ClientConnInterface) WireClient
type WireServer ¶
type WireServer interface { // Transmit sets up a bidirectional Packet stream. // Metadata can be configured to identify the destination. Transmit(Wire_TransmitServer) error // contains filtered or unexported methods }
WireServer is the server API for Wire service. All implementations must embed UnimplementedWireServer for forward compatibility