Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit d583c2a

Browse files
committed
Generate docs
1 parent bc39128 commit d583c2a

File tree

6 files changed

+123
-78
lines changed

6 files changed

+123
-78
lines changed

script-reference/autogenerated-protocol-analyzer-index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ Events
722722
++++++
723723

724724
.. zeek:id:: Cluster::websocket_client_added
725-
:source-code: base/frameworks/cluster/main.zeek 657 662
725+
:source-code: base/frameworks/cluster/main.zeek 669 674
726726

727727
:Type: :zeek:type:`event` (endpoint: :zeek:type:`Cluster::EndpointInfo`, subscriptions: :zeek:type:`string_vec`)
728728

@@ -735,7 +735,7 @@ Events
735735
:param subscriptions: The WebSocket client's subscriptions as provided in the handshake.
736736

737737
.. zeek:id:: Cluster::websocket_client_lost
738-
:source-code: base/frameworks/cluster/main.zeek 664 669
738+
:source-code: base/frameworks/cluster/main.zeek 676 681
739739

740740
:Type: :zeek:type:`event` (endpoint: :zeek:type:`Cluster::EndpointInfo`)
741741

scripts/base/bif/cluster.bif.zeek.rst

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@
33
base/bif/cluster.bif.zeek
44
=========================
55
.. zeek:namespace:: Cluster
6+
.. zeek:namespace:: Cluster::Backend
67
.. zeek:namespace:: GLOBAL
78
89
9-
:Namespaces: Cluster, GLOBAL
10+
:Namespaces: Cluster, Cluster::Backend, GLOBAL
1011

1112
Summary
1213
~~~~~~~
14+
Events
15+
######
16+
====================================================== ===================================
17+
:zeek:id:`Cluster::Backend::error`: :zeek:type:`event` Generated on cluster backend error.
18+
====================================================== ===================================
19+
1320
Functions
1421
#########
1522
============================================================= ===================================================================
@@ -29,6 +36,21 @@ Functions
2936

3037
Detailed Interface
3138
~~~~~~~~~~~~~~~~~~
39+
Events
40+
######
41+
.. zeek:id:: Cluster::Backend::error
42+
:source-code: base/frameworks/cluster/main.zeek 684 688
43+
44+
:Type: :zeek:type:`event` (tag: :zeek:type:`string`, message: :zeek:type:`string`)
45+
46+
Generated on cluster backend error.
47+
48+
49+
:param tag: A structured tag, not further specified.
50+
51+
52+
:param message: A free form message with more details about the error.
53+
3254
Functions
3355
#########
3456
.. zeek:id:: Cluster::Backend::__init

scripts/base/bif/plugins/Zeek_Cluster_WebSocket.events.bif.zeek.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Detailed Interface
2323
Events
2424
######
2525
.. zeek:id:: Cluster::websocket_client_added
26-
:source-code: base/frameworks/cluster/main.zeek 657 662
26+
:source-code: base/frameworks/cluster/main.zeek 669 674
2727

2828
:Type: :zeek:type:`event` (endpoint: :zeek:type:`Cluster::EndpointInfo`, subscriptions: :zeek:type:`string_vec`)
2929

@@ -36,7 +36,7 @@ Events
3636
:param subscriptions: The WebSocket client's subscriptions as provided in the handshake.
3737

3838
.. zeek:id:: Cluster::websocket_client_lost
39-
:source-code: base/frameworks/cluster/main.zeek 664 669
39+
:source-code: base/frameworks/cluster/main.zeek 676 681
4040

4141
:Type: :zeek:type:`event` (endpoint: :zeek:type:`Cluster::EndpointInfo`)
4242

scripts/base/frameworks/broker/main.zeek.rst

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -92,30 +92,30 @@ Types
9292

9393
Functions
9494
#########
95-
========================================================================================= =======================================================================
96-
:zeek:id:`Broker::auto_publish`: :zeek:type:`function` :zeek:attr:`&deprecated` = *...* Automatically send an event to any interested peers whenever it is
97-
locally dispatched.
98-
:zeek:id:`Broker::auto_unpublish`: :zeek:type:`function` :zeek:attr:`&deprecated` = *...* Stop automatically sending an event to peers upon local dispatch.
99-
:zeek:id:`Broker::default_log_topic`: :zeek:type:`function` The default implementation for :zeek:see:`Broker::log_topic`.
100-
:zeek:id:`Broker::flush_logs`: :zeek:type:`function` Sends all pending log messages to remote peers.
101-
:zeek:id:`Broker::forward`: :zeek:type:`function` Register a topic prefix subscription for events that should only be
102-
forwarded to any subscribing peers and not raise any event handlers
103-
on the receiving/forwarding node.
104-
:zeek:id:`Broker::is_outbound_peering`: :zeek:type:`function` Whether the local node originally initiated the peering with the
105-
given endpoint.
106-
:zeek:id:`Broker::listen`: :zeek:type:`function` Listen for remote connections using the native Broker protocol.
107-
:zeek:id:`Broker::listen_websocket`: :zeek:type:`function` Listen for remote connections using WebSocket.
108-
:zeek:id:`Broker::log_topic`: :zeek:type:`function` :zeek:attr:`&redef` A function that will be called for each log entry to determine what
109-
broker topic string will be used for sending it to peers.
110-
:zeek:id:`Broker::node_id`: :zeek:type:`function` Get a unique identifier for the local broker endpoint.
111-
:zeek:id:`Broker::peer`: :zeek:type:`function` Initiate a remote connection.
112-
:zeek:id:`Broker::peers`: :zeek:type:`function` Get a list of all peer connections.
113-
:zeek:id:`Broker::publish_id`: :zeek:type:`function` Publishes the value of an identifier to a given topic.
114-
:zeek:id:`Broker::subscribe`: :zeek:type:`function` Register interest in all peer event messages that use a certain topic
115-
prefix.
116-
:zeek:id:`Broker::unpeer`: :zeek:type:`function` Remove a remote connection.
117-
:zeek:id:`Broker::unsubscribe`: :zeek:type:`function` Unregister interest in all peer event messages that use a topic prefix.
118-
========================================================================================= =======================================================================
95+
=========================================================================================== =======================================================================
96+
:zeek:id:`Broker::auto_publish`: :zeek:type:`function` :zeek:attr:`&deprecated` = *...* Automatically send an event to any interested peers whenever it is
97+
locally dispatched.
98+
:zeek:id:`Broker::auto_unpublish`: :zeek:type:`function` :zeek:attr:`&deprecated` = *...* Stop automatically sending an event to peers upon local dispatch.
99+
:zeek:id:`Broker::default_log_topic`: :zeek:type:`function` The default implementation for :zeek:see:`Broker::log_topic`.
100+
:zeek:id:`Broker::flush_logs`: :zeek:type:`function` Sends all pending log messages to remote peers.
101+
:zeek:id:`Broker::forward`: :zeek:type:`function` Register a topic prefix subscription for events that should only be
102+
forwarded to any subscribing peers and not raise any event handlers
103+
on the receiving/forwarding node.
104+
:zeek:id:`Broker::is_outbound_peering`: :zeek:type:`function` Whether the local node originally initiated the peering with the
105+
given endpoint.
106+
:zeek:id:`Broker::listen`: :zeek:type:`function` Listen for remote connections using the native Broker protocol.
107+
:zeek:id:`Broker::listen_websocket`: :zeek:type:`function` :zeek:attr:`&deprecated` = *...* Listen for remote connections using WebSocket.
108+
:zeek:id:`Broker::log_topic`: :zeek:type:`function` :zeek:attr:`&redef` A function that will be called for each log entry to determine what
109+
broker topic string will be used for sending it to peers.
110+
:zeek:id:`Broker::node_id`: :zeek:type:`function` Get a unique identifier for the local broker endpoint.
111+
:zeek:id:`Broker::peer`: :zeek:type:`function` Initiate a remote connection.
112+
:zeek:id:`Broker::peers`: :zeek:type:`function` Get a list of all peer connections.
113+
:zeek:id:`Broker::publish_id`: :zeek:type:`function` Publishes the value of an identifier to a given topic.
114+
:zeek:id:`Broker::subscribe`: :zeek:type:`function` Register interest in all peer event messages that use a certain topic
115+
prefix.
116+
:zeek:id:`Broker::unpeer`: :zeek:type:`function` Remove a remote connection.
117+
:zeek:id:`Broker::unsubscribe`: :zeek:type:`function` Unregister interest in all peer event messages that use a topic prefix.
118+
=========================================================================================== =======================================================================
119119

120120

121121
Detailed Interface
@@ -742,10 +742,10 @@ Types
742742
Functions
743743
#########
744744
.. zeek:id:: Broker::auto_publish
745-
:source-code: base/frameworks/broker/main.zeek 579 582
745+
:source-code: base/frameworks/broker/main.zeek 582 585
746746

747747
:Type: :zeek:type:`function` (topic: :zeek:type:`string`, ev: :zeek:type:`any`) : :zeek:type:`bool`
748-
:Attributes: :zeek:attr:`&deprecated` = *"Remove in v8.1. Switch to explicit Broker::publish() calls. Auto-publish won't work with all cluster backends."*
748+
:Attributes: :zeek:attr:`&deprecated` = *"Remove in v8.1. Switch to explicit Cluster::publish() calls. Auto-publish won't work with all cluster backends."*
749749

750750
Automatically send an event to any interested peers whenever it is
751751
locally dispatched. (For example, using "event my_event(...);" in a
@@ -763,7 +763,7 @@ Functions
763763
:returns: true if automatic event sending is now enabled.
764764

765765
.. zeek:id:: Broker::auto_unpublish
766-
:source-code: base/frameworks/broker/main.zeek 584 587
766+
:source-code: base/frameworks/broker/main.zeek 587 590
767767

768768
:Type: :zeek:type:`function` (topic: :zeek:type:`string`, ev: :zeek:type:`any`) : :zeek:type:`bool`
769769
:Attributes: :zeek:attr:`&deprecated` = *"Remove in v8.1. See Broker::auto_publish()"*
@@ -788,15 +788,15 @@ Functions
788788
The default implementation for :zeek:see:`Broker::log_topic`.
789789

790790
.. zeek:id:: Broker::flush_logs
791-
:source-code: base/frameworks/broker/main.zeek 554 557
791+
:source-code: base/frameworks/broker/main.zeek 557 560
792792

793793
:Type: :zeek:type:`function` () : :zeek:type:`count`
794794

795795
Sends all pending log messages to remote peers. This normally
796796
doesn't need to be used except for test cases that are time-sensitive.
797797

798798
.. zeek:id:: Broker::forward
799-
:source-code: base/frameworks/broker/main.zeek 569 572
799+
:source-code: base/frameworks/broker/main.zeek 572 575
800800

801801
:Type: :zeek:type:`function` (topic_prefix: :zeek:type:`string`) : :zeek:type:`bool`
802802

@@ -816,7 +816,7 @@ Functions
816816
:returns: true if a new event forwarding/subscription is now registered.
817817

818818
.. zeek:id:: Broker::is_outbound_peering
819-
:source-code: base/frameworks/broker/main.zeek 539 542
819+
:source-code: base/frameworks/broker/main.zeek 542 545
820820

821821
:Type: :zeek:type:`function` (a: :zeek:type:`string`, p: :zeek:type:`port`) : :zeek:type:`bool`
822822

@@ -832,7 +832,7 @@ Functions
832832
Returns:: True if this node initiated the peering.
833833

834834
.. zeek:id:: Broker::listen
835-
:source-code: base/frameworks/broker/main.zeek 488 504
835+
:source-code: base/frameworks/broker/main.zeek 489 505
836836

837837
:Type: :zeek:type:`function` (a: :zeek:type:`string` :zeek:attr:`&default` = :zeek:see:`Broker::default_listen_address` :zeek:attr:`&optional`, p: :zeek:type:`port` :zeek:attr:`&default` = :zeek:see:`Broker::default_port` :zeek:attr:`&optional`, retry: :zeek:type:`interval` :zeek:attr:`&default` = :zeek:see:`Broker::default_listen_retry` :zeek:attr:`&optional`) : :zeek:type:`port`
838838

@@ -858,9 +858,10 @@ Functions
858858
.. zeek:see:: Broker::status
859859
860860
.. zeek:id:: Broker::listen_websocket
861-
:source-code: base/frameworks/broker/main.zeek 511 527
861+
:source-code: base/frameworks/broker/main.zeek 514 530
862862

863863
:Type: :zeek:type:`function` (a: :zeek:type:`string` :zeek:attr:`&default` = :zeek:see:`Broker::default_listen_address_websocket` :zeek:attr:`&optional`, p: :zeek:type:`port` :zeek:attr:`&default` = :zeek:see:`Broker::default_port_websocket` :zeek:attr:`&optional`, retry: :zeek:type:`interval` :zeek:attr:`&default` = :zeek:see:`Broker::default_listen_retry` :zeek:attr:`&optional`) : :zeek:type:`port`
864+
:Attributes: :zeek:attr:`&deprecated` = *"Remove in v8.1. Switch to Cluster::listen_websocket() instead."*
864865

865866
Listen for remote connections using WebSocket.
866867

@@ -905,7 +906,7 @@ Functions
905906
will be sent.
906907

907908
.. zeek:id:: Broker::node_id
908-
:source-code: base/frameworks/broker/main.zeek 549 552
909+
:source-code: base/frameworks/broker/main.zeek 552 555
909910

910911
:Type: :zeek:type:`function` () : :zeek:type:`string`
911912

@@ -915,7 +916,7 @@ Functions
915916
:returns: a unique identifier for the local broker endpoint.
916917

917918
.. zeek:id:: Broker::peer
918-
:source-code: base/frameworks/broker/main.zeek 529 532
919+
:source-code: base/frameworks/broker/main.zeek 532 535
919920

920921
:Type: :zeek:type:`function` (a: :zeek:type:`string`, p: :zeek:type:`port` :zeek:attr:`&default` = :zeek:see:`Broker::default_port` :zeek:attr:`&optional`, retry: :zeek:type:`interval` :zeek:attr:`&default` = :zeek:see:`Broker::default_connect_retry` :zeek:attr:`&optional`) : :zeek:type:`bool`
921922

@@ -942,7 +943,7 @@ Functions
942943
.. zeek:see:: Broker::status
943944
944945
.. zeek:id:: Broker::peers
945-
:source-code: base/frameworks/broker/main.zeek 544 547
946+
:source-code: base/frameworks/broker/main.zeek 547 550
946947

947948
:Type: :zeek:type:`function` () : :zeek:type:`vector` of :zeek:type:`Broker::PeerInfo`
948949

@@ -952,7 +953,7 @@ Functions
952953
:returns: a list of all peer connections.
953954

954955
.. zeek:id:: Broker::publish_id
955-
:source-code: base/frameworks/broker/main.zeek 559 562
956+
:source-code: base/frameworks/broker/main.zeek 562 565
956957

957958
:Type: :zeek:type:`function` (topic: :zeek:type:`string`, id: :zeek:type:`string`) : :zeek:type:`bool`
958959

@@ -969,7 +970,7 @@ Functions
969970
:returns: true if the message is sent.
970971

971972
.. zeek:id:: Broker::subscribe
972-
:source-code: base/frameworks/broker/main.zeek 564 567
973+
:source-code: base/frameworks/broker/main.zeek 567 570
973974

974975
:Type: :zeek:type:`function` (topic_prefix: :zeek:type:`string`) : :zeek:type:`bool`
975976

@@ -986,7 +987,7 @@ Functions
986987
:returns: true if it's a new event subscription and it is now registered.
987988

988989
.. zeek:id:: Broker::unpeer
989-
:source-code: base/frameworks/broker/main.zeek 534 537
990+
:source-code: base/frameworks/broker/main.zeek 537 540
990991

991992
:Type: :zeek:type:`function` (a: :zeek:type:`string`, p: :zeek:type:`port`) : :zeek:type:`bool`
992993

@@ -1010,7 +1011,7 @@ Functions
10101011
:param TODO: We do not have a function yet to terminate a connection.
10111012

10121013
.. zeek:id:: Broker::unsubscribe
1013-
:source-code: base/frameworks/broker/main.zeek 574 577
1014+
:source-code: base/frameworks/broker/main.zeek 577 580
10141015

10151016
:Type: :zeek:type:`function` (topic_prefix: :zeek:type:`string`) : :zeek:type:`bool`
10161017

0 commit comments

Comments
 (0)