mirror of
https://github.com/cuigh/swirl
synced 2024-12-28 23:02:02 +00:00
Change mgo pkg
Since original pkg is unmaintained
This commit is contained in:
parent
b6bc988c76
commit
ca0789ac4e
14
Gopkg.lock
generated
14
Gopkg.lock
generated
@ -50,6 +50,12 @@
|
|||||||
revision = "0dadbb0345b35ec7ef35e228dabb8de89a65bf52"
|
revision = "0dadbb0345b35ec7ef35e228dabb8de89a65bf52"
|
||||||
version = "v0.3.2"
|
version = "v0.3.2"
|
||||||
|
|
||||||
|
[[projects]]
|
||||||
|
branch = "master"
|
||||||
|
name = "github.com/globalsign/mgo"
|
||||||
|
packages = [".","bson","internal/json","internal/sasl","internal/scram"]
|
||||||
|
revision = "896bbb89d21253a28cd5a7f8b81fe091410cb94d"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/go-ldap/ldap"
|
name = "github.com/go-ldap/ldap"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
@ -116,12 +122,6 @@
|
|||||||
revision = "379148ca0225df7a432012b8df0355c2a2063ac0"
|
revision = "379148ca0225df7a432012b8df0355c2a2063ac0"
|
||||||
version = "v1.2"
|
version = "v1.2"
|
||||||
|
|
||||||
[[projects]]
|
|
||||||
branch = "v2"
|
|
||||||
name = "gopkg.in/mgo.v2"
|
|
||||||
packages = [".","bson","internal/json","internal/sasl","internal/scram"]
|
|
||||||
revision = "3f83fa5005286a7fe593b055f0d7771a7dce4655"
|
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "v2"
|
branch = "v2"
|
||||||
name = "gopkg.in/yaml.v2"
|
name = "gopkg.in/yaml.v2"
|
||||||
@ -131,6 +131,6 @@
|
|||||||
[solve-meta]
|
[solve-meta]
|
||||||
analyzer-name = "dep"
|
analyzer-name = "dep"
|
||||||
analyzer-version = 1
|
analyzer-version = 1
|
||||||
inputs-digest = "9e82a1ccbfaf6d829a674b5a0bbf05663612d9ea9f443534f3153bd37b7128fa"
|
inputs-digest = "2e2023629c134da8099f44e6d2719a5bc407d2b350e75f6f79a35ade95859ebd"
|
||||||
solver-name = "gps-cdcl"
|
solver-name = "gps-cdcl"
|
||||||
solver-version = 1
|
solver-version = 1
|
||||||
|
@ -34,8 +34,8 @@ required = ["github.com/docker/distribution"]
|
|||||||
version = "0.8.0"
|
version = "0.8.0"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
branch = "v2"
|
branch = "master"
|
||||||
name = "gopkg.in/mgo.v2"
|
name = "github.com/globalsign/mgo"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
branch = "v2"
|
branch = "v2"
|
||||||
|
@ -2,7 +2,7 @@ package mongo
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/cuigh/swirl/model"
|
"github.com/cuigh/swirl/model"
|
||||||
"gopkg.in/mgo.v2/bson"
|
"github.com/globalsign/mgo/bson"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (d *Dao) EventList(args *model.EventListArgs) (events []*model.Event, count int, err error) {
|
func (d *Dao) EventList(args *model.EventListArgs) (events []*model.Event, count int, err error) {
|
||||||
|
@ -2,11 +2,10 @@ package mongo
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cuigh/auxo/log"
|
"github.com/cuigh/auxo/log"
|
||||||
"gopkg.in/mgo.v2"
|
"github.com/globalsign/mgo"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -2,8 +2,8 @@ package mongo
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/cuigh/swirl/model"
|
"github.com/cuigh/swirl/model"
|
||||||
"gopkg.in/mgo.v2"
|
"github.com/globalsign/mgo"
|
||||||
"gopkg.in/mgo.v2/bson"
|
"github.com/globalsign/mgo/bson"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (d *Dao) PermGet(resType, resID string) (p *model.Perm, err error) {
|
func (d *Dao) PermGet(resType, resID string) (p *model.Perm, err error) {
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cuigh/swirl/model"
|
"github.com/cuigh/swirl/model"
|
||||||
"gopkg.in/mgo.v2"
|
"github.com/globalsign/mgo"
|
||||||
"gopkg.in/mgo.v2/bson"
|
"github.com/globalsign/mgo/bson"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (d *Dao) RegistryCreate(registry *model.Registry) (err error) {
|
func (d *Dao) RegistryCreate(registry *model.Registry) (err error) {
|
||||||
|
@ -2,8 +2,8 @@ package mongo
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/cuigh/swirl/model"
|
"github.com/cuigh/swirl/model"
|
||||||
"gopkg.in/mgo.v2"
|
"github.com/globalsign/mgo"
|
||||||
"gopkg.in/mgo.v2/bson"
|
"github.com/globalsign/mgo/bson"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (d *Dao) RoleList() (roles []*model.Role, err error) {
|
func (d *Dao) RoleList() (roles []*model.Role, err error) {
|
||||||
|
@ -2,8 +2,8 @@ package mongo
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/cuigh/swirl/model"
|
"github.com/cuigh/swirl/model"
|
||||||
"gopkg.in/mgo.v2"
|
"github.com/globalsign/mgo"
|
||||||
"gopkg.in/mgo.v2/bson"
|
"github.com/globalsign/mgo/bson"
|
||||||
)
|
)
|
||||||
|
|
||||||
const settingID int32 = 0
|
const settingID int32 = 0
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
|
|
||||||
"github.com/cuigh/swirl/misc"
|
"github.com/cuigh/swirl/misc"
|
||||||
"github.com/cuigh/swirl/model"
|
"github.com/cuigh/swirl/model"
|
||||||
"gopkg.in/mgo.v2"
|
"github.com/globalsign/mgo"
|
||||||
"gopkg.in/mgo.v2/bson"
|
"github.com/globalsign/mgo/bson"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (d *Dao) ArchiveList(args *model.ArchiveListArgs) (archives []*model.Archive, count int, err error) {
|
func (d *Dao) ArchiveList(args *model.ArchiveListArgs) (archives []*model.Archive, count int, err error) {
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cuigh/swirl/model"
|
"github.com/cuigh/swirl/model"
|
||||||
mgo "gopkg.in/mgo.v2"
|
"github.com/globalsign/mgo"
|
||||||
"gopkg.in/mgo.v2/bson"
|
"github.com/globalsign/mgo/bson"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (d *Dao) TemplateList(args *model.TemplateListArgs) (tpls []*model.Template, count int, err error) {
|
func (d *Dao) TemplateList(args *model.TemplateListArgs) (tpls []*model.Template, count int, err error) {
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cuigh/swirl/model"
|
"github.com/cuigh/swirl/model"
|
||||||
"gopkg.in/mgo.v2"
|
"github.com/globalsign/mgo"
|
||||||
"gopkg.in/mgo.v2/bson"
|
"github.com/globalsign/mgo/bson"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (d *Dao) UserCount() (count int, err error) {
|
func (d *Dao) UserCount() (count int, err error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user