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
PGHOST=db | |
PGUSER=postgres | |
PGPASSWORD=postgres | |
PGDATABASE=hello_dev | |
PGPORT=5432 |
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
class RedisRateStore | |
INDEX_KEY_SEPARATOR = '_TO_'.freeze | |
# Using second db of the redis instance | |
# because sidekiq uses the first db | |
REDIS_DATABASE = 1 | |
# Using Hash to store rates data | |
REDIS_STORE_KEY = 'rates' |
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
module Queries | |
class Search < BaseQuery | |
include SearchHelper | |
type [Types::SearchResultsType], null: true | |
argument :query, String, required: true | |
argument :models, [String], required: true, default_value: ['AppUser'] | |
def resolve(**args) | |
search(args) |
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
# Go parameters | |
GOCMD=go | |
GOBUILD=$(GOCMD) build | |
GOCLEAN=$(GOCMD) clean | |
GOTEST=$(GOCMD) test | |
GOGET=$(GOCMD) get | |
BINARY_NAME=mybinary | |
BINARY_UNIX=$(BINARY_NAME)_unix |
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 tests | |
import ( | |
"testing" | |
) | |
type S struct { | |
t *testing.T | |
} |