Available on crate features
source-rest and source-singer only.Modules§
- assemble
- Pure page-assembly state machine.
- config
- Configuration types for the Singer tap bridge source.
- discover
- Singer catalog discovery: run
<tap> --config <tmp> --discoverand return the catalog it prints. Used byfaucet init --source singer --discover. - message
- Singer message model + line parser.
- process
- Tap subprocess runner: spawn, stream stdout as parsed messages over a
bounded channel (backpressure), drain stderr into
tracing, and always reap the child (SIGTERM → grace → SIGKILL on the paths we control;kill_on_dropis the backstop for an abrupt drop/cancel). - stream
SingerSource— theSourceimplementation that bridges a Singer tap.
Structs§
- Singer
Source - A source that runs a Singer tap and adapts its output into faucet records.
- Singer
Source Config - Configuration for the Singer tap bridge source.
- Stream
Selection - Result of
select_streams: the rewritten catalog plus what was selected and any warnings the caller should surface to the user.
Enums§
- Faucet
Error - All possible errors returned by faucet-stream.
- Malformed
Policy - What to do when the tap emits a line that is not valid Singer JSON.
- Singer
Message - A parsed Singer protocol message.
Traits§
- Sink
- A sink writes records to an external system.
- Source
- A source fetches records from an external system.
Functions§
- catalog_
stream_ ids - Extract the stream ids from a Singer catalog (
tap_stream_id, falling back tostream), in catalog order. - discover
- Run the tap in discovery mode and parse its stdout as a Singer catalog.
- parse_
line - Parse one line of tap stdout into a
SingerMessage. - select_
streams - Mark
target— and any parent streams inferable from the catalog — asselected, returning the rewritten catalog.