Documentation
¶
Index ¶
- Constants
- func GetChi(appConfig *config.AppConfig) *http.Server
- func GetHistory(w http.ResponseWriter, r *http.Request)
- func GetQuiz(w http.ResponseWriter, r *http.Request)
- func QuizHistoryResponse(list database.HistoryList) []render.Renderer
- func ResetQuiz(next http.Handler) http.Handler
- type LogWriter
- type QuizListResponse
Constants ¶
View Source
const ( HTTPReadHeaderTimeout = 3 * time.Second HTTPTimeout = 60 * time.Second RateLimitPerMin = 100 )
Variables ¶
This section is empty.
Functions ¶
func GetHistory ¶
func GetHistory(w http.ResponseWriter, r *http.Request)
func QuizHistoryResponse ¶
func QuizHistoryResponse(list database.HistoryList) []render.Renderer
Types ¶
type LogWriter ¶
type LogWriter struct {
http.ResponseWriter
}
type QuizListResponse ¶
type QuizListResponse struct { List processor.QuizSequence Date string }
func (*QuizListResponse) Render ¶
func (c *QuizListResponse) Render(w http.ResponseWriter, r *http.Request) error
Click to show internal directories.
Click to hide internal directories.