Documentation ¶
Index ¶
- Variables
- func EventToStdinInput(event *Event) (string, error)
- func RegisterLambdaServer(s *grpc.Server, srv LambdaServer)
- func RunLocalBinary(stdinInput string, ctx context.Context, codeUri, functionHandler string) (string, string, string, error)
- type Event
- type LambdaClient
- type LambdaRestApiResponse
- type LambdaServer
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetData() string
- func (x *Response) GetEventId() string
- func (x *Response) GetMessage() string
- func (x *Response) GetStatusCode() int32
- func (x *Response) GetStderr() string
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type UnimplementedLambdaServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_grpc_api_proto protoreflect.FileDescriptor
Functions ¶
func EventToStdinInput ¶
func RegisterLambdaServer ¶
func RegisterLambdaServer(s *grpc.Server, srv LambdaServer)
Types ¶
type Event ¶
type Event struct { EventId string `protobuf:"bytes,1,opt,name=eventId,proto3" json:"eventId,omitempty"` EventData string `protobuf:"bytes,2,opt,name=eventData,proto3" json:"eventData,omitempty"` Context string `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetContext ¶
func (*Event) GetEventData ¶
func (*Event) GetEventId ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type LambdaClient ¶
type LambdaClient interface {
Invoke(ctx context.Context, in *Event, opts ...grpc.CallOption) (*Response, error)
}
LambdaClient is the client API for Lambda service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLambdaClient ¶
func NewLambdaClient(cc grpc.ClientConnInterface) LambdaClient
type LambdaRestApiResponse ¶
type LambdaRestApiResponse struct { Message string `json:"message"` ErrorMessage string `json:"error-message"` FunctionName string `json:"function-name"` ModifiedResource string `json:"modified-resource"` DebugMessage string `json:"debug-message"` }
func NewErrorRestResponse ¶
func NewErrorRestResponse(errorMessage, functionName, debugMessage string) *LambdaRestApiResponse
func NewOkRestResponse ¶
func NewOkRestResponse(message, functionName, modifiedArn, debugMsg string) *LambdaRestApiResponse
type LambdaServer ¶
LambdaServer is the server API for Lambda service.
type Response ¶
type Response struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Stderr string `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` StatusCode int32 `protobuf:"varint,3,opt,name=statusCode,proto3" json:"statusCode,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` EventId string `protobuf:"bytes,5,opt,name=eventId,proto3" json:"eventId,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetEventId ¶
func (*Response) GetMessage ¶
func (*Response) GetStatusCode ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedLambdaServer ¶
type UnimplementedLambdaServer struct { }
UnimplementedLambdaServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.