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