Skip to main content

Crate coreon_yaml

Crate coreon_yaml 

Source
Expand description

camel-yaml — load routes from a YAML document into a running CamelContext.

Schema (top level):

routes:
  - id: hello
    from: direct:in
    steps:
      - filter:
          body_contains: "hello"
      - transform:
          upper: true
      - to: log:out

Supported steps variants and their YAML shapes are documented on Step in the schema module.

Re-exports§

pub use error::YamlError;
pub use loader::load_str;
pub use loader::load_file;
pub use schema::Document;
pub use schema::RouteSpec;
pub use schema::Step;

Modules§

error
loader
Walk a parsed Document and translate it into RouteBuilder calls.
schema
Serde types for the camel-rs YAML DSL.