Skip to content

Instantly share code, notes, and snippets.

const msgs = await this._fileService.receiveSQSMsgs(1);
if (!msgs.Messages) {
this.work();
return;
}
for (const msg of msgs.Messages) {
const body = JSON.parse(msg.Body);
const job = jobs.find(job => {
@hsequeda
hsequeda / aws_location_test.go
Created June 30, 2021 21:18
Example of aws_location service
package infrastructure_test
import (
"context"
"fmt"
"testing"
"tus-servicios/service/domain/service"
"tus-servicios/service/infrastructure"
"github.com/aws/aws-sdk-go-v2/aws"
const std = @import("std");
const vaxis = @import("vaxis");
/// Set the default panic handler to the vaxis panic_handler. This will clean up the terminal if any
/// panics occur
pub const panic = vaxis.panic_handler;
const Dir = enum {
left,
right,