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.
Click to show internal directories.
Click to hide internal directories.