Documentation ¶
Index ¶
- Variables
- func CheckHash(password, hash string) bool
- func CheckServices()
- func CheckinProcess()
- func CompileSASS() error
- func CopyToPublic(box *rice.Box, folder, file string)
- func CountFailures() uint64
- func CountOnline() int
- func Create(c *Communication) (int64, error)
- func CreateAllAssets()
- func CreateDatabase()
- func DatabaseMaintence()
- func DbConnection(dbType string) error
- func DeleteAllSince(table string, date time.Time)
- func DeleteConfig()
- func Disable(c *Communication)
- func DropDatabase()
- func Enable(c *Communication)
- func ExportIndexHTML() string
- func HasAssets() bool
- func InsertDefaultComms()
- func LoadComms()
- func LoadDefaultCommunications()
- func LoadSampleData() error
- func MakePublicFolder(folder string)
- func OnDeletedService(s *Service)
- func OnFailure(s *Service, f FailureData)
- func OnLoad(db sqlbuilder.Database)
- func OnNewService(s *Service)
- func OnNewUser(u *User)
- func OnSettingsSaved(c *Core)
- func OnSuccess(s *Service)
- func OnUpdateService(s *Service)
- func OpenAsset(file string) string
- func Run(c *Communication)
- func RunDatabaseUpgrades()
- func SaveAsset(data, file string)
- func SaveFile(filename string, data []byte) error
- func SelectPlugin(name string) plugin.PluginActions
- func SendSlackMessage(msg string) error
- type Checkin
- type Communication
- type Config
- type Core
- type DateScan
- type DbConfig
- type ErrorResponse
- type Failure
- type FailureData
- type Hit
- type HitData
- type PluginJSON
- type PluginRepos
- type Service
- func (s *Service) AvgTime() float64
- func (s *Service) AvgUptime() string
- func (s *Service) Check() *Service
- func (s *Service) CheckQueue()
- func (u *Service) Create() (int64, error)
- func (s *Service) CreateFailure(data FailureData) (int64, error)
- func (s *Service) CreateHit(d HitData) (int64, error)
- func (s *Service) DNSCheck() (float64, error)
- func (u *Service) Delete() error
- func (u *Service) DeleteFailures()
- func (s *Service) Failure(issue string)
- func (s *Service) GraphData() string
- func (s *Service) Hits() ([]Hit, error)
- func (s *Service) LimitedFailures() []*Failure
- func (s *Service) LimitedHits() ([]*Hit, error)
- func (s *Service) Online24() float32
- func (s *Service) Record(response *http.Response)
- func (u *Service) RemoveArray() []*Service
- func (s *Service) SelectAllCheckins() []*Checkin
- func (s *Service) SelectAllFailures() []*Failure
- func (s *Service) SelectHitsGroupBy(group string) ([]Hit, error)
- func (s *Service) SmallText() string
- func (s *Service) StartCheckins()
- func (s *Service) Sum() (float64, error)
- func (s *Service) TotalFailures() (uint64, error)
- func (s *Service) TotalFailures24Hours() (uint64, error)
- func (s *Service) TotalHits() (uint64, error)
- func (u *Service) Update(s *Service) *Service
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Configs *Config CoreApp *Core SqlBox *rice.Box CssBox *rice.Box ScssBox *rice.Box JsBox *rice.Box TmplBox *rice.Box EmailBox *rice.Box SetupMode bool AllPlugins []plugin.PluginActions UsingAssets bool )
View Source
var (
DbSession sqlbuilder.Database
)
View Source
var (
VERSION string
)
Functions ¶
func CheckServices ¶
func CheckServices()
func CheckinProcess ¶
func CheckinProcess()
func CompileSASS ¶
func CompileSASS() error
func CopyToPublic ¶
func CopyToPublic(box *rice.Box, folder, file string)
func CountFailures ¶
func CountFailures() uint64
func CountOnline ¶
func CountOnline() int
func Create ¶
func Create(c *Communication) (int64, error)
func CreateAllAssets ¶
func CreateAllAssets()
func CreateDatabase ¶
func CreateDatabase()
func DatabaseMaintence ¶
func DatabaseMaintence()
func DbConnection ¶
func DeleteAllSince ¶
func DeleteConfig ¶
func DeleteConfig()
func Disable ¶
func Disable(c *Communication)
func DropDatabase ¶
func DropDatabase()
func Enable ¶
func Enable(c *Communication)
func ExportIndexHTML ¶
func ExportIndexHTML() string
func InsertDefaultComms ¶
func InsertDefaultComms()
func LoadDefaultCommunications ¶
func LoadDefaultCommunications()
func LoadSampleData ¶
func LoadSampleData() error
func MakePublicFolder ¶
func MakePublicFolder(folder string)
func OnDeletedService ¶
func OnDeletedService(s *Service)
func OnFailure ¶
func OnFailure(s *Service, f FailureData)
func OnLoad ¶
func OnLoad(db sqlbuilder.Database)
func OnNewService ¶
func OnNewService(s *Service)
func OnSettingsSaved ¶
func OnSettingsSaved(c *Core)
func OnUpdateService ¶
func OnUpdateService(s *Service)
func Run ¶
func Run(c *Communication)
func RunDatabaseUpgrades ¶
func RunDatabaseUpgrades()
func SelectPlugin ¶
func SelectPlugin(name string) plugin.PluginActions
func SendSlackMessage ¶ added in v0.28.5
Types ¶
type Checkin ¶
func FindCheckin ¶
func SelectCheckinApi ¶
func (*Checkin) CreateFailure ¶
func (f *Checkin) CreateFailure()
func (*Checkin) Receivehit ¶
func (c *Checkin) Receivehit()
func (*Checkin) RecheckCheckinFailure ¶
func (c *Checkin) RecheckCheckinFailure(guard chan struct{})
type Communication ¶
type Communication types.Communication
func SelectAllCommunications ¶
func SelectAllCommunications() ([]*Communication, error)
func SelectCommunication ¶
func SelectCommunication(id int64) *Communication
func Update ¶
func Update(c *Communication) *Communication
type Core ¶
type Core struct { Name string `db:"name" json:"name"` Description string `db:"description" json:"name"` Config string `db:"config" json:"-"` ApiKey string `db:"api_key" json:"-"` ApiSecret string `db:"api_secret" json:"-"` Style string `db:"style" json:"-"` Domain string `db:"domain" json:"domain,omitempty"` Version string `db:"version" json:"version,omitempty"` Services []*Service `json:"services,omitempty"` Plugins []plugin.Info Repos []PluginJSON //PluginFields []PluginSelect Communications []*Communication OfflineAssets bool }
func SelectCore ¶
func (Core) MobileSASS ¶ added in v0.28.5
func (Core) UsingAssets ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string
}
type Failure ¶
func (*Failure) ParseError ¶
type FailureData ¶
type FailureData types.FailureData
type PluginJSON ¶
type PluginJSON types.PluginJSON
type PluginRepos ¶
type PluginRepos types.PluginRepos
type Service ¶
type Service struct { Id int64 `db:"id,omitempty" json:"id"` Name string `db:"name" json:"name"` Domain string `db:"domain" json:"domain"` Expected string `db:"expected" json:"expected"` ExpectedStatus int `db:"expected_status" json:"expected_status"` Interval int `db:"check_interval" json:"check_interval"` Type string `db:"check_type" json:"type"` Method string `db:"method" json:"method"` PostData string `db:"post_data" json:"post_data"` Port int `db:"port" json:"port"` CreatedAt time.Time `db:"created_at" json:"created_at"` Online bool `json:"online"` Latency float64 `json:"latency"` Online24Hours float32 `json:"24_hours_online"` AvgResponse string `json:"avg_response"` TotalUptime string `json:"uptime"` OrderId int64 `json:"order_id"` Failures []*Failure `json:"failures"` Checkins []*Checkin `json:"checkins"` LastResponse string LastStatusCode int LastOnline time.Time // contains filtered or unexported fields }
func SelectAllServices ¶
func SelectService ¶
func (*Service) CheckQueue ¶
func (s *Service) CheckQueue()
func (*Service) CreateFailure ¶
func (s *Service) CreateFailure(data FailureData) (int64, error)
func (*Service) DeleteFailures ¶
func (u *Service) DeleteFailures()
func (*Service) LimitedFailures ¶
func (*Service) LimitedHits ¶
func (*Service) RemoveArray ¶
func (*Service) SelectAllCheckins ¶
func (*Service) SelectAllFailures ¶
func (*Service) SelectHitsGroupBy ¶
func (*Service) StartCheckins ¶
func (s *Service) StartCheckins()
func (*Service) TotalFailures ¶
func (*Service) TotalFailures24Hours ¶
Click to show internal directories.
Click to hide internal directories.