{"modulePath":"github.com/cloudinterfaces/lrpc","version":"v0.0.0-20180215163902-0821f6f6fbc6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package lrpc\n\nPackage lrpc contains clients and servers for net/rpc on AWS Lambda.\n\nThe lrpc/server package is intended to replace net/rpc for types that implement rpc.Server method sets. Main packages that call lrpc/server.Serve may be used as Lambda handlers. The [https://github.com/cloudinterfaces/lago](https://github.com/cloudinterfaces/lago) tool may be used to deploy such main packages.\n\nThe lrpc/client package contains functions to call net/rpc services deployed to Lambda functions with the lrpc/server package.\n\nThe lrpc/demo package contains a net/rpc service and client wrapper, as well as main packages that exercise both.\n\n## Functions\n\n```go\nfunc RequestID(err error) string\n```\nRequestID returns the request ID associated with err or \\*unknown\\* if it cannot be determined.\n\n## Types\n\n```go\ntype ID string\n```\nID is a Lambda Request ID.\n\n```go\nfunc (i ID) RequestID() string\n```\nRequestID returns the request ID.\n\n```go\ntype LambdaError struct {\n\tErrorMessage string\n\tErrorType    string\n}\n```\nLambdaError is a structured error returned by a Lambda invocation.\n\n```go\nfunc (l LambdaError) Error() string\n```\nError implements Error.\n\n```go\ntype MethodError struct {\n\tErr string\n\tID\n}\n```\nMethodError is an error returned by an rpc method invocation.\n\n```go\nfunc (m MethodError) Error() string\n```\nError implements error.\n\n```go\ntype ServerError struct {\n\tErr string\n\tID\n}\n```\nServerError is an error scoped to the server package.\n\n```go\nfunc (e ServerError) Error() string\n```\nError implements error.\n\n","path":"github.com/cloudinterfaces/lrpc","name":"lrpc","synopsis":"Package lrpc contains clients and servers for net/rpc on AWS Lambda.","isRedistributable":true}
