Versions in this module Expand all Collapse all v1 v1.0.0 Sep 15, 2021 Changes in this version + func GetRealAddr(r *http.Request) string + type CamModule interface + Capture func() (image.Image, error) + HandleCommands func(chan int) error + Send func(image.Image) error + SendTo func(image.Image, int) error + type Config struct + General GeneralConfig + Snapshots SnapshotConfig + Telegram TelegramConfig + Videos VideoConfig + type GeneralConfig struct + IpFilter string + Port string + RateFilter int + Server string + type SnapshotConfig struct + ActiveTime TimerConfig + Enabled bool + IntervalS int + SnapshotUrl string + type Snapshots struct + Cfg *Config + Client *http.Client + TgBot *tgbotapi.BotAPI + func (a *Snapshots) Capture() (image.Image, error) + func (a *Snapshots) HandleCommands(ch chan int) error + func (a *Snapshots) Send(img image.Image) error + func (a *Snapshots) SendTo(img image.Image, replyId int) error + type TelegramConfig struct + ApiKey string + BotName string + ChatId int64 + type TimerConfig struct + FromTime string + ToTime string + type VideoConfig struct + ActiveTime TimerConfig + Enabled bool + IntervalS int + LengthS int