Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderNode ¶
Types ¶
type ChannelInfo ¶
type ChannelInfo struct { // Local identification of the client ID string `json:"id"` // Cna be wither telegram, email, sms, or smoke_signal ChannelType string `json:"type"` // External identification of the feedback channel ChannelID string `json:"channel"` }
func NewChannelInfo ¶
func NewChannelInfo(channelType string, channelId string) *ChannelInfo
type HttpService ¶
func NewHttpService ¶
func NewHttpService() *HttpService
type WatchRequest ¶
type WatchRequest struct { // The channel information to return the feedback FeedbackChannelInfo *ChannelInfo `json:"id"` // URL to be checked if changed URL *url.URL `json:"url"` // interval in seconds, defaults to 3600s = 1h Interval int64 }
Represents the request of a watcher of a certain website
func NewWatchRequest ¶
func NewWatchRequest(channelInfo *ChannelInfo, rawURL string) (*WatchRequest, error)
type WatcherRepository ¶
type WatcherRepository struct { }
func NewWatcherRepository ¶
func NewWatcherRepository() *WatcherRepository
type WatcherService ¶
type WatcherService struct { WatchedUrls []*Watched // contains filtered or unexported fields }
func NewWatcherService ¶
func NewWatcherService() *WatcherService
func (*WatcherService) Insert ¶
func (watcherService *WatcherService) Insert(watch *Watched)
func (*WatcherService) Register ¶
func (watcherService *WatcherService) Register(request *WatchRequest) error
func (*WatcherService) Request ¶
func (watcherService *WatcherService) Request(wg *sync.WaitGroup, watched *Watched)
func (*WatcherService) Start ¶
func (watcherService *WatcherService) Start()
Click to show internal directories.
Click to hide internal directories.