Documentation
¶
Index ¶
- Variables
- func WriteError(w io.Writer, code pb.Error_Code, msg string, args ...any) error
- type ECDHConfiguration
- func (*ECDHConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *ECDHConfiguration) GetClientName() string
- func (x *ECDHConfiguration) GetKeyTime() []byte
- func (x *ECDHConfiguration) GetSignature() []byte
- func (*ECDHConfiguration) ProtoMessage()
- func (x *ECDHConfiguration) ProtoReflect() protoreflect.Message
- func (x *ECDHConfiguration) Reset()
- func (x *ECDHConfiguration) String() string
- type ProxyProtoVersion
- func (ProxyProtoVersion) Descriptor() protoreflect.EnumDescriptor
- func (x ProxyProtoVersion) Enum() *ProxyProtoVersion
- func (ProxyProtoVersion) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProxyProtoVersion) Number() protoreflect.EnumNumber
- func (x ProxyProtoVersion) String() string
- func (ProxyProtoVersion) Type() protoreflect.EnumType
- type RelayEncryptionScheme
- func (RelayEncryptionScheme) Descriptor() protoreflect.EnumDescriptor
- func (x RelayEncryptionScheme) Enum() *RelayEncryptionScheme
- func (RelayEncryptionScheme) EnumDescriptor() ([]byte, []int)deprecated
- func (x RelayEncryptionScheme) Number() protoreflect.EnumNumber
- func (x RelayEncryptionScheme) String() string
- func (RelayEncryptionScheme) Type() protoreflect.EnumType
- type Request
- type Request_Connect
- func (*Request_Connect) Descriptor() ([]byte, []int)deprecated
- func (x *Request_Connect) GetSourceDhX25519() *ECDHConfiguration
- func (x *Request_Connect) GetSourceEncryption() []RelayEncryptionScheme
- func (x *Request_Connect) GetSourceTls() *TLSConfiguration
- func (*Request_Connect) ProtoMessage()
- func (x *Request_Connect) ProtoReflect() protoreflect.Message
- func (x *Request_Connect) Reset()
- func (x *Request_Connect) String() string
- type Response
- type Response_Connect
- func (*Response_Connect) Descriptor() ([]byte, []int)deprecated
- func (x *Response_Connect) GetDestinationDhX25519() *ECDHConfiguration
- func (x *Response_Connect) GetDestinationEncryption() RelayEncryptionScheme
- func (x *Response_Connect) GetDestinationTls() *TLSConfiguration
- func (x *Response_Connect) GetProxyProto() ProxyProtoVersion
- func (*Response_Connect) ProtoMessage()
- func (x *Response_Connect) ProtoReflect() protoreflect.Message
- func (x *Response_Connect) Reset()
- func (x *Response_Connect) String() string
- type TLSConfiguration
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProxyProtoVersion_name = map[int32]string{ 0: "ProxyProtoNone", 1: "V1", 2: "V2", } ProxyProtoVersion_value = map[string]int32{ "ProxyProtoNone": 0, "V1": 1, "V2": 2, } )
Enum value maps for ProxyProtoVersion.
View Source
var ( RelayEncryptionScheme_name = map[int32]string{ 0: "EncryptionNone", 1: "TLS", 2: "DHX25519_CHACHAPOLY", } RelayEncryptionScheme_value = map[string]int32{ "EncryptionNone": 0, "TLS": 1, "DHX25519_CHACHAPOLY": 2, } )
Enum value maps for RelayEncryptionScheme.
View Source
var File_client_proto protoreflect.FileDescriptor
Functions ¶
func WriteError ¶ added in v0.6.0
Types ¶
type ECDHConfiguration ¶ added in v0.6.0
type ECDHConfiguration struct {
ClientName string `protobuf:"bytes,1,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"`
KeyTime []byte `protobuf:"bytes,2,opt,name=key_time,json=keyTime,proto3" json:"key_time,omitempty"`
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ECDHConfiguration) Descriptor
deprecated
added in
v0.6.0
func (*ECDHConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use ECDHConfiguration.ProtoReflect.Descriptor instead.
func (*ECDHConfiguration) GetClientName ¶ added in v0.6.0
func (x *ECDHConfiguration) GetClientName() string
func (*ECDHConfiguration) GetKeyTime ¶ added in v0.6.0
func (x *ECDHConfiguration) GetKeyTime() []byte
func (*ECDHConfiguration) GetSignature ¶ added in v0.6.0
func (x *ECDHConfiguration) GetSignature() []byte
func (*ECDHConfiguration) ProtoMessage ¶ added in v0.6.0
func (*ECDHConfiguration) ProtoMessage()
func (*ECDHConfiguration) ProtoReflect ¶ added in v0.6.0
func (x *ECDHConfiguration) ProtoReflect() protoreflect.Message
func (*ECDHConfiguration) Reset ¶ added in v0.6.0
func (x *ECDHConfiguration) Reset()
func (*ECDHConfiguration) String ¶ added in v0.6.0
func (x *ECDHConfiguration) String() string
type ProxyProtoVersion ¶ added in v0.5.0
type ProxyProtoVersion int32
const ( ProxyProtoVersion_ProxyProtoNone ProxyProtoVersion = 0 ProxyProtoVersion_V1 ProxyProtoVersion = 1 ProxyProtoVersion_V2 ProxyProtoVersion = 2 )
func (ProxyProtoVersion) Descriptor ¶ added in v0.5.0
func (ProxyProtoVersion) Descriptor() protoreflect.EnumDescriptor
func (ProxyProtoVersion) Enum ¶ added in v0.5.0
func (x ProxyProtoVersion) Enum() *ProxyProtoVersion
func (ProxyProtoVersion) EnumDescriptor
deprecated
added in
v0.5.0
func (ProxyProtoVersion) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProxyProtoVersion.Descriptor instead.
func (ProxyProtoVersion) Number ¶ added in v0.5.0
func (x ProxyProtoVersion) Number() protoreflect.EnumNumber
func (ProxyProtoVersion) String ¶ added in v0.5.0
func (x ProxyProtoVersion) String() string
func (ProxyProtoVersion) Type ¶ added in v0.5.0
func (ProxyProtoVersion) Type() protoreflect.EnumType
type RelayEncryptionScheme ¶ added in v0.6.0
type RelayEncryptionScheme int32
const ( RelayEncryptionScheme_EncryptionNone RelayEncryptionScheme = 0 RelayEncryptionScheme_TLS RelayEncryptionScheme = 1 RelayEncryptionScheme_DHX25519_CHACHAPOLY RelayEncryptionScheme = 2 )
func (RelayEncryptionScheme) Descriptor ¶ added in v0.6.0
func (RelayEncryptionScheme) Descriptor() protoreflect.EnumDescriptor
func (RelayEncryptionScheme) Enum ¶ added in v0.6.0
func (x RelayEncryptionScheme) Enum() *RelayEncryptionScheme
func (RelayEncryptionScheme) EnumDescriptor
deprecated
added in
v0.6.0
func (RelayEncryptionScheme) EnumDescriptor() ([]byte, []int)
Deprecated: Use RelayEncryptionScheme.Descriptor instead.
func (RelayEncryptionScheme) Number ¶ added in v0.6.0
func (x RelayEncryptionScheme) Number() protoreflect.EnumNumber
func (RelayEncryptionScheme) String ¶ added in v0.6.0
func (x RelayEncryptionScheme) String() string
func (RelayEncryptionScheme) Type ¶ added in v0.6.0
func (RelayEncryptionScheme) Type() protoreflect.EnumType
type Request ¶
type Request struct {
// Soft one-of
Connect *Request_Connect `protobuf:"bytes,1,opt,name=connect,proto3" json:"connect,omitempty"`
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) GetConnect ¶
func (x *Request) GetConnect() *Request_Connect
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Request_Connect ¶
type Request_Connect struct {
SourceEncryption []RelayEncryptionScheme `` /* 151-byte string literal not displayed */
SourceTls *TLSConfiguration `protobuf:"bytes,2,opt,name=source_tls,json=sourceTls,proto3" json:"source_tls,omitempty"`
SourceDhX25519 *ECDHConfiguration `protobuf:"bytes,3,opt,name=source_dh_x25519,json=sourceDhX25519,proto3" json:"source_dh_x25519,omitempty"`
// contains filtered or unexported fields
}
func (*Request_Connect) Descriptor
deprecated
func (*Request_Connect) Descriptor() ([]byte, []int)
Deprecated: Use Request_Connect.ProtoReflect.Descriptor instead.
func (*Request_Connect) GetSourceDhX25519 ¶ added in v0.6.0
func (x *Request_Connect) GetSourceDhX25519() *ECDHConfiguration
func (*Request_Connect) GetSourceEncryption ¶ added in v0.6.0
func (x *Request_Connect) GetSourceEncryption() []RelayEncryptionScheme
func (*Request_Connect) GetSourceTls ¶ added in v0.6.0
func (x *Request_Connect) GetSourceTls() *TLSConfiguration
func (*Request_Connect) ProtoMessage ¶
func (*Request_Connect) ProtoMessage()
func (*Request_Connect) ProtoReflect ¶
func (x *Request_Connect) ProtoReflect() protoreflect.Message
func (*Request_Connect) Reset ¶
func (x *Request_Connect) Reset()
func (*Request_Connect) String ¶
func (x *Request_Connect) String() string
type Response ¶
type Response struct {
Error *pb.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
Connect *Response_Connect `protobuf:"bytes,2,opt,name=connect,proto3" json:"connect,omitempty"`
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) GetConnect ¶ added in v0.5.0
func (x *Response) GetConnect() *Response_Connect
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Response_Connect ¶ added in v0.5.0
type Response_Connect struct {
ProxyProto ProxyProtoVersion `protobuf:"varint,1,opt,name=proxy_proto,json=proxyProto,proto3,enum=client.ProxyProtoVersion" json:"proxy_proto,omitempty"`
DestinationEncryption RelayEncryptionScheme `` /* 159-byte string literal not displayed */
DestinationTls *TLSConfiguration `protobuf:"bytes,3,opt,name=destination_tls,json=destinationTls,proto3" json:"destination_tls,omitempty"`
DestinationDhX25519 *ECDHConfiguration `protobuf:"bytes,4,opt,name=destination_dh_x25519,json=destinationDhX25519,proto3" json:"destination_dh_x25519,omitempty"`
// contains filtered or unexported fields
}
func (*Response_Connect) Descriptor
deprecated
added in
v0.5.0
func (*Response_Connect) Descriptor() ([]byte, []int)
Deprecated: Use Response_Connect.ProtoReflect.Descriptor instead.
func (*Response_Connect) GetDestinationDhX25519 ¶ added in v0.6.0
func (x *Response_Connect) GetDestinationDhX25519() *ECDHConfiguration
func (*Response_Connect) GetDestinationEncryption ¶ added in v0.6.0
func (x *Response_Connect) GetDestinationEncryption() RelayEncryptionScheme
func (*Response_Connect) GetDestinationTls ¶ added in v0.6.0
func (x *Response_Connect) GetDestinationTls() *TLSConfiguration
func (*Response_Connect) GetProxyProto ¶ added in v0.5.0
func (x *Response_Connect) GetProxyProto() ProxyProtoVersion
func (*Response_Connect) ProtoMessage ¶ added in v0.5.0
func (*Response_Connect) ProtoMessage()
func (*Response_Connect) ProtoReflect ¶ added in v0.5.0
func (x *Response_Connect) ProtoReflect() protoreflect.Message
func (*Response_Connect) Reset ¶ added in v0.5.0
func (x *Response_Connect) Reset()
func (*Response_Connect) String ¶ added in v0.5.0
func (x *Response_Connect) String() string
type TLSConfiguration ¶ added in v0.6.0
type TLSConfiguration struct {
ClientName string `protobuf:"bytes,1,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"`
// contains filtered or unexported fields
}
func (*TLSConfiguration) Descriptor
deprecated
added in
v0.6.0
func (*TLSConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use TLSConfiguration.ProtoReflect.Descriptor instead.
func (*TLSConfiguration) GetClientName ¶ added in v0.6.0
func (x *TLSConfiguration) GetClientName() string
func (*TLSConfiguration) ProtoMessage ¶ added in v0.6.0
func (*TLSConfiguration) ProtoMessage()
func (*TLSConfiguration) ProtoReflect ¶ added in v0.6.0
func (x *TLSConfiguration) ProtoReflect() protoreflect.Message
func (*TLSConfiguration) Reset ¶ added in v0.6.0
func (x *TLSConfiguration) Reset()
func (*TLSConfiguration) String ¶ added in v0.6.0
func (x *TLSConfiguration) String() string
Click to show internal directories.
Click to hide internal directories.