Initial ssh tunnel implementation

This commit is contained in:
Dan Sosedoff
2016-01-13 01:29:14 -06:00
parent ab94dd5b86
commit 68c2b4d084
6 changed files with 330 additions and 272 deletions

View File

@@ -16,6 +16,7 @@ import (
type Client struct {
db *sqlx.DB
tunnel *Tunnel
History []history.Record `json:"history"`
ConnectionString string `json:"connection_string"`
}
@@ -49,7 +50,6 @@ func New() (*Client, error) {
}
db, err := sqlx.Open("postgres", str)
if err != nil {
return nil, err
}