constant

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Me                 = "/me"
	Magnet             = "/magnet"
	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:"
)
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"
	RestyTrace        = "RESTY_TRACE"
	PDFEndPoint       = "/pdf/"
	WebhookServerURL  = "WEBHOOK_SERVER_URL"
	WebhookServerPort = "WEBHOOK_SERVER_PORT"
	WebhookToken      = "WEBHOOK_TOKEN"
	PDFServerUrl      = "PDF_SERVER_URL"
	PDFExtension      = ".pdf"
	ImgExtension      = ".png"
)

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