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