mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
121 lines
1.6 KiB
ReStructuredText
121 lines
1.6 KiB
ReStructuredText
Builtin Types and Attributes
|
|
============================
|
|
|
|
Types
|
|
-----
|
|
|
|
The Bro scripting language supports the following built-in types.
|
|
|
|
.. TODO: add documentation
|
|
|
|
.. bro:type:: void
|
|
|
|
.. bro:type:: bool
|
|
|
|
.. bro:type:: int
|
|
|
|
.. bro:type:: count
|
|
|
|
.. bro:type:: counter
|
|
|
|
.. bro:type:: double
|
|
|
|
.. bro:type:: time
|
|
|
|
.. bro:type:: interval
|
|
|
|
.. bro:type:: string
|
|
|
|
.. bro:type:: pattern
|
|
|
|
.. bro:type:: enum
|
|
|
|
.. bro:type:: timer
|
|
|
|
.. bro:type:: port
|
|
|
|
.. bro:type:: addr
|
|
|
|
.. bro:type:: net
|
|
|
|
.. bro:type:: subnet
|
|
|
|
.. bro:type:: any
|
|
|
|
.. bro:type:: table
|
|
|
|
.. bro:type:: union
|
|
|
|
.. bro:type:: record
|
|
|
|
.. bro:type:: types
|
|
|
|
.. bro:type:: func
|
|
|
|
.. bro:type:: file
|
|
|
|
.. bro:type:: vector
|
|
|
|
.. TODO: below are kind of "special cases" that bro knows about?
|
|
|
|
.. bro:type:: set
|
|
|
|
.. bro:type:: function
|
|
|
|
.. bro:type:: event
|
|
|
|
.. TODO: Notice will get documented as part of notice.bro, which can eventually
|
|
be referenced here once that documentation is auto-generated.
|
|
|
|
.. bro:type:: Notice
|
|
|
|
Attributes
|
|
----------
|
|
|
|
The Bro scripting language supports the following built-in attributes.
|
|
|
|
.. TODO: add documentation
|
|
|
|
.. bro:attr:: &optional
|
|
|
|
.. bro:attr:: &default
|
|
|
|
.. bro:attr:: &redef
|
|
|
|
.. bro:attr:: &rotate_interval
|
|
|
|
.. bro:attr:: &rotate_size
|
|
|
|
.. bro:attr:: &add_func
|
|
|
|
.. bro:attr:: &delete_func
|
|
|
|
.. bro:attr:: &expire_func
|
|
|
|
.. bro:attr:: &read_expire
|
|
|
|
.. bro:attr:: &write_expire
|
|
|
|
.. bro:attr:: &create_expire
|
|
|
|
.. bro:attr:: &persistent
|
|
|
|
.. bro:attr:: &synchronized
|
|
|
|
.. bro:attr:: &postprocessor
|
|
|
|
.. bro:attr:: &encrypt
|
|
|
|
.. bro:attr:: &match
|
|
|
|
.. bro:attr:: &disable_print_hook
|
|
|
|
.. bro:attr:: &raw_output
|
|
|
|
.. bro:attr:: &mergeable
|
|
|
|
.. bro:attr:: &priority
|
|
|
|
.. bro:attr:: &group
|
|
|
|
.. bro:attr:: (&tracked)
|