common

package
v0.0.0-...-ce1d5a6 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionsProperty      = "actions"
	NotifyEnableProperty = "notify"
	ConditionsProperty   = "conditions"

	ScheduleRuleType  = "schedule"
	ThresholdRuleType = "threshold"
)
View Source
const (
	ApiRuleRoute            = contractsCommon.ApiBase + "/" + Rule                                          // POST
	ApiAllRuleRoute         = ApiRuleRoute + "/" + contractsCommon.All                                      // GET
	ApiRuleByNameRoute      = ApiRuleRoute + "/" + contractsCommon.Name + "/{" + contractsCommon.Name + "}" // GET, PUT
	ApiRuleTriggerByIdRoute = ApiRuleRoute + "/" + contractsCommon.Id + "/{" + contractsCommon.Id + "}"     // POST
)

Constants related to defined routes in the v2 service APIs

View Source
const (
	ManualScenarioProfile = "ManualScenario"
	AutoScenarioProfile   = "AutoScenario"

	DeviceServiceName = "scenario"
)

Constants related to defined profiles and device service

View Source
const (
	AndLogic = "and"
	OrLogic  = "or"
)

Constants related to defined logic type

View Source
const (
	CharacterGenName = "_"
	DefaultLimit     = 1000
)
View Source
const (
	Rule = "rule"
)

Constants related to defined url path names and parameters in the v2 service APIs

Variables

This section is empty.

Functions

func Validate

func Validate(a interface{}) error

Validate function will use the validator package to validate the struct annotation

Types

This section is empty.

Jump to

Keyboard shortcuts

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