diff options
Diffstat (limited to 'store.go')
| -rw-r--r-- | store.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,8 +28,8 @@ type PgStore struct { sessionCache map[string]*Session } -func NewPgStore() *PgStore { - db, err := sql.Open("postgres", "postgres://auth_master:pass@localhost/authdb") +func NewPgStore(database string) *PgStore { + db, err := sql.Open("postgres", database) if err != nil { log.Panic(err) } |
