rule

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmInfo

type AlarmInfo = ud.AlarmInfo

type AlarmInfoIndexReq

type AlarmInfoIndexReq = ud.AlarmInfoIndexReq

type AlarmInfoIndexResp

type AlarmInfoIndexResp = ud.AlarmInfoIndexResp

type AlarmNotify

type AlarmNotify = ud.AlarmNotify

type AlarmRecord

type AlarmRecord = ud.AlarmRecord

type AlarmRecordCreateReq

type AlarmRecordCreateReq = ud.AlarmRecordCreateReq

type AlarmRecordDealReq

type AlarmRecordDealReq = ud.AlarmRecordDealReq

type AlarmRecordIndexReq

type AlarmRecordIndexReq = ud.AlarmRecordIndexReq

type AlarmRecordIndexResp

type AlarmRecordIndexResp = ud.AlarmRecordIndexResp

type AlarmSceneDeleteReq

type AlarmSceneDeleteReq = ud.AlarmSceneDeleteReq

type AlarmSceneIndexReq

type AlarmSceneIndexReq = ud.AlarmSceneIndexReq

type AlarmSceneIndexResp

type AlarmSceneIndexResp = ud.AlarmSceneIndexResp

type AlarmSceneMultiSaveReq

type AlarmSceneMultiSaveReq = ud.AlarmSceneMultiSaveReq

type DeviceCore

type DeviceCore = ud.DeviceCore

type Empty

type Empty = ud.Empty

type LogActionScene

type LogActionScene = ud.LogActionScene

type PageInfo

type PageInfo = ud.PageInfo

type PageInfo_OrderBy

type PageInfo_OrderBy = ud.PageInfo_OrderBy

type Rule

type Rule interface {
	// 场景
	SceneInfoCreate(ctx context.Context, in *SceneInfo, opts ...grpc.CallOption) (*WithID, error)
	SceneInfoUpdate(ctx context.Context, in *SceneInfo, opts ...grpc.CallOption) (*Empty, error)
	SceneInfoDelete(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*Empty, error)
	SceneInfoIndex(ctx context.Context, in *SceneInfoIndexReq, opts ...grpc.CallOption) (*SceneInfoIndexResp, error)
	SceneInfoRead(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*SceneInfo, error)
	SceneManuallyTrigger(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*Empty, error)
	SceneLogIndex(ctx context.Context, in *SceneLogIndexReq, opts ...grpc.CallOption) (*SceneLogIndexResp, error)
	AlarmInfoCreate(ctx context.Context, in *AlarmInfo, opts ...grpc.CallOption) (*WithID, error)
	AlarmInfoUpdate(ctx context.Context, in *AlarmInfo, opts ...grpc.CallOption) (*Empty, error)
	AlarmInfoDelete(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*Empty, error)
	AlarmInfoIndex(ctx context.Context, in *AlarmInfoIndexReq, opts ...grpc.CallOption) (*AlarmInfoIndexResp, error)
	AlarmInfoRead(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*AlarmInfo, error)
	// 告警关联场景联动
	AlarmSceneMultiCreate(ctx context.Context, in *AlarmSceneMultiSaveReq, opts ...grpc.CallOption) (*Empty, error)
	AlarmSceneDelete(ctx context.Context, in *AlarmSceneDeleteReq, opts ...grpc.CallOption) (*Empty, error)
	AlarmSceneIndex(ctx context.Context, in *AlarmSceneIndexReq, opts ...grpc.CallOption) (*AlarmSceneIndexResp, error)
	// 告警记录
	AlarmRecordIndex(ctx context.Context, in *AlarmRecordIndexReq, opts ...grpc.CallOption) (*AlarmRecordIndexResp, error)
	AlarmRecordCreate(ctx context.Context, in *AlarmRecordCreateReq, opts ...grpc.CallOption) (*Empty, error)
	AlarmRecordDeal(ctx context.Context, in *AlarmRecordDealReq, opts ...grpc.CallOption) (*Empty, error)
}

func NewDirectRule

func NewDirectRule(svcCtx *svc.ServiceContext, svr ud.RuleServer) Rule

func NewRule

func NewRule(cli zrpc.Client) Rule

type SceneFlowInfo

type SceneFlowInfo = ud.SceneFlowInfo

type SceneInfo

type SceneInfo = ud.SceneInfo

type SceneInfoIndexReq

type SceneInfoIndexReq = ud.SceneInfoIndexReq

type SceneInfoIndexResp

type SceneInfoIndexResp = ud.SceneInfoIndexResp

type SceneLog

type SceneLog = ud.SceneLog

type SceneLogAction

type SceneLogAction = ud.SceneLogAction

type SceneLogActionAlarm

type SceneLogActionAlarm = ud.SceneLogActionAlarm

type SceneLogActionDevice

type SceneLogActionDevice = ud.SceneLogActionDevice

type SceneLogActionDeviceValue

type SceneLogActionDeviceValue = ud.SceneLogActionDeviceValue

type SceneLogIndexReq

type SceneLogIndexReq = ud.SceneLogIndexReq

type SceneLogIndexResp

type SceneLogIndexResp = ud.SceneLogIndexResp

type SceneLogTrigger

type SceneLogTrigger = ud.SceneLogTrigger

type SceneLogTriggerDevice

type SceneLogTriggerDevice = ud.SceneLogTriggerDevice

type TimeRange

type TimeRange = ud.TimeRange

type WithID

type WithID = ud.WithID

Jump to

Keyboard shortcuts

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