{"modulePath":"github.com/fillmore-labs/microbatch-lambda/lambda","version":"v0.0.0-20240313080558-359ec18c79cd","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package function\n\n## Functions\n\n```go\nfunc Handler(\n\tctx context.Context,\n\trequest *events.APIGatewayV2HTTPRequest,\n) (*events.APIGatewayV2HTTPResponse, error)\n```\n\n```go\nfunc MarshalResponse(results JobResults) (*events.APIGatewayV2HTTPResponse, error)\n```\n\n```go\nfunc ProcessJob(_ context.Context, body string) (string, error)\n```\nProcessJob processes a single job.\n\n## Types\n\n```go\ntype JobIDs []*pb.Job\n```\n\n```go\nfunc (jobs JobIDs) LogValue() slog.Value\n```\nLogValue implements [slog.LogValuer](/log/slog#LogValuer).\n\n```go\ntype JobResults []*pb.JobResult\n```\n\n```go\nfunc ProcessJobs(ctx context.Context, jobs Jobs) (JobResults, error)\n```\nProcessJobs processes a batch of jobs.\n\nThis function is called by the lambda function.\n\nThe function returns a list of results, each result corresponds to a job in the input list. If the job was processed successfully, the result will contain the result of the job. If the job failed, the result will contain an error message.\n\n```go\ntype Jobs []*pb.Job\n```\n\n```go\nfunc UnmarshalBody(request *events.APIGatewayV2HTTPRequest) (Jobs, error)\n```\n\n","path":"github.com/fillmore-labs/microbatch-lambda/lambda","name":"function","synopsis":"","isRedistributable":true}
