jmcfarlane / go-apex

Golang runtime for Apex/Lambda.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apex Golang

Golang runtime support for Apex/Lambda – providing handlers for Lambda sources, and runtime requirements such as interacting with the Node.js shim, and implementing environment variables.

Example

package main

import (
  "encoding/json"

  "github.com/apex/go-apex"
)

type message struct {
  Value string `json:"value"`
}

func main() {
  apex.HandleFunc(func(event json.RawMessage, ctx *apex.Context) (interface{}, error) {
    return &message{"Hello World"}, nil
  })
}

Features

Currently supports:

  • Node.js shim
  • Environment variable population
  • Arbitrary JSON
  • CloudWatch Logs
  • Cognito
  • Kinesis
  • Dynamo
  • S3
  • SNS
  • SES

Contributors

Badges

Build Status GoDoc


tjholowaychuk.com  ·  GitHub @tj  ·  Twitter @tjholowaychuk

About

Golang runtime for Apex/Lambda.

License:MIT License


Languages

Language:Go 100.0%