sh install-docker.sh
- log out
- log back in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"gorm.io/driver/sqlite" | |
"gorm.io/gorm" | |
) | |
// Entity represents a database entity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sdk | |
import ( | |
"bytes" | |
crand "crypto/rand" | |
"crypto/rsa" | |
"crypto/sha256" | |
"crypto/tls" | |
"encoding/binary" | |
"encoding/hex" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ErrorCodes = map[string]string{ | |
"200": "successful", | |
"400": "Bad Request data", | |
"503": "Failed Transaction from the service provider", | |
"500": "Failed Transaction from the service provider", | |
"404": "Transaction / Resource not found", | |
"BX0001": "Connection Timeout: Retried 3 times and no response from the service provider", | |
"BX0002": "Transaction does not exist", | |
"BX0003": "Invalid request parameters data", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Replace 'application' with the actual path to your Go project directory | |
PROJECT_DIR="application" | |
OUTPUT_FILE="env_variables.yaml" | |
ENV_FILE="$1" # Specify the correct path to your optional environment file | |
# if $1 is help or -h, print help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project_root | |
│ | |
└───cmd | |
│ │ main.go | |
│ | |
└───internal | |
│ │ | |
│ └───models | |
│ │ │ card.go | |
│ │ │ wallet.go |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set: | |
export COMPANY_NAME="some_company" | |
run: diagram.py | |
python diagram.py | |
setup: | |
pip install diagrams | |
sudo apt update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"net/http" | |
) | |
type checkContacts struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package oauth2 | |
import ( | |
"context" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"inawo-services-api/pkg/env" | |
"os" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
NewerOlder