idlealarm

package
v0.0.0-...-d841f61 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package idlealarm implements alarm modification on idle alarm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Process(ctx context.Context) ([]types.Event, error)
}

Service interface is used to implement alarms modification by idle rules.

func NewService

func NewService(
	ruleAdapter idlerule.RuleAdapter,
	alarmAdapter libalarm.Adapter,
	entityAdapter libentity.Adapter,
	store redis.Store,
	pbhService libpbehavior.Service,
	encoder encoding.Encoder,
	logger zerolog.Logger,
) Service

NewService creates new service.

Jump to

Keyboard shortcuts

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