proto

package
v0.0.0-...-aa345d2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_stream_proto protoreflect.FileDescriptor
View Source
var GrpcServe_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.GrpcServe",
	HandlerType: (*GrpcServeServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Tunnel",
			Handler:       _GrpcServe_Tunnel_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "stream.proto",
}

GrpcServe_ServiceDesc is the grpc.ServiceDesc for GrpcServe service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterGrpcServeServer

func RegisterGrpcServeServer(s grpc.ServiceRegistrar, srv GrpcServeServer)

Types

type GrpcServeClient

type GrpcServeClient interface {
	Tunnel(ctx context.Context, opts ...grpc.CallOption) (GrpcServe_TunnelClient, error)
}

GrpcServeClient is the client API for GrpcServe 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 NewGrpcServeClient

func NewGrpcServeClient(cc grpc.ClientConnInterface) GrpcServeClient

type GrpcServeServer

type GrpcServeServer interface {
	Tunnel(GrpcServe_TunnelServer) error
	// contains filtered or unexported methods
}

GrpcServeServer is the server API for GrpcServe service. All implementations must embed UnimplementedGrpcServeServer for forward compatibility

type GrpcServe_TunnelClient

type GrpcServe_TunnelClient interface {
	Send(*PacketData) error
	Recv() (*PacketData, error)
	grpc.ClientStream
}

type GrpcServe_TunnelServer

type GrpcServe_TunnelServer interface {
	Send(*PacketData) error
	Recv() (*PacketData, error)
	grpc.ServerStream
}

type PacketData

type PacketData struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*PacketData) Descriptor deprecated

func (*PacketData) Descriptor() ([]byte, []int)

Deprecated: Use PacketData.ProtoReflect.Descriptor instead.

func (*PacketData) GetData

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

func (*PacketData) ProtoMessage

func (*PacketData) ProtoMessage()

func (*PacketData) ProtoReflect

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

func (*PacketData) Reset

func (x *PacketData) Reset()

func (*PacketData) String

func (x *PacketData) String() string

type UnimplementedGrpcServeServer

type UnimplementedGrpcServeServer struct {
}

UnimplementedGrpcServeServer must be embedded to have forward compatible implementations.

func (UnimplementedGrpcServeServer) Tunnel

type UnsafeGrpcServeServer

type UnsafeGrpcServeServer interface {
	// contains filtered or unexported methods
}

UnsafeGrpcServeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GrpcServeServer will result in compilation errors.

Jump to

Keyboard shortcuts

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