Documentation ¶
Index ¶
- Constants
- func CallerSignature() string
- func CheckFullSQLForInjection(sql string) bool
- func CheckParametersForInjection(c *gin.Context) bool
- func DefaultHandler404(c *gin.Context)
- func DefaultHandlerFatal(c *gin.Context)
- func Main(set *flag.FlagSet, args []string)
- func MakeHandler(handler func(c *gin.Context) (*Response, error)) gin.HandlerFunc
- type GetUserByID
- type Response
- type SQLInjectionServer
- func (s *SQLInjectionServer) AddUser(c *gin.Context) (*Response, error)
- func (s *SQLInjectionServer) DeleteUser(c *gin.Context) (*Response, error)
- func (s *SQLInjectionServer) GetUser(c *gin.Context) (*Response, error)
- func (s *SQLInjectionServer) Init() error
- func (s *SQLInjectionServer) ListUsers(c *gin.Context) (*Response, error)
- func (s *SQLInjectionServer) MakeHandler(handler func(c *gin.Context) (*Response, error)) gin.HandlerFunc
- func (s *SQLInjectionServer) RunSQL(base string, args ...interface{}) (*sql.Rows, error)
- func (s *SQLInjectionServer) Serve(port int) error
- func (s *SQLInjectionServer) UserQuery(c *gin.Context) (*Response, error)
- type User
Constants ¶
View Source
const (
SQLInjectionMessage = "SQL Injection detected"
)
Variables ¶
This section is empty.
Functions ¶
func CallerSignature ¶
func CallerSignature() string
func DefaultHandler404 ¶
func DefaultHandlerFatal ¶
func MakeHandler ¶
Types ¶
type GetUserByID ¶
type GetUserByID struct {
ID string `uri:"id"`
}
type Response ¶
type SQLInjectionServer ¶
func NewServer ¶
func NewServer(dsn string, protectPartial bool, protectFull bool) (*SQLInjectionServer, error)
func (*SQLInjectionServer) AddUser ¶
func (s *SQLInjectionServer) AddUser(c *gin.Context) (*Response, error)
func (*SQLInjectionServer) DeleteUser ¶
func (s *SQLInjectionServer) DeleteUser(c *gin.Context) (*Response, error)
func (*SQLInjectionServer) GetUser ¶
func (s *SQLInjectionServer) GetUser(c *gin.Context) (*Response, error)
func (*SQLInjectionServer) Init ¶
func (s *SQLInjectionServer) Init() error
func (*SQLInjectionServer) ListUsers ¶
func (s *SQLInjectionServer) ListUsers(c *gin.Context) (*Response, error)
func (*SQLInjectionServer) MakeHandler ¶
func (s *SQLInjectionServer) MakeHandler(handler func(c *gin.Context) (*Response, error)) gin.HandlerFunc
func (*SQLInjectionServer) RunSQL ¶
func (s *SQLInjectionServer) RunSQL(base string, args ...interface{}) (*sql.Rows, error)
func (*SQLInjectionServer) Serve ¶
func (s *SQLInjectionServer) Serve(port int) error
Click to show internal directories.
Click to hide internal directories.