Categorygithub.com/graphql-editor/azure-functions-golang-worker

# README

About

An attempt to implement golang worker for Azure functions host runner.

Example

package main

import (
	"context"
	"fmt"

	"github.com/graphql-editor/azure-functions-golang-worker/api"
)

// HTTPTrigger is an example httpTrigger
type HTTPTrigger struct {
	Request  *api.Request `azfunc:"httpTrigger"`
	Response api.Response `azfunc:"res"`
}

// Run implements function behaviour
func (h *HTTPTrigger) Run(ctx context.Context, logger api.Logger) {
	logger.Info(fmt.Sprintf("called with %v", h.Request))
	h.Response.Body = []byte("ok")
}

// Function exports function entry point
var Function HTTPTrigger

Getting started

Check out example

Disclaimer

This is not an official Azure Project and as such is not supported by Microsoft.

# Packages

Package api available to user functions.
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
Package pluginloader implements loader using go plugin functionality.
No description provided by the author
No description provided by the author
No description provided by the author