functions-framework-go icon indicating copy to clipboard operation
functions-framework-go copied to clipboard

feat: Allow registering multiple functions with one server for local testing

Open jihuin opened this issue 3 years ago • 0 comments

There are two ways to test multiple functions within one server.

  1. Declaratively register multiple functions (e.g. calling functions.HTTP()) and run go run cmd/main.go without setting the env var FUNCTION_TARGET. In this case, all registered functions will be served at "/{func_name}".
  2. Manually register the handers (e.g. calling funcframework.RegisterHTTPFunctionContext()) and run go run cmd/main.go without setting the env var FUNCTION_TARGET. In this case, the registered handlers will be served at the user defined path.

Closes #109

jihuin avatar Aug 12 '22 23:08 jihuin