mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
refactor datastore structure for consistency
This commit is contained in:
parent
a0c7b3f768
commit
5660634c29
22 changed files with 21 additions and 31 deletions
10
AUTHORS
10
AUTHORS
|
@ -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>
|
|
@ -1 +0,0 @@
|
|||
package bolt
|
1
datastore/builtin/agent.go
Normal file
1
datastore/builtin/agent.go
Normal file
|
@ -0,0 +1 @@
|
|||
package builtin
|
|
@ -1,4 +1,4 @@
|
|||
package bolt
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"errors"
|
|
@ -1,4 +1,4 @@
|
|||
package bolt
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
|
@ -1,4 +1,4 @@
|
|||
package bolt
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"github.com/drone/drone/common"
|
|
@ -1,4 +1,4 @@
|
|||
package bolt
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"bytes"
|
|
@ -1,4 +1,4 @@
|
|||
package bolt
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"github.com/drone/drone/common"
|
|
@ -1,4 +1,4 @@
|
|||
package bolt
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"bytes"
|
|
@ -1,4 +1,4 @@
|
|||
package bolt
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"github.com/drone/drone/common"
|
|
@ -1,4 +1,4 @@
|
|||
package bolt
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"github.com/boltdb/bolt"
|
|
@ -1,4 +1,4 @@
|
|||
package bolt
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"os"
|
|
@ -1,4 +1,4 @@
|
|||
package bolt
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"time"
|
|
@ -1,4 +1,4 @@
|
|||
package bolt
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"os"
|
|
@ -1,4 +1,4 @@
|
|||
package bolt
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"bytes"
|
|
@ -1,4 +1,4 @@
|
|||
package rpc
|
||||
package plugin
|
||||
|
||||
import (
|
||||
"time"
|
|
@ -1,4 +1,4 @@
|
|||
package rpc
|
||||
package plugin
|
||||
|
||||
import (
|
||||
"net"
|
|
@ -1,4 +1,4 @@
|
|||
package rpc
|
||||
package plugin
|
||||
|
||||
import (
|
||||
"time"
|
|
@ -1,4 +1,4 @@
|
|||
package rpc
|
||||
package plugin
|
||||
|
||||
import (
|
||||
"github.com/drone/drone/common"
|
|
@ -1,4 +1,4 @@
|
|||
package rpc
|
||||
package plugin
|
||||
|
||||
import (
|
||||
"github.com/drone/drone/common"
|
|
@ -1,4 +1,4 @@
|
|||
package rpc
|
||||
package plugin
|
||||
|
||||
import (
|
||||
"time"
|
4
drone.go
4
drone.go
|
@ -7,13 +7,13 @@ import (
|
|||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"github.com/drone/drone/datastore/bolt"
|
||||
"github.com/drone/drone/remote/github"
|
||||
"github.com/drone/drone/server"
|
||||
"github.com/drone/drone/server/session"
|
||||
"github.com/drone/drone/settings"
|
||||
"github.com/elazarl/go-bindata-assetfs"
|
||||
|
||||
store "github.com/drone/drone/datastore/builtin"
|
||||
eventbus "github.com/drone/drone/eventbus/builtin"
|
||||
queue "github.com/drone/drone/queue/builtin"
|
||||
)
|
||||
|
@ -30,7 +30,7 @@ func main() {
|
|||
remote := github.New(settings.Service)
|
||||
session := session.New(settings.Session)
|
||||
|
||||
ds := bolt.Must(settings.Database.Path)
|
||||
ds := store.Must(settings.Database.Path)
|
||||
defer ds.Close()
|
||||
|
||||
r := gin.Default()
|
||||
|
|
Loading…
Reference in a new issue