v3m0

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	String  ParameterType = "string"
	Double  ParameterType = "double"
	Boolean ParameterType = "boolean"

	Program    PatternType = "program"
	Constraint PatternType = "constraint"

	JS  ScriptLanguageType = "js"
	Lua ScriptLanguageType = "lua"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseInfo

type BaseInfo struct {
	ID           string      `xml:"id"`
	ShortName    string      `xml:"shortName"`
	Description  Description `xml:"description"`
	CreatedDate  int64       `xml:"createdDate"`
	ModifiedDate int64       `xml:"modifiedDate"`
}

type Description

type Description struct {
	Text string `xml:",cdata"`
}

type Group

type Group struct {
	BaseInfo
	Groups struct {
		Groups []Group `xml:"group"`
	} `xml:"groups"`
	Parameters struct {
		Parameters []string `xml:"parameter"`
	} `xml:"parameters"`
	Rules struct {
		Rules []string `xml:"rule"`
	} `xml:"rules"`
}

type KnowledgeBase

type KnowledgeBase struct {
	BaseInfo
	XMLName          xml.Name `xml:"knowledgeBase"`
	FormatXMLVersion string   `xml:"formatXmlVersion,attr"`
	Parameters       struct {
		Parameters []Parameter `xml:"parameter"`
	} `xml:"parameters"`
	Patterns struct {
		Patterns []Pattern `xml:"pattern"`
	} `xml:"patterns"`
	Rules struct {
		Rules []Rule `xml:"rule"`
	} `xml:"rules"`
	Groups struct {
		Groups []Group `xml:"group"`
	} `xml:"groups"`
}

type Parameter

type Parameter struct {
	BaseInfo
	Type         string `xml:"type"`
	DefaultValue string `xml:"defaultValue"`
}

type ParameterPattern

type ParameterPattern struct {
	ShortName string `xml:"shortName"`
	Type      string `xml:"type"`
}

type ParameterRule

type ParameterRule struct {
	ShortName   string `xml:"shortName"`
	ParameterID string `xml:"parameterID"`
}

type ParameterType

type ParameterType string

type Pattern

type Pattern struct {
	BaseInfo
	Type            string `xml:"type"`
	Language        string `xml:"language"`
	Script          Script `xml:"script"`
	InputParameters struct {
		InputParameters []ParameterPattern `xml:"parameter"`
	} `xml:"inputParameters"`
	OutputParameters struct {
		OutputParameters []ParameterPattern `xml:"parameter"`
	} `xml:"outputParameters"`
}

type PatternType

type PatternType string

type Rule

type Rule struct {
	BaseInfo
	PatternID       string `xml:"patternID"`
	InputParameters struct {
		InputParameters []ParameterRule `xml:"parameter"`
	} `xml:"inputParameters"`
	OutputParameters struct {
		OutputParameters []ParameterRule `xml:"parameter"`
	} `xml:"outputParameters"`
}

type Script

type Script struct {
	Text string `xml:",cdata"`
}

type ScriptLanguageType

type ScriptLanguageType string

Jump to

Keyboard shortcuts

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