types

package
v0.0.0-...-e7e2df9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const TranCodeTestProcessMessageBus string = "IAC_TRANCODE_TEST_PROCESS"
View Source
const TranCodeTestResultMessageBus string = "IAC_TRANCODE_TEST_RESULT"

Variables

View Source
var DateTimeFormat string = "2006-01-02 15:04:05"

Functions

This section is empty.

Types

type DataType

type DataType int
const (
	String DataType = iota
	Integer
	Float
	Bool
	DateTime
	Object
)

type FuncGroup

type FuncGroup struct {
	ID                string                 "json:'id'"
	Name              string                 "json:'name'"
	Functions         []Function             "json:'functions'"
	Executionsequence string                 "json:'sequence'"
	Session           map[string]interface{} "json:'session'"
	RouterDef         RouterDef              "json:'routerdef'"

	Description string "json:'description'"

	Type string "json:'type'"
	// contains filtered or unexported fields
}

type Function

type Function struct {
	ID           string                 "json:'id'"
	Name         string                 "json:'name'"
	Version      string                 "json:'version'"
	Status       Status                 "json:'status'"
	Functype     FunctionType           "json:'functype'"
	Inputs       []Input                "json:'inputs'"
	Outputs      []Output               "json:'outputs'"
	Content      string                 "json:'content'"
	Script       string                 "json:'script'"
	Mapdata      map[string]interface{} "json:'mapdata'"
	FunctionName string                 "json:'functionname'"
	Description  string                 "json:'description'"
	Type         string                 "json:'type'"
	// contains filtered or unexported fields
}

type FunctionType

type FunctionType int
const (
	InputMap FunctionType = iota
	GoExpr
	Javascript
	Query
	StoreProcedure
	SubTranCode
	TableInsert
	TableUpdate
	TableDelete
	CollectionInsert
	CollectionUpdate
	CollectionDelete
	ThrowError
	SendMessage
	SendEmail
	ExplodeWorkFlow
	StartWorkFlowTask
	CompleteWorkFlowTask
	SendMessagebyKafka
	SendMessagebyMQTT
	SendMessagebyAQMP
	WebServiceCall
)

type Input

type Input struct {
	ID           string      "json:'id'"
	Name         string      "json:'name'"
	Source       InputSource "json:'source'"   // 0: constant, 1: function, 2: session
	Datatype     DataType    "json:'datatype'" // 0: string, 1: int, 2: float, 3: bool, 4: datetime	5: object (json)
	Inivalue     string      "json:'initialvalue'"
	Defaultvalue string      "json:'defaultvalue'"
	Value        string      "json:'value'"
	List         bool        "json:'list'"
	Repeat       bool        "json:'repeat'"
	Aliasname    string      "json:'aliasname'"
	Description  string      "json:'description'"
}

type InputSource

type InputSource int
const (
	Constant InputSource = iota
	Prefunction
	Fromsyssession
	Fromusersession
	Fromexternal
)

type Output

type Output struct {
	ID           string       "json:'id'"
	Name         string       "json:'name'"
	Outputdest   []OutputDest "json:'outputdest'" // 0:none, 1:session, 2:engine
	Datatype     DataType     "json:'datatype'"   // 0: string, 1: int, 2: float, 3: bool, 4: datetime	5: object (json)
	Inivalue     string       "json:'initialvalue'"
	Defaultvalue string       "json:'defaultvalue'"
	Value        string       "json:'value'"
	List         bool         "json:'list'"
	Aliasname    []string     "json:'aliasname'"
	Description  string       "json:'description'"
}

type OutputDest

type OutputDest int
const (
	None OutputDest = iota
	Tosession
	Toexternal
)

type RouterDef

type RouterDef struct {
	Variable         string   "json:'variable'"
	Vartype          string   "json:'vartype'"
	Values           []string "json:'values'"
	Nextfuncgroups   []string "json:'nextfuncgroups'"
	Defaultfuncgroup string   "json:'defaultfuncgroup'"
}

type Status

type Status int
const (
	Design Status = iota
	Test
	Prototype
	Production
)

type SystemData

type SystemData struct {
	CreatedBy string "json:'createdby'"
	CreatedOn string "json:'createdon'"
	UpdatedBy string "json:'updatedby'"
	UpdatedOn string "json:'updatedon'"
}

type TestData

type TestData struct {
	Name      string   "json:'name'"
	Inputs    []Input  "json:'inputs'"
	Outputs   []Output "json:'outputs'"
	WantErr   bool     "json:'wanterr'"
	WantedErr string   "json:'wantederr'"
}

type TranCode

type TranCode struct {
	ID             string                 "json:'_id'"
	UUID           string                 "json:'uuid'"
	Name           string                 "json:'trancodename'"
	Version        string                 "json:'version'"
	IsDefault      bool                   "json:'isdefault'"
	Status         Status                 "json:'status'"
	Inputs         []Input                "json:'inputs'"
	Outputs        []Output               "json:'outputs'"
	Functiongroups []FuncGroup            "json:'functiongroups'"
	Workflow       map[string]interface{} "json:'workflow'"
	Firstfuncgroup string                 "json:'firstfuncgroup'"
	SystemData     SystemData             "json:'system'"
	Description    string                 "json:'description'"
	TestDatas      []TestData             "json:'testdatas'"
}

Jump to

Keyboard shortcuts

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