funky

package module
v0.0.0-...-838a8ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2018 License: MIT Imports: 1 Imported by: 0

README

GoDoc Go Report Card Build Status

Funky

Funky lets you develop and build lambdas/functions for multiple cloud services, while allowing you to test and iterate quickly when developing locally.

Example

package main

import (
  "io"
  "net/http"
  
  "github.com/itsfunky/funky"
)

func main() {
  funky.Handle(http.HandlerFunc(func (w http.ResponseWriter, _ *http.Request) {
    io.WriteString(w, "Hello World")
  }))
}

Full Examples →

Roadmap

  • Command Line
    • Build Functions
    • Delete Functions
    • Deploy Functions
      • Smart Deploy (only changed functions)
    • Invoke Functions (remote)
    • Invoke Functions (local)
    • List Functions
    • View Logs (remote)
      • Live Tail
    • Metrics (remote)
    • Metrics (local)
    • Serve HTTP (local)
      • Basic Logging
      • Basic Serving
      • HTTP Event Serving
  • Local
    • Basic RPC Service
    • Extended Options
  • AWS Lambda
    • Basic Invocations
    • Extended Invocation Support
  • Google Cloud Functions
    • JS Shim GCF Just Announced at Gophercon that Golang support will come soon.
    • Foreground Function Support
    • Background Function Support

Documentation

Overview

Package funky lets you develop and build lambdas/functions for multiple cloud services, while allowing you to test and iterate quickly when developing locally.

Index

Constants

This section is empty.

Variables

View Source
var (
	// FunctionName is the function's name set at build time.
	FunctionName = ""
)

Functions

func Handle

func Handle(handler http.Handler)

Handle exposes your handler to your cloud function service.

Handle is implemented slightly differently for each cloud provider, but attempts to unify each implementation around an HTTP-based handler.

Types

type FunctionMetadata

type FunctionMetadata struct {
	FunctionName string `json:"function_name"`
}

FunctionMetadata represents the invoked functions metadata.

func Metadata

func Metadata() FunctionMetadata

Metadata provides the available function metadata.

Directories

Path Synopsis
cmd
example
lib
aws

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL