pbconnect

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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_connect_proto protoreflect.FileDescriptor

Functions

func WriteError

func WriteError(w io.Writer, code pberror.Code, msg string, args ...any) error

Types

type ECDHConfiguration

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

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

Deprecated: Use ECDHConfiguration.ProtoReflect.Descriptor instead.

func (*ECDHConfiguration) GetClientName

func (x *ECDHConfiguration) GetClientName() string

func (*ECDHConfiguration) GetKeyTime

func (x *ECDHConfiguration) GetKeyTime() []byte

func (*ECDHConfiguration) GetSignature

func (x *ECDHConfiguration) GetSignature() []byte

func (*ECDHConfiguration) ProtoMessage

func (*ECDHConfiguration) ProtoMessage()

func (*ECDHConfiguration) ProtoReflect

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

func (*ECDHConfiguration) Reset

func (x *ECDHConfiguration) Reset()

func (*ECDHConfiguration) String

func (x *ECDHConfiguration) String() string

type ProxyProtoVersion

type ProxyProtoVersion int32
const (
	ProxyProtoVersion_ProxyProtoNone ProxyProtoVersion = 0
	ProxyProtoVersion_V1             ProxyProtoVersion = 1
	ProxyProtoVersion_V2             ProxyProtoVersion = 2
)

func (ProxyProtoVersion) Descriptor

func (ProxyProtoVersion) Enum

func (ProxyProtoVersion) EnumDescriptor deprecated

func (ProxyProtoVersion) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProxyProtoVersion.Descriptor instead.

func (ProxyProtoVersion) Number

func (ProxyProtoVersion) String

func (x ProxyProtoVersion) String() string

func (ProxyProtoVersion) Type

type RelayEncryptionScheme

type RelayEncryptionScheme int32
const (
	RelayEncryptionScheme_EncryptionNone      RelayEncryptionScheme = 0
	RelayEncryptionScheme_TLS                 RelayEncryptionScheme = 1
	RelayEncryptionScheme_DHX25519_CHACHAPOLY RelayEncryptionScheme = 2
)

func (RelayEncryptionScheme) Descriptor

func (RelayEncryptionScheme) Enum

func (RelayEncryptionScheme) EnumDescriptor deprecated

func (RelayEncryptionScheme) EnumDescriptor() ([]byte, []int)

Deprecated: Use RelayEncryptionScheme.Descriptor instead.

func (RelayEncryptionScheme) Number

func (RelayEncryptionScheme) String

func (x RelayEncryptionScheme) String() string

func (RelayEncryptionScheme) Type

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 ReadRequest

func ReadRequest(r io.Reader) (*Request, error)

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetConnect

func (x *Request) GetConnect() *Request_Connect

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Request_Connect

type Request_Connect struct {
	SourceEncryption []RelayEncryptionScheme `` /* 152-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

func (x *Request_Connect) GetSourceDhX25519() *ECDHConfiguration

func (*Request_Connect) GetSourceEncryption

func (x *Request_Connect) GetSourceEncryption() []RelayEncryptionScheme

func (*Request_Connect) GetSourceTls

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   *pberror.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 ReadResponse

func ReadResponse(r io.Reader) (*Response, error)

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetConnect

func (x *Response) GetConnect() *Response_Connect

func (*Response) GetError

func (x *Response) GetError() *pberror.Error

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type Response_Connect

type Response_Connect struct {
	ProxyProto            ProxyProtoVersion     `protobuf:"varint,1,opt,name=proxy_proto,json=proxyProto,proto3,enum=connect.ProxyProtoVersion" json:"proxy_proto,omitempty"`
	DestinationEncryption RelayEncryptionScheme `` /* 160-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

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

Deprecated: Use Response_Connect.ProtoReflect.Descriptor instead.

func (*Response_Connect) GetDestinationDhX25519

func (x *Response_Connect) GetDestinationDhX25519() *ECDHConfiguration

func (*Response_Connect) GetDestinationEncryption

func (x *Response_Connect) GetDestinationEncryption() RelayEncryptionScheme

func (*Response_Connect) GetDestinationTls

func (x *Response_Connect) GetDestinationTls() *TLSConfiguration

func (*Response_Connect) GetProxyProto

func (x *Response_Connect) GetProxyProto() ProxyProtoVersion

func (*Response_Connect) ProtoMessage

func (*Response_Connect) ProtoMessage()

func (*Response_Connect) ProtoReflect

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

func (*Response_Connect) Reset

func (x *Response_Connect) Reset()

func (*Response_Connect) String

func (x *Response_Connect) String() string

type TLSConfiguration

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

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

Deprecated: Use TLSConfiguration.ProtoReflect.Descriptor instead.

func (*TLSConfiguration) GetClientName

func (x *TLSConfiguration) GetClientName() string

func (*TLSConfiguration) ProtoMessage

func (*TLSConfiguration) ProtoMessage()

func (*TLSConfiguration) ProtoReflect

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

func (*TLSConfiguration) Reset

func (x *TLSConfiguration) Reset()

func (*TLSConfiguration) String

func (x *TLSConfiguration) String() string

Jump to

Keyboard shortcuts

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