lib

package
v0.0.0-...-5c9b8ee Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: GPL-3.0 Imports: 4 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
}

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"`
	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"`
}

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