Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) Open ¶
func (d *Database) Open(dbConfig natsservice.MysqlConfig) error
type DatabaseConfig ¶
type HeartbeatSaver ¶
type HeartbeatSaver struct { natsservice.NatsService // contains filtered or unexported fields }
HeartbeatSaver listens to com.plugis.heartbeat.Sent events and saves events in a database
func NewHeartbeatSaver ¶ added in v0.1.15
func NewHeartbeatSaver(mysqlConfig natsservice.MysqlConfig) *HeartbeatSaver
func (*HeartbeatSaver) Logger ¶
func (svc *HeartbeatSaver) Logger() *logrus.Entry
type HeartbeatSender ¶
type HeartbeatSender struct { natsservice.NatsService Period int RandomPeriod int // contains filtered or unexported fields }
func NewHeartbeatSender ¶ added in v1.1.18
func NewHeartbeatSender(period int, randomPeriod int) *HeartbeatSender
func (*HeartbeatSender) Logger ¶
func (svc *HeartbeatSender) Logger() *logrus.Entry
func (*HeartbeatSender) Run ¶
func (svc *HeartbeatSender) Run(ctx context.Context, params ...interface{}) error
func (*HeartbeatSender) SendHeartbeatEvent ¶
func (svc *HeartbeatSender) SendHeartbeatEvent(ctx context.Context) error
type HeartbeatWebInterface ¶ added in v0.1.14
type HeartbeatWebInterface struct { natsservice.NatsService // contains filtered or unexported fields }
HeartbeatWebInterface exposes com.plugis.heartbeat.Sent events that are saved in the database
func NewHeartbeatWebInterface ¶ added in v0.1.15
func NewHeartbeatWebInterface(mysqlConfig natsservice.MysqlConfig) *HeartbeatWebInterface
Click to show internal directories.
Click to hide internal directories.