Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebhookHandler ¶ added in v0.9.13
func RecoveryHandler ¶
RecoveryHandler recovers from panics to return Internal Server Error http response
Types ¶
type Config ¶
type Config struct { Schema *graphql.Schema Pretty bool GraphiQL bool RootObjectFn handler.RootObjectFn CheckOrigin func(req *http.Request) bool }
Config new handler
type ErrorLog ¶
type ErrorLog interface {
Errorf(string, ...interface{})
}
ErrorLog used by recovery handler
Click to show internal directories.
Click to hide internal directories.