oracle

package
v0.0.0-...-2dec208 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 NewOracle

func NewOracle(verbose bool, logger *log.Logger) *Oracle

NewOracle Oracle's constructor

func (*Oracle) Close

func (d *Oracle) Close() error

Close will close the service resources if needed

func (*Oracle) Connect

func (d *Oracle) Connect() error

Connect to service if needed

func (*Oracle) Enable

func (d *Oracle) Enable(enabled bool)

Enable will set enabled status to service

func (*Oracle) GetCheckInterval

func (d *Oracle) GetCheckInterval() int

GetCheckInterval will return check interval to service

func (*Oracle) GetDownTimeDiff

func (d *Oracle) GetDownTimeDiff() string

GetDownTimeDiff will return down time service difference in minutes

func (*Oracle) GetMessage

func (d *Oracle) GetMessage() string

GetMessage will return additional message

func (*Oracle) GetNotificators

func (d *Oracle) GetNotificators() []tob.Notificator

GetNotificators will return notificators

func (*Oracle) IsEnabled

func (d *Oracle) IsEnabled() bool

IsEnabled will return enable status

func (*Oracle) IsRecover

func (d *Oracle) IsRecover() bool

IsRecover will return recovered status

func (*Oracle) Name

func (d *Oracle) Name() string

Name the name of the service

func (*Oracle) Ping

func (d *Oracle) Ping() []byte

Ping will try to ping the service

func (*Oracle) SetCheckInterval

func (d *Oracle) SetCheckInterval(interval int)

SetCheckInterval will set check interval to service

func (*Oracle) SetConfig

func (d *Oracle) SetConfig(configs config.Config)

SetConfig will set config

func (*Oracle) SetLastDownTimeNow

func (d *Oracle) SetLastDownTimeNow()

LastDownTime will set last down time of service to current time

func (*Oracle) SetMessage

func (d *Oracle) SetMessage(message string)

SetMessage will set additional message

func (*Oracle) SetNotificatorConfig

func (d *Oracle) SetNotificatorConfig(configs config.Config)

SetNotificatorConfig will set config

func (*Oracle) SetRecover

func (d *Oracle) SetRecover(recovered bool)

SetRecover will set recovered status

func (*Oracle) SetURL

func (d *Oracle) SetURL(url string)

SetURL will set the service URL

func (*Oracle) Stop

func (d *Oracle) Stop() chan bool

Stop will receive stop channel

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL