go-exercises-backend

module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2021 License: MIT

README

go-exercises-backend

GoDoc Go Report Card Build Status

Installation

Prepare the directory:

$ mkdir --parents "$(go env GOPATH)/src/github.com/thewizardplusplus/"
$ cd "$(go env GOPATH)/src/github.com/thewizardplusplus/"

Clone this repository:

$ git clone https://github.com/thewizardplusplus/go-exercises-backend.git
$ cd go-exercises-backend

Install dependencies with the dep tool:

$ dep ensure -vendor-only

Build the project:

$ go install ./...

Usage

$ go-exercises-backend

Environment variables:

  • SERVER_ADDRESS — server URI (default: :8080);
  • STORAGE_ADDRESSPostgreSQL connection URI (default: postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable);
  • MESSAGE_BROKER_ADDRESSRabbitMQ connection URI (default: amqp://rabbitmq:rabbitmq@localhost:5672);
  • SOLUTION_REGISTER_BUFFER_SIZE — solution registration channel capacity (default: 1000);
  • SOLUTION_REGISTER_CONCURRENCY — amount of solution registration threads (default: 1000).

API Description

API description in the format of a Postman collection: docs/postman_collection.json.

License

The MIT License (MIT)

Copyright © 2021 thewizardplusplus

Directories

Path Synopsis
cmd
gateways

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL