Git Product home page Git Product logo

Comments (3)

shaunwarman avatar shaunwarman commented on July 22, 2024

Hey @djMax

You're right. You'd want to use confit to load your json configuration that uses confit's protocol option to pass in your custom shortstop protocol.

There is a similar setup in the tests here, but you would want to probably take it further and have confit do the work of loading the json and taking advantage of your custom shortstop protocol. Then you can pass that object to meddleware.

Additionally, the shortstop protocol would look very similar to the default env handler in shortstop-handlers.

It's late, but I'll create an example in the AM.

from meddleware.

shaunwarman avatar shaunwarman commented on July 22, 2024

So here's a simple example using a new shortstop handler:
https://github.com/shaunwarman/custom-confit-shortstop-example

This new handler would need to be passed to confit options like mentioned above and used to resolve your config file. Then this config object can get passed to meddleware at startup.

from meddleware.

djMax avatar djMax commented on July 22, 2024

Yes, I can definitely see how to do it with a shortstop, but this feels like something that shouldn't require one... Basically there is support for "true" as default, but not false. Weird.

from meddleware.

Related Issues (20)

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.