Documentation
¶
Index ¶
- Variables
- func RegisterBypassServer(s grpc.ServiceRegistrar, srv BypassServer)
- type BypassClient
- type BypassReply
- type BypassRequest
- func (*BypassRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BypassRequest) GetAddr() string
- func (x *BypassRequest) GetClient() string
- func (x *BypassRequest) GetHost() string
- func (x *BypassRequest) GetNetwork() string
- func (x *BypassRequest) GetPath() string
- func (*BypassRequest) ProtoMessage()
- func (x *BypassRequest) ProtoReflect() protoreflect.Message
- func (x *BypassRequest) Reset()
- func (x *BypassRequest) String() string
- type BypassServer
- type UnimplementedBypassServer
- type UnsafeBypassServer
Constants ¶
This section is empty.
Variables ¶
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)
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"`
// 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) 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.
func (UnimplementedBypassServer) Bypass ¶
func (UnimplementedBypassServer) Bypass(context.Context, *BypassRequest) (*BypassReply, error)
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.