package
module
Version:
v0.0.0-...-7c5ca0a
Opens a new window with list of versions in this module.
Published: Apr 9, 2017
License: MPL-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
glock
a locked down golang project foundation
confirm dev setup
make dev
will start a local golang server instance
curl localhost:8080/api/health/ping
should return back Pong
and log Ping
on the server
confirm docker setup
make docker
will start two development servers locally
curl localhost:8080/api/health/check
should return back the time
confirm pg setup
make pg-setup
will setup a local postgres docker volume
make pg-run
will start a local postgres instance
docker ps
will show all currently running containers
Documentation
¶
type Config struct {
Version string
LogLevel int
}
Config is the server configuration
NewConfig creates a new server configuration
It requires ENV vars:
VERSION
MODE
IsDebug returns if the configuration is in debug mode
Server is an http gateway
MountRoute mounts a service
Start starts the server at the specified port
Service is an interface for services
Source Files
¶
Directories
¶
cmd
|
|
|
|
|
|
service
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.