package
0.0.0-20231115143232-9e238520abbe
Repository: https://github.com/angrypie/tie.git
Documentation: pkg.go.dev
# Functions
AddGetEnvHelper creates heper function to get environment variable.
AddIfErrorGuard adds to scope error check.
AssignResultsToErr assign response error to err statement.
ClientMethod creates client method for given function.
ClientReceiverType creates constructor and client-side receiver type.Type contains only fields from constructor arguments.
CreateArgsList creates list from parser.Field array.Transform function is used to modify each element list.Optional param 1 is used to specify prefix for each element.Optional param 2 is used to specify allowed argument types (format: type1,type2,).
CreateArgsListFunc creates list from Fields (see CreateArgListFunc).
No description provided by the author
CreateReqRespTypes creates request response types for each method.
CreateSignatureFromArgs creates signature from Fields (see CreateArgListFunc).
CreateTypeAliases creates aliases to types that found in functions signatures.
No description provided by the author
ForEachFunction executes callback for each function in packageexpecept special Stop function that shoudn't be externaly exposed.
No description provided by the author
TODO move to PackageInfo.
No description provided by the author
No description provided by the author
GetRpcHandlerArgsList creates args list for rpc handler wrapper.
GracefulShutdown calls Stop methods on receivers before program termination.
No description provided by the author
HasTopLevelReceiver returns false if function has other receiver as argumenet.
No description provided by the author
TODO save receivers during PackageInfo initializationMakeForEachReceiver executes callback for each receiver.
HandlerWrapper creates method wrapper to inject dependencies (top level receiver).
No description provided by the author
MakeOriginalCall creates dependencies and make original method call (response object must be created).
MakeReceiversForHandlers cerates instances for each top level receiver.
MakeStartRPCServer creates server initialization method.
MakeStartServerInit creates port and address initialization (from env or random).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TemplateServer creates template module for RPC client.
TemplateRpcServer creates template module for RPC server.
No description provided by the author
TODO replace to to Struct typeTypeDeclFormFields creates type declaration from []types.Field.
# Constants
GetEnvHelper global identifier for getEnv helper function.
# Structs
ClientMethodIds contains identifiers that available in client method template.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
ClientMethodBody is used to insert specific code to client method template.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StartRPCServerCb is used to insert specific code to server init template.