parser

package
v0.0.0-...-a1f36d2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package parser contains utilities for parsing and encoding MDS/SSM messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMessageWithParams

func ParseMessageWithParams(log log.T, payload string) (parsedMessage messageContracts.SendCommandPayload, err error)

ParseMessageWithParams parses an MDS message and replaces the parameters where needed.

func PrepareReplyPayloadToUpdateDocumentStatus

func PrepareReplyPayloadToUpdateDocumentStatus(agentInfo contracts.AgentInfo, documentStatus contracts.ResultStatus, documentTraceOutput string) (payload messageContracts.SendReplyPayload)

PrepareReplyPayloadToUpdateDocumentStatus creates the payload object for SendReply based on document status change.

func ReplacePluginParameters

func ReplacePluginParameters(
	payload *messageContracts.SendCommandPayload,
	params map[string]interface{},
	logger log.T) error

ReplacePluginParameters replaces parameters with their values, within the plugin Properties.

Types

This section is empty.

Jump to

Keyboard shortcuts

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