Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OldTyT/frigate-telegram
/ functions
Functions
44 in github.com/OldTyT/frigate-telegram
⨍
Functions
44
◇
Types & classes
4
↓ 34 callers
Function
ErrorSend
(TextError string, bot *tgbotapi.BotAPI, EventID string)
internal/frigate/frigate.go:116
↓ 12 callers
Function
New
New returns a new Config struct
internal/config/config.go:38
↓ 10 callers
Function
ReturnResponse
(c *gin.Context, data ResponseApi)
internal/restapi/restapi.go:35
↓ 10 callers
Function
getEnv
Simple helper function to read an environment or return a default value
internal/config/config.go:69
↓ 7 callers
Function
getEnvAsInt
Simple helper function to read an environment variable into integer or return a default value
internal/config/config.go:78
↓ 6 callers
Function
GetTagList
(subLabel interface{})
internal/frigate/frigate.go:93
↓ 6 callers
Function
NormalizeTagText
(text string)
internal/frigate/frigate.go:77
↓ 6 callers
Function
StringsContains
(MyStr string, MySlice []string)
internal/frigate/frigate.go:584
↓ 6 callers
Function
getEnvAsSlice
Helper to read an environment variable into a string slice or return default value
internal/config/config.go:108
↓ 5 callers
Function
getEnvAsBool
Helper to read an environment variable into a bool or return default value
internal/config/config.go:98
↓ 4 callers
Function
GetStateMuteEvent
Get state send event msg from redis
internal/redis/redis.go:74
↓ 4 callers
Function
SetStateMuteEvent
Set state notify event msg in redis
internal/redis/redis.go:57
↓ 4 callers
Function
SetStateSendEvent
Set state send event msg in redis
internal/redis/redis.go:27
↓ 3 callers
Function
AddNewEvent
(EventID string, State string, RedisTTL time.Duration)
internal/redis/redis.go:85
↓ 3 callers
Function
GetStateSendEvent
Get state send event msg from redis
internal/redis/redis.go:44
↓ 3 callers
Function
WarnSend
(TextError string, bot *tgbotapi.BotAPI, EventID string)
internal/frigate/frigate.go:126
↓ 2 callers
Function
DownloadThumbnail
(EventID string, bot *tgbotapi.BotAPI)
internal/frigate/frigate.go:198
↓ 2 callers
Function
GetEvents
(FrigateURL string, bot *tgbotapi.BotAPI, SetBefore bool)
internal/frigate/frigate.go:267
↓ 2 callers
Function
ParseEvents
(FrigateEvents EventsStruct, bot *tgbotapi.BotAPI, WatchDog bool)
internal/frigate/frigate.go:593
↓ 1 callers
Function
ChatBot
ChatBot is needed to check the work of the bot.
internal/telegram/telegram.go:15
↓ 1 callers
Function
CheckEvent
(EventID string)
internal/redis/redis.go:92
↓ 1 callers
Function
Help
(msg tgbotapi.MessageConfig, conf *config.Config)
internal/telegram/telegram.go:69
↓ 1 callers
Function
LogFunc
()
internal/log/log.go:19
↓ 1 callers
Function
Mute
(msg tgbotapi.MessageConfig, conf *config.Config)
internal/telegram/telegram.go:123
↓ 1 callers
Function
NotifyEvents
(bot *tgbotapi.BotAPI, FrigateEventsURL string)
internal/frigate/frigate.go:695
↓ 1 callers
Function
Resume
(msg tgbotapi.MessageConfig, conf *config.Config)
internal/telegram/telegram.go:109
↓ 1 callers
Function
RunServer
(conf *config.Config)
internal/restapi/restapi.go:188
↓ 1 callers
Function
SaveClip
(EventID string, bot *tgbotapi.BotAPI)
internal/frigate/frigate.go:313
↓ 1 callers
Function
SaveThumbnail
(EventID string, Thumbnail string, bot *tgbotapi.BotAPI)
internal/frigate/frigate.go:136
↓ 1 callers
Function
SendMessageEvent
(FrigateEvent EventStruct, bot *tgbotapi.BotAPI)
internal/frigate/frigate.go:390
↓ 1 callers
Function
SendTextEvent
(FrigateEvent EventStruct, bot *tgbotapi.BotAPI)
internal/frigate/frigate.go:674
↓ 1 callers
Function
Status
(msg tgbotapi.MessageConfig, conf *config.Config)
internal/telegram/telegram.go:84
↓ 1 callers
Function
Stop
(msg tgbotapi.MessageConfig, conf *config.Config)
internal/telegram/telegram.go:95
↓ 1 callers
Function
Unmute
(msg tgbotapi.MessageConfig, conf *config.Config)
internal/telegram/telegram.go:137
↓ 1 callers
Function
getEnvAsInt64
Simple helper function to read an environment variable into integer or return a default value
internal/config/config.go:88
↓ 1 callers
Function
serverDocs
(apiPath string)
internal/restapi/restapi.go:26
Function
Mute
Mute godoc @Summary Mute send event @Description Mute send event @Tags status @Accept json @Produce json @Success 200 @F
internal/restapi/restapi.go:126
Function
Ping
Stop godoc @Summary Ping @Description Pong @Tags status @Accept json @Produce json @Success 200 @Router /ping [get
internal/restapi/restapi.go:56
Function
Resume
Resume godoc @Summary Resume send event @Description Resume send event @Tags status @Accept json @Produce json @Success
internal/restapi/restapi.go:99
Function
Status
Status godoc @Summary Get status @Description Current status @Tags status @Accept json @Produce json @Success 200 @Failu
internal/restapi/restapi.go:180
Function
Stop
Stop godoc @Summary Stop send event @Description Stop send event @Tags status @Accept json @Produce json @Success 200 @F
internal/restapi/restapi.go:72
Function
Unmute
Unmute godoc @Summary Unmute send event @Description Unmute send event @Tags status @Accept json @Produce json @Success
internal/restapi/restapi.go:153
Function
init
()
docs/docs.go:168
Function
main
()
main.go:22