proto

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 9 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Bypass_Bypass_FullMethodName = "/proto.Bypass/Bypass"
)

Variables

View Source
var Bypass_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Bypass",
	HandlerType: (*BypassServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Bypass",
			Handler:    _Bypass_Bypass_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "bypass.proto",
}

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

View Source
var File_bypass_proto protoreflect.FileDescriptor

Functions

func RegisterBypassServer

func RegisterBypassServer(s grpc.ServiceRegistrar, srv BypassServer)

Types

type BypassClient

type BypassClient interface {
	Bypass(ctx context.Context, in *BypassRequest, opts ...grpc.CallOption) (*BypassReply, error)
}

BypassClient is the client API for Bypass 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 NewBypassClient

func NewBypassClient(cc grpc.ClientConnInterface) BypassClient

type BypassReply

type BypassReply struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*BypassReply) Descriptor deprecated

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

Deprecated: Use BypassReply.ProtoReflect.Descriptor instead.

func (*BypassReply) GetOk

func (x *BypassReply) GetOk() bool

func (*BypassReply) ProtoMessage

func (*BypassReply) ProtoMessage()

func (*BypassReply) ProtoReflect

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

func (*BypassReply) Reset

func (x *BypassReply) Reset()

func (*BypassReply) String

func (x *BypassReply) String() string

type BypassRequest

type BypassRequest struct {
	Addr    string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Client  string `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
	Network string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
	Host    string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
	Path    string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
	Service string `protobuf:"bytes,6,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

func (*BypassRequest) Descriptor deprecated

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

Deprecated: Use BypassRequest.ProtoReflect.Descriptor instead.

func (*BypassRequest) GetAddr

func (x *BypassRequest) GetAddr() string

func (*BypassRequest) GetClient

func (x *BypassRequest) GetClient() string

func (*BypassRequest) GetHost

func (x *BypassRequest) GetHost() string

func (*BypassRequest) GetNetwork

func (x *BypassRequest) GetNetwork() string

func (*BypassRequest) GetPath

func (x *BypassRequest) GetPath() string

func (*BypassRequest) GetService added in v0.8.1

func (x *BypassRequest) GetService() string

func (*BypassRequest) ProtoMessage

func (*BypassRequest) ProtoMessage()

func (*BypassRequest) ProtoReflect

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

func (*BypassRequest) Reset

func (x *BypassRequest) Reset()

func (*BypassRequest) String

func (x *BypassRequest) String() string

type BypassServer

type BypassServer interface {
	Bypass(context.Context, *BypassRequest) (*BypassReply, error)
	// contains filtered or unexported methods
}

BypassServer is the server API for Bypass service. All implementations must embed UnimplementedBypassServer for forward compatibility.

type UnimplementedBypassServer

type UnimplementedBypassServer struct{}

UnimplementedBypassServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedBypassServer) Bypass

type UnsafeBypassServer

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

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

Jump to

Keyboard shortcuts

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