Documentation ¶
Index ¶
- func RunSimple(ctx context.Context, addrs waf.RunAddressData, errorLog string) error
- type ContextArgs
- type ContextOperation
- func (op *ContextOperation) AbsorbDerivatives(derivatives map[string]any)
- func (op *ContextOperation) AddEvents(events ...any)
- func (op *ContextOperation) AddStackTraces(stacks ...*stacktrace.Event)
- func (op *ContextOperation) Derivatives() map[string]any
- func (op *ContextOperation) Events() []any
- func (op *ContextOperation) Finish()
- func (op *ContextOperation) OnEvent(event RunEvent)
- func (op *ContextOperation) Run(eventReceiver dyngo.Operation, addrs waf.RunAddressData)
- func (op *ContextOperation) SetLimiter(limiter limiter.Limiter)
- func (op *ContextOperation) SetSupportedAddresses(addrs config.AddressSet)
- func (op *ContextOperation) StackTraces() []*stacktrace.Event
- func (op *ContextOperation) SwapContext(ctx *waf.Context) *waf.Context
- type ContextRes
- type RunEvent
- type SecurityEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextArgs ¶
type ContextArgs struct{}
func (ContextArgs) IsArgOf ¶
func (ContextArgs) IsArgOf(*ContextOperation)
type ContextOperation ¶
type ContextOperation struct { dyngo.Operation *trace.ServiceEntrySpanOperation // contains filtered or unexported fields }
func StartContextOperation ¶
func (*ContextOperation) AbsorbDerivatives ¶
func (op *ContextOperation) AbsorbDerivatives(derivatives map[string]any)
func (*ContextOperation) AddEvents ¶
func (op *ContextOperation) AddEvents(events ...any)
func (*ContextOperation) AddStackTraces ¶
func (op *ContextOperation) AddStackTraces(stacks ...*stacktrace.Event)
func (*ContextOperation) Derivatives ¶
func (op *ContextOperation) Derivatives() map[string]any
func (*ContextOperation) Events ¶
func (op *ContextOperation) Events() []any
func (*ContextOperation) Finish ¶
func (op *ContextOperation) Finish()
func (*ContextOperation) OnEvent ¶
func (op *ContextOperation) OnEvent(event RunEvent)
func (*ContextOperation) Run ¶
func (op *ContextOperation) Run(eventReceiver dyngo.Operation, addrs waf.RunAddressData)
Run runs the WAF with the given address data and sends the results to the event receiver the event receiver can be the same os the method receiver but not always the event receiver is the one that will receive the actions events generated by the WAF
func (*ContextOperation) SetLimiter ¶
func (op *ContextOperation) SetLimiter(limiter limiter.Limiter)
func (*ContextOperation) SetSupportedAddresses ¶
func (op *ContextOperation) SetSupportedAddresses(addrs config.AddressSet)
func (*ContextOperation) StackTraces ¶
func (op *ContextOperation) StackTraces() []*stacktrace.Event
func (*ContextOperation) SwapContext ¶
func (op *ContextOperation) SwapContext(ctx *waf.Context) *waf.Context
type ContextRes ¶
type ContextRes struct{}
func (ContextRes) IsResultOf ¶
func (ContextRes) IsResultOf(*ContextOperation)
type RunEvent ¶
type RunEvent struct { waf.RunAddressData dyngo.Operation }
RunEvent is the type of event that should be emitted to child operations to run the WAF
type SecurityEvent ¶ added in v1.71.0
type SecurityEvent struct{}
SecurityEvent is a dyngo data event sent when a security event is detected by the WAF
Click to show internal directories.
Click to hide internal directories.