functions-framework-go
functions-framework-go copied to clipboard
feat: Allow registering multiple functions with one server for local testing
There are two ways to test multiple functions within one server.
- Declaratively register multiple functions (e.g. calling
functions.HTTP()) and rungo run cmd/main.gowithout setting the env varFUNCTION_TARGET. In this case, all registered functions will be served at "/{func_name}". - Manually register the handers (e.g. calling
funcframework.RegisterHTTPFunctionContext()) and rungo run cmd/main.gowithout setting the env varFUNCTION_TARGET. In this case, the registered handlers will be served at the user defined path.
Closes #109