filter

package
v0.0.0-...-e5371cd Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionAllow = iota
	ActionDeny
	ActionDrop
	ActionRedirect
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCHandler

type GRPCHandler struct {
	pb.UnimplementedNginxFilterServer
	WAF    coraza.WAF
	Logger zap.Logger
}

GRPCHandler implements a filter based on gRPC TODO: should create an interface for other implementations?

func (*GRPCHandler) Handle

func (s *GRPCHandler) Handle(ctx context.Context, req *pb.FilterRequest) (*pb.Decision, error)

Jump to

Keyboard shortcuts

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