Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDefault = Config{ DisplaySeconds: true, DisplayMilliseconds: false, Prefix: "x-process-time", }
ConfigDefault is the default configuration.
Functions ¶
Types ¶
type Config ¶
type Config struct { // DisplaySeconds indicates the process time in seconds. // // Optional. Default value true. DisplaySeconds bool // DisplayMilliseconds indicates the process time in milliseconds. // // Optional. Default value false. DisplayMilliseconds bool // Prefix indicates prefix for header name. // // Optional. Default value "X-Process-Time". Prefix string }
Config defines the configuration for middleware.
Click to show internal directories.
Click to hide internal directories.