Skip to content

straumur/postgres_backend

Repository files navigation

PostgreSQL Backend for straumur

Build Status

Databackend for straumur

package main

import (
	"github.com/straumur/straumur"
	"github.com/straumur/postgres_backend"
)

func main() {

	connString := "dbname=activityfeed host=localhost sslmode=disable"
	
	d, err := postgres_backend.NewPostgresDataSource(connString)
	if err != nil {
		panic(err)
	}	
	h := eventhub.NewHub("Application", d)
	h.Run()

}

About

Postgres backend for straumur

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published