Versions in this module Expand all Collapse all v0 v0.28.2 Nov 14, 2026 v0.28.1 Nov 14, 2026 Changes in this version + const DisableTTL + var ErrDisabled = errors.New("ech: disabled") + var ErrNoECHConfig = errors.New("ech: no ECH config") + type Client struct + func NewClient(doh string, opts ...Option) (*Client, error) + func (c *Client) ConfigList(ctx context.Context, name string) ([]byte, error) + func (c *Client) Disable(name string, d time.Duration) + func (c *Client) Refresh(name string) + func (c *Client) SetConfigList(name string, list []byte) + type Config struct + DoH string + DoHInsecure bool + Enabled bool + Fallback bool + TTL time.Duration + Timeout time.Duration + func FromMetadata(md mdata.Metadata) Config + func (c *Config) Active() bool + func (c *Config) Apply(ctx context.Context, base *tls.Config, serverName string) (*tls.Config, error) + func (c *Config) Init(log logger.Logger, base *tls.Config) error + func (c *Config) OnDialError(ctx context.Context, err error, serverName string) error + func (c *Config) OnRejection(err error, serverName string) error + type Option func(*Options) + func LoggerOption(l logger.Logger) Option + func TLSConfigOption(cfg *tls.Config) Option + func TTLOption(ttl time.Duration) Option + func TimeoutOption(timeout time.Duration) Option + type Options struct + Logger logger.Logger + TLSConfig *tls.Config + TTL time.Duration + Timeout time.Duration + type RetryableError struct + Err error + func (e RetryableError) Error() string + func (e RetryableError) RetryableHandshake() bool + func (e RetryableError) Unwrap() error