Documentation ¶
Index ¶
- type Configurables
- func (c *Configurables) GetClientHelloID() tls.ClientHelloID
- func (c *Configurables) GetTLSConfig() *tls.Config
- func (v Configurables) MarshalJSON() ([]byte, error)
- func (v Configurables) MarshalTinyJSON(w *jwriter.Writer)
- func (v *Configurables) UnmarshalJSON(data []byte) error
- func (v *Configurables) UnmarshalTinyJSON(l *jlexer.Lexer)
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurables ¶
type Configurables struct { TLSConfig *TLSConfig `json:"tls_config"` // will be converted to tls.Config ClientHelloID string `json:"client_hello_id"` // will be converted to tls.ClientHelloID InternalBufferSize int `json:"internal_buffer_size"` // will be used to allocate internal temporary buffer BackgroundWorkerFairness bool `json:"background_worker_fairness"` // if true, use fairWorker, otherwise use unfairWorker }
func (*Configurables) GetClientHelloID ¶
func (c *Configurables) GetClientHelloID() tls.ClientHelloID
func (*Configurables) GetTLSConfig ¶
func (c *Configurables) GetTLSConfig() *tls.Config
func (Configurables) MarshalJSON ¶
func (v Configurables) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (Configurables) MarshalTinyJSON ¶
func (v Configurables) MarshalTinyJSON(w *jwriter.Writer)
MarshalTinyJSON supports tinyjson.Marshaler interface
func (*Configurables) UnmarshalJSON ¶
func (v *Configurables) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (*Configurables) UnmarshalTinyJSON ¶
func (v *Configurables) UnmarshalTinyJSON(l *jlexer.Lexer)
UnmarshalTinyJSON supports tinyjson.Unmarshaler interface
type TLSConfig ¶
type TLSConfig struct { NextProtos []string `json:"next_protos"` ApplicationSettings map[string][]byte `json:"application_settings"` ServerName string `json:"server_name"` InsecureSkipVerify bool `json:"insecure_skip_verify"` // if not set, host must supply a root CA certificate via root_ca or root_ca_dirs InsecureSkipTimeVerify bool `json:"insecure_skip_time_verify"` OmitEmptyPsk bool `json:"omit_empty_psk"` InsecureServerNameToVerify string `json:"insecure_server_name_to_verify"` SessionTicketsDisabled bool `json:"session_tickets_disabled"` PQSignatureSchemesEnabled bool `json:"pq_signature_schemes_enabled"` DynamicRecordSizingDisabled bool `json:"dynamic_record_sizing_disabled"` ECHConfigs []byte `json:"ech_configs"` RootCAPath string `json:"root_ca_path"` // if set, will be parsed as a x509 Root CA certificate RootCADirs []string `json:"root_ca_dirs"` // if non-empty, all x509 certs found in the directory specified by the list will be used to verify the host }
func (TLSConfig) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (TLSConfig) MarshalTinyJSON ¶
MarshalTinyJSON supports tinyjson.Marshaler interface
func (*TLSConfig) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
func (*TLSConfig) UnmarshalTinyJSON ¶
UnmarshalTinyJSON supports tinyjson.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.