Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListenAndServe ¶
type ServerConfig ¶
type ServerConfig struct { Addr string `mapstructure:"addr" validate:"required,hostname_port"` GracefulTimeout time.Duration `mapstructure:"gracefulTimeout" validate:"required"` ReadTimeout time.Duration `mapstructure:"readTimeout" validate:"gte=0"` ReadHeaderTimeout time.Duration `mapstructure:"readHeaderTimeout" validate:"gte=0"` TLS *ServerTLSConfig `mapstructure:"tls"` }
type ServerTLSConfig ¶
Click to show internal directories.
Click to hide internal directories.