Merge branch 'add-remote-postgres' of kcotugno/tacitus into master

This commit is contained in:
Kevin Cotugno 2018-01-12 03:55:23 +00:00 committed by Gitea
commit 054b058480

View File

@ -10,12 +10,16 @@ import (
"github.com/kcotugno/tacitus"
)
const connStr = `user={{.User}} dbname={{.Name}} sslmode={{.SslMode}}`
const connStr = `host={{.Host}} dbname={{.Name}} port={{.Port}} user={{.User}} ` +
`password={{.Password}} sslmode={{.SslMode}}`
type Client struct {
Name string
User string
SslMode string
Host string
Port int
Name string
User string
SslMode string
Password string
tradeService TradeService
confirmationService ConfirmationService
@ -30,6 +34,12 @@ func NewClient() *Client {
c.tradeService.client = &c
c.confirmationService.client = &c
c.aggregationService.client = &c
c.Host = "localhost"
c.Port = 5432
c.Name = "postgres"
c.User = "postgres"
c.Password = `""`
c.SslMode = "disable"
return &c