GithubHelp home page GithubHelp logo

ichbinchicken / envoy-filter-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from envoyproxy/envoy-filter-example

0.0 0.0 0.0 1.72 MB

Example of consuming Envoy and adding a custom filter

C++ 71.88% Shell 5.82% Starlark 22.29%

envoy-filter-example's Introduction

Envoy filter example

This project demonstrates the linking of additional filters with the Envoy binary. A new filter echo2 is introduced, identical modulo renaming to the existing echo filter. Integration tests demonstrating the filter's end-to-end behavior are also provided.

For an example of additional HTTP filters, see here.

Building

To build the Envoy static binary:

  1. git submodule update --init
  2. bazel build //:envoy

Testing

To run the echo2 integration test:

bazel test //:echo2_integration_test

To run the regular Envoy tests from this project:

bazel test @envoy//test/...

How it works

The Envoy repository is provided as a submodule. The WORKSPACE file maps the @envoy repository to this local path.

The BUILD file introduces a new Envoy static binary target, envoy, that links together the new filter and @envoy//source/exe:envoy_main_entry_lib. The echo2 filter registers itself during the static initialization phase of the Envoy binary as a new filter.

envoy-filter-example's People

Contributors

htuch avatar alyssawilk avatar mattklein123 avatar dio avatar lizan avatar piotrsikora avatar zuercher avatar derekargueta avatar talnordan avatar taion809 avatar kyessenov avatar jmarantz avatar ggreenway avatar satvindar avatar songhu avatar venilnoronha avatar qinggniq avatar warrn avatar lambdai avatar 110y avatar curiouserrandy avatar jmillikin-stripe avatar msample avatar ramaraochavali avatar yanavlasov avatar wbpcode avatar ryanchapman avatar rgs1 avatar f3nry avatar mtakigiku avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.