lib

package
v0.0.0-...-235bb15 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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) GetConfig

func (tlsConf *TLSConfig) GetConfig() *tls.Config

func (TLSConfig) MarshalJSON

func (v TLSConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (TLSConfig) MarshalTinyJSON

func (v TLSConfig) MarshalTinyJSON(w *jwriter.Writer)

MarshalTinyJSON supports tinyjson.Marshaler interface

func (*TLSConfig) UnmarshalJSON

func (v *TLSConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*TLSConfig) UnmarshalTinyJSON

func (v *TLSConfig) UnmarshalTinyJSON(l *jlexer.Lexer)

UnmarshalTinyJSON supports tinyjson.Unmarshaler interface

Jump to

Keyboard shortcuts

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