golang.org/x/pkgsite/internal/middleware.statsResponseWriter.stats (field)
11 uses
golang.org/x/pkgsite/internal/middleware (current package)
stats.go#L25: ctx := context.WithValue(r.Context(), statsKey{}, sw.stats.Other)
stats.go#L68: stats PageStats
stats.go#L85: stats: PageStats{Other: map[string]interface{}{}},
stats.go#L94: s.stats.StatusCode = statusCode
stats.go#L100: if s.stats.Size == 0 {
stats.go#L101: s.stats.MillisToFirstByte = time.Since(s.start).Milliseconds()
stats.go#L103: if s.stats.StatusCode == 0 {
stats.go#L106: s.stats.Size += len(data)
stats.go#L113: s.stats.MillisToLastByte = time.Since(s.start).Milliseconds()
stats.go#L114: s.stats.Hash = s.hasher.Sum64()
stats.go#L115: data, err := json.Marshal(s.stats)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |