Files

32 lines
526 B
Go
Raw Permalink Normal View History

2022-01-20 19:41:25 +08:00
// Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
2022-01-20 19:41:25 +08:00
package routing
import (
"net/http"
"sync"
"time"
2026-03-29 12:24:30 +02:00
"code.gitea.io/gitea/modules/log"
2022-01-20 19:41:25 +08:00
)
type requestRecord struct {
// index of the record in the records map
index uint64
// immutable fields
startTime time.Time
request *http.Request
responseWriter http.ResponseWriter
// mutex
lock sync.RWMutex
// mutable fields
isLongPolling bool
2026-03-29 12:24:30 +02:00
logLevel log.Level
2022-01-20 19:41:25 +08:00
funcInfo *FuncInfo
2026-03-08 17:59:46 +08:00
panicError error
2022-01-20 19:41:25 +08:00
}