MCPcopy Create free account

hub / github.com/OldTyT/frigate-telegram / functions

Functions44 in github.com/OldTyT/frigate-telegram

↓ 34 callersFunctionErrorSend
(TextError string, bot *tgbotapi.BotAPI, EventID string)
internal/frigate/frigate.go:116
↓ 12 callersFunctionNew
New returns a new Config struct
internal/config/config.go:38
↓ 10 callersFunctionReturnResponse
(c *gin.Context, data ResponseApi)
internal/restapi/restapi.go:35
↓ 10 callersFunctiongetEnv
Simple helper function to read an environment or return a default value
internal/config/config.go:69
↓ 7 callersFunctiongetEnvAsInt
Simple helper function to read an environment variable into integer or return a default value
internal/config/config.go:78
↓ 6 callersFunctionGetTagList
(subLabel interface{})
internal/frigate/frigate.go:93
↓ 6 callersFunctionNormalizeTagText
(text string)
internal/frigate/frigate.go:77
↓ 6 callersFunctionStringsContains
(MyStr string, MySlice []string)
internal/frigate/frigate.go:584
↓ 6 callersFunctiongetEnvAsSlice
Helper to read an environment variable into a string slice or return default value
internal/config/config.go:108
↓ 5 callersFunctiongetEnvAsBool
Helper to read an environment variable into a bool or return default value
internal/config/config.go:98
↓ 4 callersFunctionGetStateMuteEvent
Get state send event msg from redis
internal/redis/redis.go:74
↓ 4 callersFunctionSetStateMuteEvent
Set state notify event msg in redis
internal/redis/redis.go:57
↓ 4 callersFunctionSetStateSendEvent
Set state send event msg in redis
internal/redis/redis.go:27
↓ 3 callersFunctionAddNewEvent
(EventID string, State string, RedisTTL time.Duration)
internal/redis/redis.go:85
↓ 3 callersFunctionGetStateSendEvent
Get state send event msg from redis
internal/redis/redis.go:44
↓ 3 callersFunctionWarnSend
(TextError string, bot *tgbotapi.BotAPI, EventID string)
internal/frigate/frigate.go:126
↓ 2 callersFunctionDownloadThumbnail
(EventID string, bot *tgbotapi.BotAPI)
internal/frigate/frigate.go:198
↓ 2 callersFunctionGetEvents
(FrigateURL string, bot *tgbotapi.BotAPI, SetBefore bool)
internal/frigate/frigate.go:267
↓ 2 callersFunctionParseEvents
(FrigateEvents EventsStruct, bot *tgbotapi.BotAPI, WatchDog bool)
internal/frigate/frigate.go:593
↓ 1 callersFunctionChatBot
ChatBot is needed to check the work of the bot.
internal/telegram/telegram.go:15
↓ 1 callersFunctionCheckEvent
(EventID string)
internal/redis/redis.go:92
↓ 1 callersFunctionHelp
(msg tgbotapi.MessageConfig, conf *config.Config)
internal/telegram/telegram.go:69
↓ 1 callersFunctionLogFunc
()
internal/log/log.go:19
↓ 1 callersFunctionMute
(msg tgbotapi.MessageConfig, conf *config.Config)
internal/telegram/telegram.go:123
↓ 1 callersFunctionNotifyEvents
(bot *tgbotapi.BotAPI, FrigateEventsURL string)
internal/frigate/frigate.go:695
↓ 1 callersFunctionResume
(msg tgbotapi.MessageConfig, conf *config.Config)
internal/telegram/telegram.go:109
↓ 1 callersFunctionRunServer
(conf *config.Config)
internal/restapi/restapi.go:188
↓ 1 callersFunctionSaveClip
(EventID string, bot *tgbotapi.BotAPI)
internal/frigate/frigate.go:313
↓ 1 callersFunctionSaveThumbnail
(EventID string, Thumbnail string, bot *tgbotapi.BotAPI)
internal/frigate/frigate.go:136
↓ 1 callersFunctionSendMessageEvent
(FrigateEvent EventStruct, bot *tgbotapi.BotAPI)
internal/frigate/frigate.go:390
↓ 1 callersFunctionSendTextEvent
(FrigateEvent EventStruct, bot *tgbotapi.BotAPI)
internal/frigate/frigate.go:674
↓ 1 callersFunctionStatus
(msg tgbotapi.MessageConfig, conf *config.Config)
internal/telegram/telegram.go:84
↓ 1 callersFunctionStop
(msg tgbotapi.MessageConfig, conf *config.Config)
internal/telegram/telegram.go:95
↓ 1 callersFunctionUnmute
(msg tgbotapi.MessageConfig, conf *config.Config)
internal/telegram/telegram.go:137
↓ 1 callersFunctiongetEnvAsInt64
Simple helper function to read an environment variable into integer or return a default value
internal/config/config.go:88
↓ 1 callersFunctionserverDocs
(apiPath string)
internal/restapi/restapi.go:26
FunctionMute
Mute godoc @Summary Mute send event @Description Mute send event @Tags status @Accept json @Produce json @Success 200 @F
internal/restapi/restapi.go:126
FunctionPing
Stop godoc @Summary Ping @Description Pong @Tags status @Accept json @Produce json @Success 200 @Router /ping [get
internal/restapi/restapi.go:56
FunctionResume
Resume godoc @Summary Resume send event @Description Resume send event @Tags status @Accept json @Produce json @Success
internal/restapi/restapi.go:99
FunctionStatus
Status godoc @Summary Get status @Description Current status @Tags status @Accept json @Produce json @Success 200 @Failu
internal/restapi/restapi.go:180
FunctionStop
Stop godoc @Summary Stop send event @Description Stop send event @Tags status @Accept json @Produce json @Success 200 @F
internal/restapi/restapi.go:72
FunctionUnmute
Unmute godoc @Summary Unmute send event @Description Unmute send event @Tags status @Accept json @Produce json @Success
internal/restapi/restapi.go:153
Functioninit
()
docs/docs.go:168
Functionmain
()
main.go:22