inspect

package
v0.0.0-...-0821f6f Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package inspect allows inspection of Lambda function invocations.

Importing and using this function is not recommended; it implies a close coupling of net/rpc methods and the Lambda environment and imposes overhead on the function handler.

Example
package main // main

import (
	"github.com/aws/aws-lambda-go/lambda/messages"
	"github.com/cloudinterfaces/lrpc/inspect"
	"github.com/cloudinterfaces/lrpc/server"
)

type BadIdea struct{}

func (BadIdea) Inspect(args *struct{}, reply *messages.InvokeRequest) error {
	reply = inspect.InvokeRequest(args)
	return nil
}

func main() { // main()
	server.Register(new(BadIdea))
	server.Serve()
}

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvokeRequest

func InvokeRequest(args interface{}) *messages.InvokeRequest

InvokeRequest returns the InvokeRequest message for args, which much be the arguments to a net/rpc method invocation; therefore this should only be called by a net/rpc method running in the Lambda environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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