Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiHandler ¶
ApiHandler constructs and return the API HTTP handlers chain for serving GraphQL API calls.
Types ¶
type LoggingHandler ¶
type LoggingHandler struct {
// contains filtered or unexported fields
}
LoggingHandler defines HTTP handler middleware for logging incoming communication through provided Logger.
func (*LoggingHandler) ServeHTTP ¶
func (h *LoggingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP handles incoming request by creating a log record with predefined request details and passing it to the next handler in the chain.
Click to show internal directories.
Click to hide internal directories.