Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTelegramResponseTypeNotFound = fmt.Errorf("telegram response not found")
Functions ¶
func NewManager ¶
Types ¶
type Config ¶
type Config struct { Admin string `envconfig:"BLOOP_ADMIN_USERNAME" default:"false"` // Logging all requests and responses from telegram Debug bool `envconfig:"BLOOP_DEBUG" default:"false"` // Number of items in the cache CacheSize int `envconfig:"BLOOP_CACHE_SIZE" default:"1024"` // Port on which health check and REST API are launched Port string `envconfig:"BLOOP_PORT" default:"1234"` // profile port ProfPort string `envconfig:"BLOOP_PROF_PORT" default:"8888"` // Http server for POST requests from telegram(if you use web hooks) BotWebhookAddr string `envconfig:"BLOOP_WEBHOOK_ADDR" default:":4444"` // Not working in the CLI application // If you want to work through web hooks (https://domain:tlsport/) // TLS port must be 88, 8443, 443, 80. The requirement telegram // Web hooks allow you to greatly speed up the response time, this is only necessary for production and almost does // not affect the process in any way BotWebhookHookURL string `envconfig:"BLOOP_BOT_WEBHOOK_URL"` // Telegram bot token BotToken string `envconfig:"BLOOP_BOT_TOKEN"` // Waiting time to complete the game creation session BuildingTimeout time.Duration `envconfig:"BLOOP_BUILDING_TIMEOUT" default:"60m"` // Waiting time for the game session to end PlayingTimeout time.Duration `envconfig:"BLOOP_PLAYING_TIMEOUT" default:"24h"` TgBotPollTimeout time.Duration `envconfig:"BLOOP_TG_BOT_POLL_TIMEOUT" default:"60s"` DB database.Config }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.