funcgroup

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FGroup

type FGroup struct {
	FGobj           types.FuncGroup
	DBTx            *sql.Tx
	Ctx             context.Context
	CtxCancel       context.CancelFunc
	Nextfuncgroup   string
	SystemSession   map[string]interface{} // {sessionanme: value}
	UserSession     map[string]interface{} // {sessionanme: value}
	Externalinputs  map[string]interface{} // {sessionanme: value}
	Externaloutputs map[string]interface{} // {sessionanme: value}

	DocDBCon      *documents.DocDB
	SignalRClient signalr.Client
	ErrorMessage  string
	TestwithSc    bool
	TestResults   map[string]interface{}
	// contains filtered or unexported fields
}

func NewFGroup

func NewFGroup(DocDBCon *documents.DocDB, SignalRClient signalr.Client, dbTx *sql.Tx, fgobj types.FuncGroup, nextfuncgroup string, systemSession, userSession, externalinputs, externaloutputs map[string]interface{}, ctx context.Context, ctxcancel context.CancelFunc) *FGroup

func (*FGroup) CheckRouter

func (c *FGroup) CheckRouter(RouterDef types.RouterDef) string

CheckRouter checks the router definition and determines the next function group to execute based on the provided RouterDef. It returns the name of the next function group.

func (*FGroup) Execute

func (c *FGroup) Execute()

Execute executes the function group by iterating over its functions and executing each one. It also handles error recovery and logs performance metrics. It takes no parameters and returns no values.

Jump to

Keyboard shortcuts

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