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