Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Todo】优化 cmdline 设计模式 #2

Open
freedomkk-qfeng opened this issue Apr 25, 2024 · 0 comments
Open

【Todo】优化 cmdline 设计模式 #2

freedomkk-qfeng opened this issue Apr 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@freedomkk-qfeng
Copy link
Member

引入 github.com/spf13/cobra,重新设计 cmdline 体系。

支持 3 种mode

  1. 纯命令行的输出,一次性的输出被探测网站的情况
  2. 一次性的执行,内容push到 prometheus,用户自行解决 crontab 的事情
  3. 发布 web 服务,数据进db,增加一个 cron packege 内执行定时逻辑。gin 渲染页面,同时暴露一个给 prometheus metric 页,也就是说此时也可以给 prometheus 支持,但是 pull 模式。 将来可以通过配置的形式拓展支持 sso 的 Middleware。
@freedomkk-qfeng freedomkk-qfeng added the enhancement New feature or request label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant