mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix minor typos in broker reference documentation
This commit is contained in:
parent
57128af3ab
commit
ceefb6edaf
4 changed files with 26 additions and 17 deletions
|
@ -20,19 +20,19 @@ export {
|
||||||
## initially, or if it ever becomes disconnected.
|
## initially, or if it ever becomes disconnected.
|
||||||
const default_connect_retry = 30sec &redef;
|
const default_connect_retry = 30sec &redef;
|
||||||
|
|
||||||
## If false, do not use SSL for network connections. By default, SSL will even
|
## If true, do not use SSL for network connections. By default, SSL will
|
||||||
## be used if no certificates / CAs have been configured. In that case
|
## even be used if no certificates / CAs have been configured. In that case
|
||||||
## (which is the default) the communication will be encrypted, but not
|
## (which is the default) the communication will be encrypted, but not
|
||||||
## authenticated.
|
## authenticated.
|
||||||
const disable_ssl = F &redef;
|
const disable_ssl = F &redef;
|
||||||
|
|
||||||
## Path to a file containing concatenated trusted certificates
|
## Path to a file containing concatenated trusted certificates
|
||||||
## in PEM format. If set, Bro will require valid certificates forx
|
## in PEM format. If set, Bro will require valid certificates for
|
||||||
## all peers.
|
## all peers.
|
||||||
const ssl_cafile = "" &redef;
|
const ssl_cafile = "" &redef;
|
||||||
|
|
||||||
## Path to an OpenSSL-style directory of trusted certificates.
|
## Path to an OpenSSL-style directory of trusted certificates.
|
||||||
## If set, Bro will require valid certificates forx
|
## If set, Bro will require valid certificates for
|
||||||
## all peers.
|
## all peers.
|
||||||
const ssl_capath = "" &redef;
|
const ssl_capath = "" &redef;
|
||||||
|
|
||||||
|
@ -96,9 +96,9 @@ export {
|
||||||
PEER_INVALID = 3,
|
PEER_INVALID = 3,
|
||||||
## Remote peer not listening.
|
## Remote peer not listening.
|
||||||
PEER_UNAVAILABLE = 4,
|
PEER_UNAVAILABLE = 4,
|
||||||
## An peering request timed out.
|
## A peering request timed out.
|
||||||
PEER_TIMEOUT = 5,
|
PEER_TIMEOUT = 5,
|
||||||
## Master with given name already exist.
|
## Master with given name already exists.
|
||||||
MASTER_EXISTS = 6,
|
MASTER_EXISTS = 6,
|
||||||
## Master with given name does not exist.
|
## Master with given name does not exist.
|
||||||
NO_SUCH_MASTER = 7,
|
NO_SUCH_MASTER = 7,
|
||||||
|
@ -106,7 +106,7 @@ export {
|
||||||
NO_SUCH_KEY = 8,
|
NO_SUCH_KEY = 8,
|
||||||
## The store operation timed out.
|
## The store operation timed out.
|
||||||
REQUEST_TIMEOUT = 9,
|
REQUEST_TIMEOUT = 9,
|
||||||
## The operation expected a different type than provided
|
## The operation expected a different type than provided.
|
||||||
TYPE_CLASH = 10,
|
TYPE_CLASH = 10,
|
||||||
## The data value cannot be used to carry out the desired operation.
|
## The data value cannot be used to carry out the desired operation.
|
||||||
INVALID_DATA = 11,
|
INVALID_DATA = 11,
|
||||||
|
@ -181,7 +181,7 @@ export {
|
||||||
## Listen for remote connections.
|
## Listen for remote connections.
|
||||||
##
|
##
|
||||||
## a: an address string on which to accept connections, e.g.
|
## a: an address string on which to accept connections, e.g.
|
||||||
## "127.0.0.1". An empty string refers to @p INADDR_ANY.
|
## "127.0.0.1". An empty string refers to INADDR_ANY.
|
||||||
##
|
##
|
||||||
## p: the TCP port to listen on. The value 0 means that the OS should choose
|
## p: the TCP port to listen on. The value 0 means that the OS should choose
|
||||||
## the next available free port.
|
## the next available free port.
|
||||||
|
@ -229,9 +229,13 @@ export {
|
||||||
## TODO: We do not have a function yet to terminate a connection.
|
## TODO: We do not have a function yet to terminate a connection.
|
||||||
global unpeer: function(a: string, p: port): bool;
|
global unpeer: function(a: string, p: port): bool;
|
||||||
|
|
||||||
|
## Get a list of all peer connections.
|
||||||
|
##
|
||||||
## Returns: a list of all peer connections.
|
## Returns: a list of all peer connections.
|
||||||
global peers: function(): vector of PeerInfo;
|
global peers: function(): vector of PeerInfo;
|
||||||
|
|
||||||
|
## Get a unique identifier for the local broker endpoint.
|
||||||
|
##
|
||||||
## Returns: a unique identifier for the local broker endpoint.
|
## Returns: a unique identifier for the local broker endpoint.
|
||||||
global node_id: function(): string;
|
global node_id: function(): string;
|
||||||
|
|
||||||
|
@ -268,7 +272,8 @@ export {
|
||||||
global unsubscribe: function(topic_prefix: string): bool;
|
global unsubscribe: function(topic_prefix: string): bool;
|
||||||
|
|
||||||
## Automatically send an event to any interested peers whenever it is
|
## Automatically send an event to any interested peers whenever it is
|
||||||
## locally dispatched (e.g. using "event my_event(...);" in a script).
|
## locally dispatched. (For example, using "event my_event(...);" in a
|
||||||
|
## script.)
|
||||||
##
|
##
|
||||||
## topic: a topic string associated with the event message.
|
## topic: a topic string associated with the event message.
|
||||||
## Peers advertise interest by registering a subscription to some
|
## Peers advertise interest by registering a subscription to some
|
||||||
|
|
|
@ -59,7 +59,7 @@ export {
|
||||||
## Options to tune the RocksDB storage backend.
|
## Options to tune the RocksDB storage backend.
|
||||||
type RocksDBOptions: record {
|
type RocksDBOptions: record {
|
||||||
## File system path of the database.
|
## File system path of the database.
|
||||||
## If left empty, will be derived from the name of the store.
|
## If left empty, will be derived from the name of the store,
|
||||||
## and use the '.rocksdb' file suffix.
|
## and use the '.rocksdb' file suffix.
|
||||||
path: string &default = "";
|
path: string &default = "";
|
||||||
};
|
};
|
||||||
|
@ -125,9 +125,13 @@ export {
|
||||||
## longer be used for data store operations.
|
## longer be used for data store operations.
|
||||||
global close: function(h: opaque of Broker::Store): bool;
|
global close: function(h: opaque of Broker::Store): bool;
|
||||||
|
|
||||||
## Returns: whether a store is closed or not.
|
## Check if a store is closed or not.
|
||||||
|
##
|
||||||
|
## Returns: true if the store is closed.
|
||||||
global is_closed: function(h: opaque of Broker::Store): bool;
|
global is_closed: function(h: opaque of Broker::Store): bool;
|
||||||
|
|
||||||
|
## Get the name of a store.
|
||||||
|
##
|
||||||
## Returns: the name of the store.
|
## Returns: the name of the store.
|
||||||
global store_name: function(h: opaque of Broker::Store): string;
|
global store_name: function(h: opaque of Broker::Store): string;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
##! Defines an interface for managing pools of cluster nodes. Pools are
|
##! Defines an interface for managing pools of cluster nodes. Pools are
|
||||||
##! are useful way to distribute work or data among nodes within a cluster.
|
##! a useful way to distribute work or data among nodes within a cluster.
|
||||||
|
|
||||||
@load ./main
|
@load ./main
|
||||||
@load base/utils/hash_hrw
|
@load base/utils/hash_hrw
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
module Cluster;
|
module Cluster;
|
||||||
|
|
||||||
export {
|
export {
|
||||||
## Store state of a cluster within within the context of a work pool.
|
## Store state of a cluster within the context of a work pool.
|
||||||
type PoolNode: record {
|
type PoolNode: record {
|
||||||
## The node name (e.g. "manager").
|
## The node name (e.g. "manager").
|
||||||
name: string;
|
name: string;
|
||||||
|
|
|
@ -304,7 +304,7 @@ type Cluster::Pool: record;
|
||||||
## Publishes an event to a node within a pool according to Round-Robin
|
## Publishes an event to a node within a pool according to Round-Robin
|
||||||
## distribution strategy.
|
## distribution strategy.
|
||||||
##
|
##
|
||||||
## pool: the pool of nodes that are eligible to receive the revent
|
## pool: the pool of nodes that are eligible to receive the event.
|
||||||
##
|
##
|
||||||
## key: an arbitrary string to identify the purpose for which you're
|
## key: an arbitrary string to identify the purpose for which you're
|
||||||
## distributing the event. e.g. consider using namespacing of your
|
## distributing the event. e.g. consider using namespacing of your
|
||||||
|
@ -350,7 +350,7 @@ function Cluster::publish_rr%(pool: Pool, key: string, ...%): bool
|
||||||
## node, then automatically forwards it to its peers with a different topic.
|
## node, then automatically forwards it to its peers with a different topic.
|
||||||
## The event is relayed at most a single hop.
|
## The event is relayed at most a single hop.
|
||||||
##
|
##
|
||||||
## pool: the pool of nodes that are eligible to receive the event
|
## pool: the pool of nodes that are eligible to receive the event.
|
||||||
##
|
##
|
||||||
## key: an arbitrary string to identify the purpose for which you're
|
## key: an arbitrary string to identify the purpose for which you're
|
||||||
## distributing the event. e.g. consider using namespacing of your
|
## distributing the event. e.g. consider using namespacing of your
|
||||||
|
@ -423,7 +423,7 @@ function Cluster::relay_rr%(pool: Pool, key: any, ...%): bool
|
||||||
## Publishes an event to a node within a pool according to Rendezvous
|
## Publishes an event to a node within a pool according to Rendezvous
|
||||||
## (Highest Random Weight) hashing strategy.
|
## (Highest Random Weight) hashing strategy.
|
||||||
##
|
##
|
||||||
## pool: the pool of nodes that are eligible to receive the revent
|
## pool: the pool of nodes that are eligible to receive the event.
|
||||||
##
|
##
|
||||||
## key: data used for input to the hashing function that will uniformly
|
## key: data used for input to the hashing function that will uniformly
|
||||||
## distribute keys among available nodes.
|
## distribute keys among available nodes.
|
||||||
|
@ -467,7 +467,7 @@ function Cluster::publish_hrw%(pool: Pool, key: any, ...%): bool
|
||||||
## strategy. The receiving nodes then automatically forwards it to its peers
|
## strategy. The receiving nodes then automatically forwards it to its peers
|
||||||
## with a different topic. The event is relayed at most a single hop.
|
## with a different topic. The event is relayed at most a single hop.
|
||||||
##
|
##
|
||||||
## pool: the pool of nodes that are eligible to receive the revent
|
## pool: the pool of nodes that are eligible to receive the event.
|
||||||
##
|
##
|
||||||
## key: data used for input to the hashing function that will uniformly
|
## key: data used for input to the hashing function that will uniformly
|
||||||
## distribute keys among available nodes.
|
## distribute keys among available nodes.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue