simple-service

command module
v0.0.0-...-2b31a26 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

README

simple-service

simple-service is an 'as easy as possible' golang HTTP api used at Onefootball on examples and tests.

It has only a /live endpoint answering text/plain; charset=utf-8. The following responses are possibly:

  • Well done :): if the application was able to connect with a Postgres database
  • Running: if some error occurred during the connection with the database

Check the config package for more details on how to configure the database connection.

Building

simple-service uses go modules. To build the application you can use the following command:

GO111MODULE=on go build

The command above will generate a binary simple-service that starts the application.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package config provides data structs and methods to store the application's configuration details
Package config provides data structs and methods to store the application's configuration details
Package db provides simple database abstractions for common operations.
Package db provides simple database abstractions for common operations.

Jump to

Keyboard shortcuts

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