wire

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Packet.ProtoReflect.Descriptor instead.

func (*Packet) GetData

func (x *Packet) GetData() []byte

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) ProtoReflect

func (x *Packet) ProtoReflect() protoreflect.Message

func (*Packet) Reset

func (x *Packet) Reset()

func (*Packet) String

func (x *Packet) String() string

type UnimplementedWireServer

type UnimplementedWireServer struct {
}

UnimplementedWireServer must be embedded to have forward compatible implementations.

func (UnimplementedWireServer) Transmit

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

type Wire_TransmitClient

type Wire_TransmitClient interface {
	Send(*Packet) error
	Recv() (*Packet, error)
	grpc.ClientStream
}

type Wire_TransmitServer

type Wire_TransmitServer interface {
	Send(*Packet) error
	Recv() (*Packet, error)
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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