signaturestest

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SigTest

type SigTest struct {
	// Events are a series of events that the signature will be tested with (in the provided order)
	Events []types.Event
	// CB provide a callback for this test case only if you want to check the Finding result
	// if providing your own callback, make sure to call SetStatus from it
	CB types.SignatureHandler
	// Expect declares if we expect the signature to match for this event
	Expect bool
	// Status shows if the signatures has matched
	Status bool
}

SigTest is a utility to test signatures

func (*SigTest) Init

func (st *SigTest) Init(sig types.Signature)

func (*SigTest) SetStatus

func (st *SigTest) SetStatus(res types.Finding)

Jump to

Keyboard shortcuts

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