Visitar URL original
Sharing common state between filters · Issue #149 · meta/wangle · GitHub
Skip to content

Sharing common state between filters #149

Open

Description

@conqerAtapple

Hello Wanglers
If I had to share some common state between filters in the Pipeline what is the recommended way to do this? Say, the first filter unwraps a network packet which contains header with information about the entire connection duration that can be shared between different filters, how do I extract this information/header in one filter and populate a map or something that can be used by other filters.

thanks

Activity

  1. graphcareful commented on Aug 21, 2019

    @graphcareful

    Yes I would like to know the same thing. In more then one place in the documentation the following is stated:

    When events are called, a Context* object is passed to the Handler - this means state can be stored in the context object, and a single instantiation of any individual Handler can be used for the entire program.

    , however a concrete example is never shown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions