package
0.0.0-20241230084113-15e72af14fc1
Repository: https://github.com/ansys/allie-sharedtypes.git
Documentation: pkg.go.dev
# Functions
ListFunctionsAndSaveToInteralStates calls the ListFunctions gRPC and saves the functions to internal states This function is used to get the list of available functions from the external function server and save them to internal states
Returns: - error: an error message if the gRPC call fails.
RunFunction calls the RunFunction gRPC and returns the outputs This function is used to run an external function
Parameters: - functionName: the name of the function to run - inputs: the inputs to the function
Returns: - map[string]sharedtypes.FilledInputOutput: the outputs of the function - error: an error message if the gRPC call fails.
StreamFunction calls the StreamFunction gRPC and returns a channel to stream the outputs This function is used to stream the outputs of an external function
Parameters: - functionName: the name of the function to run - inputs: the inputs to the function
Returns: - *chan string: a channel to stream the output - error: an error message if the gRPC call fails.
# Variables
Global variable to store the available functions.