Documentation ¶
Overview ¶
Package interceptor contains a santizier for the graphql server It santitizes strings uing MysqlRealEscapeString. This will be removed in a future version.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqlSanitizer ¶
type SqlSanitizer interface { graphql.ResponseInterceptor graphql.HandlerExtension }
SqlSanitizer is a middleware that sanitizes SQL queries.
func SqlSanitizerMiddleware ¶
func SqlSanitizerMiddleware() SqlSanitizer
SqlSanitizerMiddleware returns a new SqlSanitizer middleware. This is a workaround until we have better support for paramaterized queries.
Click to show internal directories.
Click to hide internal directories.