newsfeed

module
v0.0.0-...-407f28a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2023 License: MIT

README

newsfeed build go report card PkgGoDev codecov

a bot that sends news from the feed in a compressed format

options

Application Options:
      --json-logs                      turn on json logs [$JSON_LOGS]
      --dbg                            turn on debug mode [$DEBUG]

Help Options:
  -h, --help                           Show this help message

[run command options]
          --store-path=                parent dir for bolt files [$STORE_PATH]

    bot:
          --bot.timeout=               timeout for requests (default: 6m) [$BOT_TIMEOUT]
          --bot.admin-ids=             admin IDs [$BOT_ADMIN_IDS]
          --bot.auth-token=            token for authorizing requests [$BOT_AUTH_TOKEN]

    telegram:
          --bot.telegram.token=        telegram token [$BOT_TELEGRAM_TOKEN]

    openai:
          --revisor.openai.token=      OpenAI token [$REVISOR_OPENAI_TOKEN]
          --revisor.openai.max-tokens= max tokens for OpenAI (default: 1000) [$REVISOR_OPENAI_MAX_TOKENS]
          --revisor.openai.timeout=    timeout for OpenAI calls (default: 5m) [$REVISOR_OPENAI_TIMEOUT]

Directories

Path Synopsis
app
Package main is an entrypoint for application
Package main is an entrypoint for application
bot
Package bot contains routers and controllers for bots.
Package bot contains routers and controllers for bots.
cmd
Package cmd contains commands for the application.
Package cmd contains commands for the application.
revisor
Package revisor contains services for processing and retrieving articles.
Package revisor contains services for processing and retrieving articles.
store
Package store contains entities and services to process and contain them.
Package store contains entities and services to process and contain them.
pkg
botx
Package botx provides interfaces and types to handle bot updates, with a chi-like router.
Package botx provides interfaces and types to handle bot updates, with a chi-like router.
botx/botapi
Package botapi contains implementations of bot API interfaces.
Package botapi contains implementations of bot API interfaces.
botx/botmw
Package botmw provides middlewares for bot handler.
Package botmw provides middlewares for bot handler.
logx
Package logx contains logging middleware for request id.
Package logx contains logging middleware for request id.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL