func dbContextHandler(ctx *weavebox.Context) error { db := datastore{"mydatabase"} ctx.Context = newDatastoreContext(ctx.Context, &db) return nil }