Skip to content

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

@freedomkk-qfeng

Description

@freedomkk-qfeng

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

支持 3 种mode

  1. 纯命令行的输出,一次性的输出被探测网站的情况
  2. 一次性的执行,内容push到 prometheus,用户自行解决 crontab 的事情
  3. 发布 web 服务,数据进db,增加一个 cron packege 内执行定时逻辑。gin 渲染页面,同时暴露一个给 prometheus metric 页,也就是说此时也可以给 prometheus 支持,但是 pull 模式。 将来可以通过配置的形式拓展支持 sso 的 Middleware。

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions