OpenFunction / functions-framework-go

Go functions framework for OpenFunction
18 stars 20 forks source link

Encapsulate the Context with Interface #32

Closed tpiperatgod closed 2 years ago

tpiperatgod commented 2 years ago
  1. in this PR I split the Context(FunctionContext for now) into two types in the form of Interface: FunctionContext (for function framework and plugins developers) and Context (for user function)
  2. remove the error return from the signature of the HTTP function
  3. add Metadata field to FunctionContext.Event to hold tracing related information
  4. improved context_test.go, framework_test.go

Signed-off-by: laminar fangtian@kubesphere.io

benjaminhuo commented 2 years ago

So @arugal can start working on the async function skywalking integration after this PR?