Documentation
¶
Index ¶
- Variables
- func ReadMsg(c net.Conn) (msg proto.Message, err error)
- func ReadMsgInto(c net.Conn, msg proto.Message) (err error)
- func WriteMsg(c net.Conn, msg proto.Message) (err error)
- type Auth
- type HttpTunnel
- type HttpTunnelRequest
- type Protocol
- type TlsTunnel
- type TlsTunnelRequest
- type TunnelRequest
- func (*TunnelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TunnelRequest) GetHttp() *HttpTunnelRequest
- func (m *TunnelRequest) GetReq() isTunnelRequest_Req
- func (x *TunnelRequest) GetTls() *TlsTunnelRequest
- func (*TunnelRequest) ProtoMessage()
- func (x *TunnelRequest) ProtoReflect() protoreflect.Message
- func (x *TunnelRequest) Reset()
- func (x *TunnelRequest) String() string
- type TunnelRequest_Http
- type TunnelRequest_Tls
- type TunnelResponse
- type TunnelStatus
- func (TunnelStatus) Descriptor() protoreflect.EnumDescriptor
- func (x TunnelStatus) Enum() *TunnelStatus
- func (TunnelStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x TunnelStatus) Number() protoreflect.EnumNumber
- func (x TunnelStatus) String() string
- func (TunnelStatus) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Protocol_name = map[int32]string{ 0: "TCP", 1: "HTTP", } Protocol_value = map[string]int32{ "TCP": 0, "HTTP": 1, } )
Enum value maps for Protocol.
View Source
var ( TunnelStatus_name = map[int32]string{ 0: "NOT_USED", 1: "ERROR", 2: "ALREADY_EXISTS", 3: "OK", } TunnelStatus_value = map[string]int32{ "NOT_USED": 0, "ERROR": 1, "ALREADY_EXISTS": 2, "OK": 3, } )
Enum value maps for TunnelStatus.
View Source
var File_messages_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
Metadata map[string]string `` /* 157-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Auth) Descriptor
deprecated
func (*Auth) GetMetadata ¶
func (*Auth) GetPassword ¶
func (*Auth) ProtoMessage ¶
func (*Auth) ProtoMessage()
func (*Auth) ProtoReflect ¶
func (x *Auth) ProtoReflect() protoreflect.Message
type HttpTunnel ¶
type HttpTunnel struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
// contains filtered or unexported fields
}
func (*HttpTunnel) Descriptor
deprecated
func (*HttpTunnel) Descriptor() ([]byte, []int)
Deprecated: Use HttpTunnel.ProtoReflect.Descriptor instead.
func (*HttpTunnel) GetHost ¶
func (x *HttpTunnel) GetHost() string
func (*HttpTunnel) ProtoMessage ¶
func (*HttpTunnel) ProtoMessage()
func (*HttpTunnel) ProtoReflect ¶
func (x *HttpTunnel) ProtoReflect() protoreflect.Message
func (*HttpTunnel) Reset ¶
func (x *HttpTunnel) Reset()
func (*HttpTunnel) String ¶
func (x *HttpTunnel) String() string
type HttpTunnelRequest ¶
type HttpTunnelRequest struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
// contains filtered or unexported fields
}
func (*HttpTunnelRequest) Descriptor
deprecated
func (*HttpTunnelRequest) Descriptor() ([]byte, []int)
Deprecated: Use HttpTunnelRequest.ProtoReflect.Descriptor instead.
func (*HttpTunnelRequest) GetHost ¶
func (x *HttpTunnelRequest) GetHost() string
func (*HttpTunnelRequest) ProtoMessage ¶
func (*HttpTunnelRequest) ProtoMessage()
func (*HttpTunnelRequest) ProtoReflect ¶
func (x *HttpTunnelRequest) ProtoReflect() protoreflect.Message
func (*HttpTunnelRequest) Reset ¶
func (x *HttpTunnelRequest) Reset()
func (*HttpTunnelRequest) String ¶
func (x *HttpTunnelRequest) String() string
type Protocol ¶
type Protocol int32
func (Protocol) Descriptor ¶
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
func (Protocol) Number ¶
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶
func (Protocol) Type() protoreflect.EnumType
type TlsTunnel ¶
type TlsTunnel struct {
Sni string `protobuf:"bytes,1,opt,name=sni,proto3" json:"sni,omitempty"`
// contains filtered or unexported fields
}
func (*TlsTunnel) Descriptor
deprecated
func (*TlsTunnel) ProtoMessage ¶
func (*TlsTunnel) ProtoMessage()
func (*TlsTunnel) ProtoReflect ¶
func (x *TlsTunnel) ProtoReflect() protoreflect.Message
type TlsTunnelRequest ¶
type TlsTunnelRequest struct {
Sni string `protobuf:"bytes,1,opt,name=sni,proto3" json:"sni,omitempty"`
// contains filtered or unexported fields
}
func (*TlsTunnelRequest) Descriptor
deprecated
func (*TlsTunnelRequest) Descriptor() ([]byte, []int)
Deprecated: Use TlsTunnelRequest.ProtoReflect.Descriptor instead.
func (*TlsTunnelRequest) GetSni ¶
func (x *TlsTunnelRequest) GetSni() string
func (*TlsTunnelRequest) ProtoMessage ¶
func (*TlsTunnelRequest) ProtoMessage()
func (*TlsTunnelRequest) ProtoReflect ¶
func (x *TlsTunnelRequest) ProtoReflect() protoreflect.Message
func (*TlsTunnelRequest) Reset ¶
func (x *TlsTunnelRequest) Reset()
func (*TlsTunnelRequest) String ¶
func (x *TlsTunnelRequest) String() string
type TunnelRequest ¶
type TunnelRequest struct {
// Types that are assignable to Req:
// *TunnelRequest_Tls
// *TunnelRequest_Http
Req isTunnelRequest_Req `protobuf_oneof:"req"`
// contains filtered or unexported fields
}
func (*TunnelRequest) Descriptor
deprecated
func (*TunnelRequest) Descriptor() ([]byte, []int)
Deprecated: Use TunnelRequest.ProtoReflect.Descriptor instead.
func (*TunnelRequest) GetHttp ¶
func (x *TunnelRequest) GetHttp() *HttpTunnelRequest
func (*TunnelRequest) GetReq ¶
func (m *TunnelRequest) GetReq() isTunnelRequest_Req
func (*TunnelRequest) GetTls ¶
func (x *TunnelRequest) GetTls() *TlsTunnelRequest
func (*TunnelRequest) ProtoMessage ¶
func (*TunnelRequest) ProtoMessage()
func (*TunnelRequest) ProtoReflect ¶
func (x *TunnelRequest) ProtoReflect() protoreflect.Message
func (*TunnelRequest) Reset ¶
func (x *TunnelRequest) Reset()
func (*TunnelRequest) String ¶
func (x *TunnelRequest) String() string
type TunnelRequest_Http ¶
type TunnelRequest_Http struct {
Http *HttpTunnelRequest `protobuf:"bytes,2,opt,name=http,proto3,oneof"`
}
type TunnelRequest_Tls ¶
type TunnelRequest_Tls struct {
Tls *TlsTunnelRequest `protobuf:"bytes,1,opt,name=tls,proto3,oneof"`
}
type TunnelResponse ¶
type TunnelResponse struct {
Status TunnelStatus `protobuf:"varint,1,opt,name=status,proto3,enum=tutorial.TunnelStatus" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*TunnelResponse) Descriptor
deprecated
func (*TunnelResponse) Descriptor() ([]byte, []int)
Deprecated: Use TunnelResponse.ProtoReflect.Descriptor instead.
func (*TunnelResponse) GetStatus ¶
func (x *TunnelResponse) GetStatus() TunnelStatus
func (*TunnelResponse) ProtoMessage ¶
func (*TunnelResponse) ProtoMessage()
func (*TunnelResponse) ProtoReflect ¶
func (x *TunnelResponse) ProtoReflect() protoreflect.Message
func (*TunnelResponse) Reset ¶
func (x *TunnelResponse) Reset()
func (*TunnelResponse) String ¶
func (x *TunnelResponse) String() string
type TunnelStatus ¶
type TunnelStatus int32
const ( TunnelStatus_NOT_USED TunnelStatus = 0 TunnelStatus_ERROR TunnelStatus = 1 TunnelStatus_ALREADY_EXISTS TunnelStatus = 2 TunnelStatus_OK TunnelStatus = 3 )
func (TunnelStatus) Descriptor ¶
func (TunnelStatus) Descriptor() protoreflect.EnumDescriptor
func (TunnelStatus) Enum ¶
func (x TunnelStatus) Enum() *TunnelStatus
func (TunnelStatus) EnumDescriptor
deprecated
func (TunnelStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use TunnelStatus.Descriptor instead.
func (TunnelStatus) Number ¶
func (x TunnelStatus) Number() protoreflect.EnumNumber
func (TunnelStatus) String ¶
func (x TunnelStatus) String() string
func (TunnelStatus) Type ¶
func (TunnelStatus) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.