github.com/graphql-editor/azure-functions-golang-worker@v0.1.0/README.md (about) 1 # About 2 3 An attempt to implement golang worker for Azure functions host runner. 4 5 # Example 6 7 ```golang 8 package main 9 10 import ( 11 "context" 12 "fmt" 13 14 "github.com/graphql-editor/azure-functions-golang-worker/api" 15 ) 16 17 // HTTPTrigger is an example httpTrigger 18 type HTTPTrigger struct { 19 Request *api.Request `azfunc:"httpTrigger"` 20 Response api.Response `azfunc:"res"` 21 } 22 23 // Run implements function behaviour 24 func (h *HTTPTrigger) Run(ctx context.Context, logger api.Logger) { 25 logger.Info(fmt.Sprintf("called with %v", h.Request)) 26 h.Response.Body = []byte("ok") 27 } 28 29 // Function exports function entry point 30 var Function HTTPTrigger 31 ``` 32 33 # Getting started 34 35 Check out example 36 37 # Disclaimer 38 39 This is not an official Azure Project and as such is not supported by Microsoft.