daemon

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(host string, port int)

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(db *database.DB) *Service

func (*Service) AddMonitor

func (s *Service) AddMonitor(args struct{ Name, URL string }, reply *string) error

func (*Service) GetHistoricalStats

func (s *Service) GetHistoricalStats(args struct {
	MonitorID int
	Count     int
}, reply *[]types.HistoricalStat) error

func (*Service) GetServiceStatus

func (s *Service) GetServiceStatus(name string, reply *types.ServiceStatus) error

func (*Service) ListMonitors

func (s *Service) ListMonitors(_ struct{}, reply *[]types.Monitor) error

func (*Service) PauseMonitor

func (s *Service) PauseMonitor(name string, reply *string) error

func (*Service) RemoveMonitor

func (s *Service) RemoveMonitor(name string, reply *string) error

func (*Service) ResumeMonitor

func (s *Service) ResumeMonitor(name string, reply *string) error

Jump to

Keyboard shortcuts

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