Documentation ¶
Index ¶
- type Scanner
- func (s *Scanner) CheckGRPCAvailability(ctx context.Context)
- func (s *Scanner) CheckGraphQLAvailability(ctx context.Context)
- func (s *Scanner) CheckIfJavaScriptRequired(ctx context.Context) (bool, error)
- func (s *Scanner) Run(ctx context.Context) error
- func (s *Scanner) WAFBlockCheck(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner allows you to test WAF in various ways with given payloads.
func New ¶
func New( logger *logrus.Logger, cfg *config.Config, db *db.DB, requestTemplates openapi.Templates, router routers.Router, enableDebugHeader bool, ) (*Scanner, error)
New creates a new Scanner.
func (*Scanner) CheckGRPCAvailability ¶ added in v0.4.0
CheckGRPCAvailability checks if the gRPC server is available at the given URL.
func (*Scanner) CheckGraphQLAvailability ¶ added in v0.5.1
CheckGraphQLAvailability checks if the GraphQL is available at the given URL.
func (*Scanner) CheckIfJavaScriptRequired ¶ added in v0.4.17
Click to show internal directories.
Click to hide internal directories.