Documentation ¶
Index ¶
- type Config
- type Option
- func WithAddr(addr string) Option
- func WithCAFile(caFile string) Option
- func WithCertKeyFiles(certFile, keyFile string) Option
- func WithErrorLogger(logger *log.Logger) Option
- func WithIdleTimeout(timeout time.Duration) Option
- func WithReadTimeout(timeout time.Duration) Option
- func WithWriteTimeout(timeout time.Duration) Option
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.2.0
type Config struct { Addr string `dm:"addr"` IdleTimeout time.Duration `dm:"idle_timeout"` ReadTimeout time.Duration `dm:"read_timeout"` WriteTimeout time.Duration `dm:"write_timeout"` CertFile string `dm:"cert_file"` KeyFile string `dm:"key_file"` CAFile string `dm:"ca_file"` // ErrorLog *log.Logger // contains filtered or unexported fields }
type Option ¶
type Option func(*Config)
func WithCAFile ¶
func WithCertKeyFiles ¶
func WithErrorLogger ¶
func WithIdleTimeout ¶
func WithReadTimeout ¶
func WithWriteTimeout ¶
Click to show internal directories.
Click to hide internal directories.