Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = &Options{ TLS: &tls.Config{}, }
DefaultOptions default tls options
Functions ¶
func WithOptions ¶
WithOptions to wrap the tls options
Types ¶
type Options ¶
type Options struct { CertFile string `json:"certFile"` KeyFile string `json:"keyFile"` ReadBufferSize int `json:"readBufferSize"` WriteBufferSize int `json:"writeBufferSize"` TLS *tls.Config `json:"-"` }
Options to define the tls
func FromContext ¶
FromContext to unwrap the tls options
Click to show internal directories.
Click to hide internal directories.