refactor datastore structure for consistency

This commit is contained in:
Brad Rydzewski 2015-04-30 21:08:42 -07:00
parent a0c7b3f768
commit 5660634c29
22 changed files with 21 additions and 31 deletions

10
AUTHORS
View file

@ -1,10 +0,0 @@
# This file lists all individuals having contributed content to the repository.
# If you're submitting a patch, please add your name here in alphabetical order as part of the patch.
Alex Suraci <suraci.alex@gmail.com>
Artur Rodrigues <arturhoo@gmail.com>
Brad Rydzewski <brad@drone.io>
Justin Keller <justin@commando.io>
Martin Charles <martincharles07@gmail.com>
Michael Nutt <mnutt@movableink.com>
Thomas Burke <burke@drone.io>

View file

@ -1 +0,0 @@
package bolt

View file

@ -0,0 +1 @@
package builtin

View file

@ -1,4 +1,4 @@
package bolt package builtin
import ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package bolt package builtin
import ( import (
"encoding/binary" "encoding/binary"

View file

@ -1,4 +1,4 @@
package bolt package builtin
import ( import (
"github.com/drone/drone/common" "github.com/drone/drone/common"

View file

@ -1,4 +1,4 @@
package bolt package builtin
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package bolt package builtin
import ( import (
"github.com/drone/drone/common" "github.com/drone/drone/common"

View file

@ -1,4 +1,4 @@
package bolt package builtin
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package bolt package builtin
import ( import (
"github.com/drone/drone/common" "github.com/drone/drone/common"

View file

@ -1,4 +1,4 @@
package bolt package builtin
import ( import (
"github.com/boltdb/bolt" "github.com/boltdb/bolt"

View file

@ -1,4 +1,4 @@
package bolt package builtin
import ( import (
"os" "os"

View file

@ -1,4 +1,4 @@
package bolt package builtin
import ( import (
"time" "time"

View file

@ -1,4 +1,4 @@
package bolt package builtin
import ( import (
"os" "os"

View file

@ -1,4 +1,4 @@
package bolt package builtin
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package rpc package plugin
import ( import (
"time" "time"

View file

@ -1,4 +1,4 @@
package rpc package plugin
import ( import (
"net" "net"

View file

@ -1,4 +1,4 @@
package rpc package plugin
import ( import (
"time" "time"

View file

@ -1,4 +1,4 @@
package rpc package plugin
import ( import (
"github.com/drone/drone/common" "github.com/drone/drone/common"

View file

@ -1,4 +1,4 @@
package rpc package plugin
import ( import (
"github.com/drone/drone/common" "github.com/drone/drone/common"

View file

@ -1,4 +1,4 @@
package rpc package plugin
import ( import (
"time" "time"

View file

@ -7,13 +7,13 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/drone/drone/datastore/bolt"
"github.com/drone/drone/remote/github" "github.com/drone/drone/remote/github"
"github.com/drone/drone/server" "github.com/drone/drone/server"
"github.com/drone/drone/server/session" "github.com/drone/drone/server/session"
"github.com/drone/drone/settings" "github.com/drone/drone/settings"
"github.com/elazarl/go-bindata-assetfs" "github.com/elazarl/go-bindata-assetfs"
store "github.com/drone/drone/datastore/builtin"
eventbus "github.com/drone/drone/eventbus/builtin" eventbus "github.com/drone/drone/eventbus/builtin"
queue "github.com/drone/drone/queue/builtin" queue "github.com/drone/drone/queue/builtin"
) )
@ -30,7 +30,7 @@ func main() {
remote := github.New(settings.Service) remote := github.New(settings.Service)
session := session.New(settings.Session) session := session.New(settings.Session)
ds := bolt.Must(settings.Database.Path) ds := store.Must(settings.Database.Path)
defer ds.Close() defer ds.Close()
r := gin.Default() r := gin.Default()