Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHandlerTimeout = errors.New("http: Handler timeout")
ErrHandlerTimeout is returned on ResponseWriter Write calls in handlers which have timed out.
Functions ¶
func New ¶
func New(hpf HandlerProviderFunc) service.ModuleProvider
Types ¶
type GXHttpHandler ¶
type GXHttpHandlerWithPaths ¶
type GXHttpHandlerWithPaths interface {
GXHttpHandler
GetPaths() []string
}
type HandlerProviderFunc ¶
type HandlerProviderFunc func(driver service.ModuleDriver) (GXHttpHandler, error)
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics(opts MetricsOptions) *Metrics
type MetricsOptions ¶
type MetricsOptions struct {
HostName string
ModuleName string
ProcessName string
Paths []string
Registerer prometheus.Registerer
}
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewTimeOut ¶
func NewTimeOut(opts TimeOutOptions) *Middleware
type ModuleConfig ¶
type ModuleConfig struct {
modules.ModuleConfig `mapstructure:",squash"`
ReadTimeout int64 `mapstructure:"read_timeout"`
WriteTimeout int64 `mapstructure:"write_timeout"`
IdleTimeout int64 `mapstructure:"idle_timeout"`
HandlerTimeout int64 `mapstructure:"handler_timeout"`
DisableGzipMiddleware bool `mapstructure:"disable_gzip_middleware"`
}
type TimeOutOptions ¶
Click to show internal directories.
Click to hide internal directories.