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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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