Git Product home page Git Product logo

Comments (4)

fengmk2 avatar fengmk2 commented on May 18, 2024

https://github.com/cnpm/cnpmcore/blob/master/app/infra/QueueAdapter.ts#L18 可以参考。

from tegg.

yinshanhu avatar yinshanhu commented on May 18, 2024

https://github.com/cnpm/cnpmcore/blob/master/app/infra/QueueAdapter.ts#L18 可以参考。

老哥,我参考的就是这个,这个用的官方egg-redis插件,我自定义插件就报错。

from tegg.

WuWhite avatar WuWhite commented on May 18, 2024

自定义插件可以通过ctx带过去 @context() ctx: EggContext,

from tegg.

killagu avatar killagu commented on May 18, 2024

现在是通过 https://github.com/eggjs/tegg/blob/master/plugin/tegg/lib/EggAppLoader.ts#L109 这里遍历 context 上的 properties 来实现的。

如果插件不是通过 extends 来实现,就没法找到了。

from tegg.

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.