service

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Session   *discordgo.Session
	Cfg       *config.Config
	Repo      repository.Repository
	Cron      *cron.Cron
	Validator *validator.Validate
}

func NewService

func NewService(cfg *config.Config, repo repository.Repository, session *discordgo.Session, cron *cron.Cron) Service

func (*Service) AddWatcher

func (s *Service) AddWatcher(w *models.Watcher) error

func (*Service) CheckHealth

func (s *Service) CheckHealth() ([]*models.CheckResult, error)

func (*Service) InitWatchers

func (s *Service) InitWatchers() error

func (*Service) WatchHttp

func (s *Service) WatchHttp(watcher *models.Watcher) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL