interceptor

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL