proto

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TnetTunel_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "TnetTunel",
	HandlerType: (*TnetTunelServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Tunnel",
			Handler:       _TnetTunel_Tunnel_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "tnet.proto",
}

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

Functions

func RegisterTnetTunelServer added in v0.7.5

func RegisterTnetTunelServer(s grpc.ServiceRegistrar, srv TnetTunelServer)

func RegisterTnetTunelServerX added in v0.7.5

func RegisterTnetTunelServerX(s grpc.ServiceRegistrar, srv TnetTunelServer, method string)

func ServerDesc

func ServerDesc(method string) grpc.ServiceDesc

Types

type Chunk

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

func (*Chunk) Descriptor deprecated

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

Deprecated: Use Chunk.ProtoReflect.Descriptor instead.

func (*Chunk) GetData

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

func (*Chunk) ProtoMessage

func (*Chunk) ProtoMessage()

func (*Chunk) ProtoReflect

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

func (*Chunk) Reset

func (x *Chunk) Reset()

func (*Chunk) String

func (x *Chunk) String() string

type TnetTunelClient added in v0.7.5

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

TnetTunelClient is the client API for TnetTunel 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 NewTnetTunelClient added in v0.7.5

func NewTnetTunelClient(cc grpc.ClientConnInterface) TnetTunelClient

type TnetTunelClientX added in v0.7.5

type TnetTunelClientX interface {
	TunnelX(ctx context.Context, method string, opts ...grpc.CallOption) (TnetTunel_TunnelClient, error)
}

func NewTnetTunelClientX added in v0.7.5

func NewTnetTunelClientX(cc grpc.ClientConnInterface) TnetTunelClientX

type TnetTunelServer added in v0.7.5

type TnetTunelServer interface {
	Tunnel(TnetTunel_TunnelServer) error
	// contains filtered or unexported methods
}

TnetTunelServer is the server API for TnetTunel service. All implementations must embed UnimplementedTnetTunelServer for forward compatibility

type TnetTunel_TunnelClient added in v0.7.5

type TnetTunel_TunnelClient interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ClientStream
}

type TnetTunel_TunnelServer added in v0.7.5

type TnetTunel_TunnelServer interface {
	Send(*Chunk) error
	Recv() (*Chunk, error)
	grpc.ServerStream
}

type UnimplementedTnetTunelServer added in v0.7.5

type UnimplementedTnetTunelServer struct {
}

UnimplementedTnetTunelServer must be embedded to have forward compatible implementations.

func (UnimplementedTnetTunelServer) Tunnel added in v0.7.5

type UnsafeTnetTunelServer added in v0.7.5

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

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

Jump to

Keyboard shortcuts

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