iftime

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNode

func NewNode(flowOpCtx *model.FlowOperationalContext, meta model.MetaNode, ctx *model.Context) model.Node

Types

type Node

type Node struct {
	base.BaseNode
	// contains filtered or unexported fields
}

IF node

func (*Node) LoadNodeConfig

func (node *Node) LoadNodeConfig() error

func (*Node) OnInput

func (node *Node) OnInput(msg *model.Message) ([]model.NodeID, error)

func (*Node) WaitForEvent

func (node *Node) WaitForEvent(responseChannel chan model.ReactorEvent)

type TExpression

type TExpression struct {
	Weekday string // 0 - Sunday , 1 - Monday
	From    string // time in format 12:00 or "sunrise" or "sunset"
	To      string // time in format 12:00 or "sunrise" or "sunset"
	Action  string // a - allow or d - deny
}

type TExpressions

type TExpressions struct {
	Expression      []TExpression
	TrueTransition  model.NodeID
	FalseTransition model.NodeID
}

Jump to

Keyboard shortcuts

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