constant

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Me                 = "/me"
	Retry              = "/retry"
	Clean              = "/clean"
	AddKeyword         = "/add_keywords"
	EditKeyword        = "/edit_keywords"
	DeleteKeyword      = "/delete_keywords"
	AddAlarmKeyword    = "/add_alarm_keywords"
	SearchAlarmRecords = "/search_alarm_records"
	SearchHistory      = "/search_history_title"
	ListToday          = "/list_today"
	TodayCallback      = "today:"
	ConvertPDF         = "/convertpdf"
	ConvertIMG         = "/convertimg"
	Start              = "/start"
	Alarm              = "/alarm"
	Debug              = "/debug"
	Statistics         = "/statistics"
	AlarmCallback      = "alarm:"
	SearchCallback     = "search:"
	StatisticsCallback = "stats:"
)
View Source
const (
	TelegramBotToken  = "TELEGRAM_BOT_TOKEN"
	TelegramBotName   = "TELEGRAM_BOT_NAME"
	ScheduleInterval  = "SCHEDULE_INTERVAL"
	ConfigPath        = "CONFIG_PATH"
	ManagerId         = "MANAGER_ID"
	ServerURL         = "SERVER_URL"
	DatabaseFile      = "bot.db"
	LogFile           = "bot.log"
	LogLevel          = "LOG_LEVEL"
	CrawlDays         = "CRAWL_DAYS"
	PDFEndPoint       = "/pdf/"
	WebhookServerURL  = "WEBHOOK_SERVER_URL"
	WebhookServerPort = "WEBHOOK_SERVER_PORT"
	WebhookToken      = "WEBHOOK_TOKEN"
	PDFServerUrl      = "PDF_SERVER_URL"
	PDFExtension      = ".pdf"
	ImgExtension      = ".png"

	// Public entry point settings. PUBLIC_BASE_URL is the only switch that
	// enables the public HTTP surface; the paths are fixed so deployments do
	// not have to keep the reverse proxy and the bot in sync.
	PublicBaseURL          = "PUBLIC_BASE_URL"
	TelegramWebhookSecret  = "TELEGRAM_WEBHOOK_SECRET"
	TelegramWebhookEnabled = "TELEGRAM_WEBHOOK_ENABLED"
	MiniAppEnabled         = "MINI_APP_ENABLED"
	TelegramWebhookPath    = "/telegram/webhook"
	MiniAppPath            = "/app/"
	APIPath                = "/api/"
	HealthPath             = "/healthz"
)

Variables

View Source
var (
	Version   = "unknown version"
	BuildTime = "unknown time"
)

Functions

This section is empty.

Types

type CreditType added in v1.4.1

type CreditType string

CreditType represents the type of credit record

const (
	// CreditTypeBreakFaith represents a break of faith record
	CreditTypeBreakFaith CreditType = "breakFaith"
	// CreditTypeSuspend represents a suspension record
	CreditTypeSuspend CreditType = "suspend"
)

func (CreditType) IsValid added in v1.4.1

func (ct CreditType) IsValid() bool

IsValid checks if the CreditType is valid

func (CreditType) String added in v1.4.1

func (ct CreditType) String() string

String returns the string representation of CreditType

Jump to

Keyboard shortcuts

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