constant

package
v0.0.0-...-cba6ad5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionType_Kafka  = 1
	ActionType_Bucket = 2
)

ActionType

View Source
const (
	Action1Type_Republish  = "republish"
	Action1Type_Kafka      = "kafka"
	Action1Type_Bucket     = "bucket"
	Action1Type_Chronus    = "clickhouse"
	Action1Type_MYSQL      = "mysql"
	Action1Type_POSTGRESQL = "postgresql"
	Action1Type_REDIS      = "redis"
	Action1Type_INFLUXDB   = "influxdb"
)

ActionType

View Source
const (
	TopicTypeProperty = "property"
	TopicTypeEvent    = "event"
	TopicTypeAll      = "+"
	TopicTypeRaw      = "raw"
)
View Source
const (
	EventName           = "name-event-"
	EventDefaultName    = EventName + "default"
	EventNameRuleStatus = EventName + "rule-status"
	EventNameRuleActive = EventName + "rule-active"
)

---------event name-----------------------

View Source
const (
	//action status
	ActionStatusBan       = "ban"
	ActionStatusStop      = "stop"
	ActionStatusStating   = "stating"
	ActionStatusStopping  = "stopping"
	ActionStatusRunning   = "running"
	ActionStatusError     = "error"
	ActionStatusException = "exception"

	//rule在metadata创建, 等待异步消息
	RuleStart = "RuleStart"
	//rule启动失败,rule未启动
	RuleStartError       = "RuleStartError"
	RuleActionStart      = "RuleActionStart"
	RuleActionStartError = "RuleActionStartError"
	RuleStarted          = "RuleStarted"
	RuleStoped           = "RuleStoped"
	RuleActionError      = "RuleActionError"
	RuleActionFail       = "RuleActionFail"
	RuleActionStarted    = "RuleActionStarted"
)

rule status

View Source
const (
	RuleStatusBan = iota + 1
	RuleStatusStop
	RuleStatusRunning
	RuleStatusException
	RuleStatusError
	RuleStatusStating
	RuleStatusStopping
)
View Source
const (
	CommandStatusRuleStart = RuleStatusStating
	CommandStatusRuleStop  = RuleStatusStop
)

由用户发出的指令状态

View Source
const ErrorPrefix = "RuleErr-"
View Source
const MappingInfoKey = "mapping"

action的configuration里的字段

View Source
const TagsInfoKey = "tags"

Variables

Functions

This section is empty.

Types

type EventType

type EventType = uint8
const (
	EVENT_RULE_CREATE EventType = iota + 1
	EVENT_RULE_DELETE
	EVENT_RULE_UPDATE
	EVENT_ACTION_CREATE
	EVENT_ACTION_UPDATE
	EVENT_ACTION_DELETE

	EVENT_UNKOWN
)

Jump to

Keyboard shortcuts

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