Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServerHeader ¶
func ServerHeader(next echo.HandlerFunc) echo.HandlerFunc
ServerHeader middleware adds a `Server` header to the response.
Types ¶
type RequestStats ¶
type RequestStats struct { Count int `json:"count"` Statuses map[string]int `json:"statuses"` Records []*RequestStatsRecord `json:"records,omitempty"` }
type RequestStatsRecord ¶
type Stats ¶
type Stats struct { Uptime time.Time `json:"uptime"` RequestCount uint64 `json:"requestCount"` Statuses map[string]int `json:"statuses"` Requests map[string]*RequestStats `json:"requests"` // contains filtered or unexported fields }
func (*Stats) Process ¶
func (s *Stats) Process(next echo.HandlerFunc) echo.HandlerFunc
Process is the middleware function.
Click to show internal directories.
Click to hide internal directories.