dialer

package
v0.0.0-...-16f22ad Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPKIClient

func GetPKIClient(cfg *tls.Config, apex *ParsedApex) protocol.PKIService

func GetServerNameOverride

func GetServerNameOverride(ctx context.Context) string

func WithServerNameOverride

func WithServerNameOverride(ctx context.Context, name string) context.Context

Types

type DialerConfig

type DialerConfig struct {
	Logger             *zap.Logger
	Parsed             *ParsedApex
	InsecureSkipVerify bool
	NoReconnection     bool
}

type ParsedApex

type ParsedApex struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}

func ParseApex

func ParseApex(apex string) (*ParsedApex, error)

func (*ParsedApex) String

func (p *ParsedApex) String() string

type TransportDialer

type TransportDialer interface {
	Dial() (net.Conn, error)
	Remote() net.Addr
}

func QuicDialer

func QuicDialer(ctx context.Context, dCfg DialerConfig) (net.Addr, TransportDialer, error)

func TLSDialer

func TLSDialer(ctx context.Context, dCfg DialerConfig) (net.Addr, TransportDialer, error)

Jump to

Keyboard shortcuts

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