Merge branch 'add-remote-postgres' of kcotugno/tacitus into master
This commit is contained in:
commit
054b058480
@ -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
|
||||
|
Reference in New Issue
Block a user