proto

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GostTunel_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "GostTunel",
	HandlerType: (*GostTunelServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Tunnel",
			Handler:       _GostTunel_Tunnel_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "gost.proto",
}

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

Functions

func RegisterGostTunelServer

func RegisterGostTunelServer(s grpc.ServiceRegistrar, srv GostTunelServer)

func RegisterGostTunelServerX

func RegisterGostTunelServerX(s grpc.ServiceRegistrar, srv GostTunelServer, 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 GostTunelClient

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

GostTunelClient is the client API for GostTunel 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 NewGostTunelClient

func NewGostTunelClient(cc grpc.ClientConnInterface) GostTunelClient

type GostTunelClientX

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

func NewGostTunelClientX

func NewGostTunelClientX(cc grpc.ClientConnInterface) GostTunelClientX

type GostTunelServer

type GostTunelServer interface {
	Tunnel(GostTunel_TunnelServer) error
	// contains filtered or unexported methods
}

GostTunelServer is the server API for GostTunel service. All implementations must embed UnimplementedGostTunelServer for forward compatibility

type GostTunel_TunnelClient

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

type GostTunel_TunnelServer

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

type UnimplementedGostTunelServer

type UnimplementedGostTunelServer struct {
}

UnimplementedGostTunelServer must be embedded to have forward compatible implementations.

func (UnimplementedGostTunelServer) Tunnel

type UnsafeGostTunelServer

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

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

Jump to

Keyboard shortcuts

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