mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

This is based on commit 2731def9159247e6da8a3191783c89683363689c from the zeek-docs repo.
14 lines
259 B
Text
14 lines
259 B
Text
## api.zeek
|
|
##
|
|
## Sample events to be invoked by api.js
|
|
module MyAPI;
|
|
|
|
export {
|
|
global print_msg: event(msg: string, ts: time &default=network_time());
|
|
}
|
|
|
|
event MyAPI::print_msg(msg: string, ts: time) {
|
|
print "ZEEK", "print_msg", ts, msg;
|
|
}
|
|
|
|
@load ./api.js
|