This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Handler is http handler func that returns error which will be written | |
// to ResponseWriter automatically. | |
type Handler func(http.ResponseWriter, *http.Request) error | |
// Response represents an error with an associated HTTP status code. | |
type Response struct { | |
Code int | |
RequestID RequestID | |
Err error | |
} |