12 type pgConfig map[string]string
14 func (c pgConfig) ConnectionString() string {
20 strings.Replace(v, `\`, `\\`, -1),
27 type pgEventSource struct {
35 func (es *pgEventSource) setup() {
36 db, err := sql.Open("postgres", es.PgConfig.ConnectionString())
43 func (es *pgEventSource) EventSource() <-chan event {
44 es.setupOnce.Do(es.setup)