Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct { ID string `json:"id"` Time time.Time `json:"time"` TestID string `json:"testID"` Receiver string `json:"receiver"` RemoteAddr string `json:"remoteAddress,omitempty"` Dump string `json:"dump,omitempty"` QueryType string `json:"queryType,omitempty"` }
Event represents an interaction event.
func NewDNSEvent ¶
NewDNSEvent allocates a new Event using NewEvent but with the difference of recording the passed DNS query type to keep more information for DNS queries.
type Storage ¶
type Storage interface { SetTest(secret []byte) (id string, canary string, err error) SearchTest(f func(k, v string) bool) (id string, canary string) StoreEvent(evt Event) error LoadEvents(id string) (evts []Event, loaded bool) TotalTests() int TotalEvents() int StartExpire(err chan error) }
Storage represents the BOAST's storage implementation. It's implemented by any type that provides these methods so it can be easily swapped by a DB or other kind of storage if needed.
Click to show internal directories.
Click to hide internal directories.