Documentation
¶
Index ¶
- type Oracle
- func (d *Oracle) Close() error
- func (d *Oracle) Connect() error
- func (d *Oracle) Enable(enabled bool)
- func (d *Oracle) GetCheckInterval() int
- func (d *Oracle) GetDownTimeDiff() string
- func (d *Oracle) GetMessage() string
- func (d *Oracle) GetNotificators() []tob.Notificator
- func (d *Oracle) IsEnabled() bool
- func (d *Oracle) IsRecover() bool
- func (d *Oracle) Name() string
- func (d *Oracle) Ping() []byte
- func (d *Oracle) SetCheckInterval(interval int)
- func (d *Oracle) SetConfig(configs config.Config)
- func (d *Oracle) SetLastDownTimeNow()
- func (d *Oracle) SetMessage(message string)
- func (d *Oracle) SetNotificatorConfig(configs config.Config)
- func (d *Oracle) SetRecover(recovered bool)
- func (d *Oracle) SetURL(url string)
- func (d *Oracle) Stop() chan bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Oracle ¶
type Oracle struct {
// contains filtered or unexported fields
}
Oracle service
func (*Oracle) GetCheckInterval ¶
GetCheckInterval will return check interval to service
func (*Oracle) GetDownTimeDiff ¶
GetDownTimeDiff will return down time service difference in minutes
func (*Oracle) GetMessage ¶
GetMessage will return additional message
func (*Oracle) GetNotificators ¶
func (d *Oracle) GetNotificators() []tob.Notificator
GetNotificators will return notificators
func (*Oracle) SetCheckInterval ¶
SetCheckInterval will set check interval to service
func (*Oracle) SetLastDownTimeNow ¶
func (d *Oracle) SetLastDownTimeNow()
LastDownTime will set last down time of service to current time
func (*Oracle) SetMessage ¶
SetMessage will set additional message
func (*Oracle) SetNotificatorConfig ¶
SetNotificatorConfig will set config
func (*Oracle) SetRecover ¶
SetRecover will set recovered status
Click to show internal directories.
Click to hide internal directories.