Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendActionEvents ¶
SendActionEvents sends the relevant actions to the operation's data listener. It returns true if at least one of those actions require interrupting the request handler When SDKError is not nil, this error is sent to the op with EmitData so that the invoked SDK can return it
Types ¶
type Action ¶
Action is a generic interface that represents any WAF action
func NewBlockAction ¶
NewBlockAction creates an action for the "block_request" action type
func NewRedirectAction ¶
NewRedirectAction creates an action for the "redirect_request" action type
func NewStackTraceAction ¶
NewStackTraceAction creates an action for the "stacktrace" action type
type BlockGRPC ¶
type BlockGRPC struct {
GRPCWrapper
}
BlockGRPC are actions that interact with a GRPC request flow
type GRPCWrapper ¶
GRPCWrapper is an opaque prototype abstraction for a gRPC handler (to avoid importing grpc) that returns a status code and an error
type StackTraceAction ¶
type StackTraceAction struct {
Event *stacktrace.Event
}
StackTraceAction are actions that generate a stacktrace
func (*StackTraceAction) EmitData ¶
func (a *StackTraceAction) EmitData(op dyngo.Operation)