Documentation ¶
Index ¶
- Constants
- func SanitizeForLogging(errMsg string) string
- type ChatMsg
- type ConfigContext
- type DeliverStatCtx
- type KernelCmd
- type TTDINode
- func (dfs *TTDINode) EfficientLog(statMap map[string]interface{}, logF func(string, error))
- func (dfs *TTDINode) FinishStatistic(id string, indexPath string, idName string, logger *log.Logger, ...) map[string]interface{}
- func (dfs *TTDINode) FinishStatisticLog()
- func (dfs *TTDINode) GetDeliverStatCtx(decodedMap ...map[string]interface{}) (*DeliverStatCtx, map[string]interface{}, error)
- func (dfs *TTDINode) Log()
- func (dfs *TTDINode) MapStatistic(data map[string]interface{}, logger *log.Logger)
- func (dfs *TTDINode) StatisticToMap() map[string]interface{}
- func (dfs *TTDINode) UpdateDataFlowStatistic(flowG string, flowN string, stateN string, stateC string, mode int, ...)
- func (dfs *TTDINode) UpdateDataFlowStatisticWithTime(flowG string, flowN string, stateN string, stateC string, mode int, ...)
Constants ¶
View Source
const ( PLUGIN_EVENT_START = iota PLUGIN_EVENT_STOP PLUGIN_EVENT_STATUS )
View Source
const ( TRCSHHIVEK_CERT = "Common/servicecert.crt.mf.tmpl" TRCSHHIVEK_KEY = "Common/servicekey.key.mf.tmpl" )
View Source
const CHAT_BROADCAST_CHANNEL = "ChatBroadcastChannel"
View Source
const CHAT_CHANNEL = "ChatChannel"
View Source
const CMD_CHANNEL = "CommandChannel"
View Source
const DATA_FLOW_STAT_CHANNEL = "DataFlowStatisticsChannel"
View Source
const ERROR_CHANNEL = "ErrorChannel"
View Source
const PLUGIN_CHANNEL_EVENT_IN = "PluginChannelEventIn"
View Source
const PLUGIN_CHANNEL_EVENT_OUT = "PluginChannelEventOut"
View Source
const PLUGIN_EVENT_CHANNELS_MAP_KEY = "PluginEventChannelsMap"
View Source
const RFC_ISO_8601 = "2006-01-02 15:04:05 -0700 MST"
Variables ¶
This section is empty.
Functions ¶
func SanitizeForLogging ¶ added in v2.1.2
Types ¶
type ConfigContext ¶ added in v2.0.4
type ConfigContext struct { Config *map[string]interface{} Env string // Env being processed Region string // Region processed Start func(string) ChatSenderChan *chan *ChatMsg ChatReceiverChan *chan *ChatMsg ChatBroadcastChan *chan *ChatMsg CmdSenderChan *chan KernelCmd CmdReceiverChan *chan KernelCmd ErrorChan *chan error // Channel for sending errors DfsChan *chan *TTDINode // Channel for sending data flow statistics ArgosId string // Identifier for data flow statistics ConfigCerts *map[string][]byte Log *log.Logger }
type DeliverStatCtx ¶
type DeliverStatCtx struct { FlowGroup string FlowName string StateCode string StateName string LogStat bool LogFunc *func(string, error) //TODO: Make not interface TimeStart interface{} //either string or time.Time LastTestedDate interface{} //either string or time.Time TimeSplit interface{} //either float64 or time.Duration Mode interface{} //either float64 or int }
func (*DeliverStatCtx) GetElapsedTimeStr ¶
func (dsc *DeliverStatCtx) GetElapsedTimeStr() string
func (*DeliverStatCtx) GetLastTestedDateStr ¶
func (dsc *DeliverStatCtx) GetLastTestedDateStr() string
func (*DeliverStatCtx) GetModeInt ¶
func (dsc *DeliverStatCtx) GetModeInt() int
type TTDINode ¶
type TTDINode struct { *mashupsdk.MashupDetailedElement ChildNodes []*TTDINode }
func (*TTDINode) EfficientLog ¶
Doesn't deserialize statistic data for updatedataflowstatistic
func (*TTDINode) FinishStatistic ¶
func (*TTDINode) FinishStatisticLog ¶
func (dfs *TTDINode) FinishStatisticLog()
Set logFunc and logStat = false to use this otherwise it logs as states change with logStat = true
func (*TTDINode) GetDeliverStatCtx ¶
func (dfs *TTDINode) GetDeliverStatCtx(decodedMap ...map[string]interface{}) (*DeliverStatCtx, map[string]interface{}, error)
func (*TTDINode) MapStatistic ¶
func (*TTDINode) StatisticToMap ¶
Creating map representation for easier use by persistence functions
func (*TTDINode) UpdateDataFlowStatistic ¶
Click to show internal directories.
Click to hide internal directories.